Is there a way to display a list of non currently active user profile names on the local machine? (By non currently active, I mean to display a list of all of the profile names leaving out the one I am running the batch file from and all of the system profiles like the default or all users profile.)
1. There are 5 profiles on a Windows XP or Vista Computer. (ie. Tina, Tony, Wayne, Owner, Thomas).
2. Currently using and running the batch file from Owner.
3. Currently logged in are also the profiles Tina and Tony. (We are in switch user mode using Owner)
I would like to capture and store in multiple separate variables that Tina, Tony, Wayne and Thomas are also profiles on the computer. I would also like to capture if the computer adds any profiles later on in the future such as Randy.
Is there a way to do this? I have been searching all over the place for a command and I cannot find one.
I know that for XP, I can probably look into the documents and settings folder, get a dir listing and then subtract out all of the default names and the currently logged in name however I was hoping for something more simple.