hmm.. ok. i had a look in the registry... under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList there are alot strange numbers (hrm. i guess kind of sid or so...) i'd like to just extrackt the userid or the name of the users that have a local profile... how do i work myselfe through al the folders under: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList ????
or just simply broken profile or reinstalled windows or... if it's not in the registry, it does not matter to windows as it is not a profile dir. on the other hand, it can have some personal information in it. for data retrieval purposes, those folders may hold some meaning.
Yes I tested it. The SID that it returns from the REG is some other format and NOT the SID required to show it from KiXtart conversion. I just wanted to go ahead and display that too, but I suppose it could be confusing as it's not the same.
It returns 3 formats. Like this...
Registry Account Name: LocalService SID2Name: LOCAL SERVICE Account SID: 010100000000000513000000
Did YOU run it
Give it a try and you should see it works just fine.
Only if it's in the Registry which would be a VALID profile whether or not it was from corruption or whatever.
Not sure what your point is Jooel. This is just an exercise in showing various ways of getting the data requested.
I don't see any "specifics" of include/exclude requirements, or even a reply since I posted this code except from us regulars.
If / When such stringent requirements are provided then he can hopefully have at least an idea of how to constrain the data to his requirements, which is better than just generalizations on how to do it.