How to get machine SID

Hello,
Every windows machine has a SID value. I need a way to get the SID value using WMI. But I cannot find the WMI class that enumerates machine sids. There is a Win32_SID class but that returns nothing when I query the class. Any suggestions?
Thanks
Danny
[280 byte] By [dcarva] at [2007-11-20 5:29:43]
# 1 Re: How to get machine SID
This is the client-side scripting forum. This question better suites the General Windows and DNA programming more. I will have a moderator move it.
PeejAvery at 2007-11-10 3:39:27 >
# 2 Re: How to get machine SID
I am using client-side scripting code to get (VBScript) to query WMI classes. '
Thanks
dcarva at 2007-11-10 3:40:27 >
# 3 Re: How to get machine SID
I am using client-side scripting code to get (VBScript) to query WMI classes.
But your problem is not with the VBScript. You stated that WMI is the difficulty. That make it Windows related more than client-side scripting.
PeejAvery at 2007-11-10 3:41:32 >
# 4 Re: How to get machine SID
I'll wait for a response before I make the move official
Dr. Script at 2007-11-10 3:42:26 >
# 5 Re: How to get machine SID
No problem. Make the move. Thanks!
dcarva at 2007-11-10 3:43:25 >