kenfitzgerald
asked on
domain users SId
I need to make changes to users registry settings on a terminal server. How do I look up the user's SID?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Don't know if it's helpful for your purposes, but you could Microsoft's getsid.exe utility from the Windows rsource kit tools
http://technet.microsoft.com/en-us/library/cc779004(WS.10).aspx
You could use this within a batch file to set an environment variable ... you can find an example here:
http://windowsitpro.com/article/articleid/76649/jsi-tip-5345-how-can-i-get-a-users-sid-in-a-batch-file.html
later on you could use the reg.exe utility to automate your modification under the approiate HKEY_USERS subkey.
Kind Regards,
Buckmeister
http://technet.microsoft.com/en-us/library/cc779004(WS.10).aspx
You could use this within a batch file to set an environment variable ... you can find an example here:
http://windowsitpro.com/article/articleid/76649/jsi-tip-5345-how-can-i-get-a-users-sid-in-a-batch-file.html
later on you could use the reg.exe utility to automate your modification under the approiate HKEY_USERS subkey.
Kind Regards,
Buckmeister
http://www.microsoft.com/technet/scriptcenter/resources/qanda/dec04/hey1203.mspx