helloe all, i'm new to kixtart, so i'll post my question here... first of all kixtart rock's like hell!!!
so now to my question, is it possibel to get a list of all 'local user profiles'(sorry for my bad english) that are located/installed on a client machine???
how would u code that?? is there a macro or something?
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 ????
True, but sort of depends on what you want the information for I suppose. I've seen folders there that are not in the registry too (probably due to some tech messing with it, or poorly behaved app)
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...
Code:
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.
but... looking at the code, it would not always return "JOHNDOE" sometimes it will also return "JOHNDOE.SOMEDOMAIN" or "JOHNDOE.SOMEDO~1" or something alike.
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.