How to find the Profile GUID for all the Users logging on to a Machine (For example RDS machine or Domain Controller)
If suppose you want to work on the GUID's in the registry and don't want to go through all the GUID's one by one, then you can try running the following command to get the list of all the Users with their profile GUID's , which make your life easier to troubleshoot.
Open Elevated PowerShell / Command prompt and run the following command:
wmic useraccount get name,sid >C:\Profile.txt
Download : WinGag Remote Control Software www.wingagaarbin.com