<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx</link><description>Hey, Scripting Guy! How can I determine the SID for a user account? -- MD 
 Hey, MD. For those of you whose eyes glaze over any time they see an acronym (not that we blame you), SID is short for Security Identifier. A SID is a unique ID string (e.g.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx#3439788</link><pubDate>Wed, 06 Jul 2011 09:07:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3439788</guid><dc:creator>jecogite</dc:creator><description>&lt;p&gt;Your script does not work&lt;/p&gt;
&lt;p&gt;---------------------------&lt;/p&gt;
&lt;p&gt;Windows Script Host&lt;/p&gt;
&lt;p&gt;---------------------------&lt;/p&gt;
&lt;p&gt;Script :	C:\Users\toto\Desktop\sid.vbs&lt;/p&gt;
&lt;p&gt;Ligne :	4&lt;/p&gt;
&lt;p&gt;Caract. :	1&lt;/p&gt;
&lt;p&gt;Erreur :	Non trouvé &lt;/p&gt;
&lt;p&gt;Code :	80041002&lt;/p&gt;
&lt;p&gt;Source : 	SWbemServicesEx&lt;/p&gt;
&lt;p&gt;---------------------------&lt;/p&gt;
&lt;p&gt;OK &amp;nbsp; &lt;/p&gt;
&lt;p&gt;---------------------------&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3439788" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx#3423490</link><pubDate>Thu, 21 Apr 2011 20:12:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3423490</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@willig you are right. wmoami /user works great.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3423490" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx#3423483</link><pubDate>Thu, 21 Apr 2011 19:53:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3423483</guid><dc:creator>willig</dc:creator><description>&lt;p&gt;Even lazier command-line (Win2k3 +)&lt;/p&gt;
&lt;p&gt;Whoami /user&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3423483" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx#3378899</link><pubDate>Fri, 07 Jan 2011 14:20:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3378899</guid><dc:creator>aurelix</dc:creator><description>&lt;p&gt;Unfortunately that method won&amp;#39;t work when using a locally cached profile of a Domain account...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3378899" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx#3360029</link><pubDate>Tue, 05 Oct 2010 16:42:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3360029</guid><dc:creator>ScriptingGuy1</dc:creator><description>&lt;p&gt;@Chha I am not certain, but I do not believe that it will retrieve SID History. I cannot test that scenario, and that was not in the test matrix for the original article. &lt;/p&gt;
&lt;p&gt;@Stew14 The code shown here is VBScript code. We have an Excellent getting started with VBScript page that will walk you through the steps for using this code. The link is off of the Script Center home page.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/en-us/scriptcenter/dd940112.aspx"&gt;technet.microsoft.com/.../dd940112.aspx&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;ed wilson&lt;/p&gt;
&lt;p&gt;Microsoft Scripting Guy&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3360029" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx#3347745</link><pubDate>Fri, 30 Jul 2010 22:12:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3347745</guid><dc:creator>stewl4</dc:creator><description>&lt;p&gt;What do you type this script into and what do you save it is to make this code work? I&amp;#39;m brand new to any kind of scripting and I&amp;#39;m self teaching so I&amp;#39;m just trying to keep up. Thanks for any help I get guys.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3347745" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx#3327429</link><pubDate>Thu, 22 Apr 2010 09:43:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3327429</guid><dc:creator>chha</dc:creator><description>&lt;p&gt;Does anybody know whether this lines here &lt;/p&gt;
&lt;p&gt;strComputer = &amp;quot;.&amp;quot;&lt;/p&gt;
&lt;p&gt;Set objWMIService = GetObject(&amp;quot;winmgmts:\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\root\cimv2&amp;quot;)&lt;/p&gt;
&lt;p&gt;Set objAccount = objWMIService.Get _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;(&amp;quot;Win32_SID.SID='S-1-5-21-1454471165-1004336348-1606980848-5555'&amp;quot;)&lt;/p&gt;
&lt;p&gt;find the user, if he has another SID but this SID stored in his SIDHistory?&lt;/p&gt;
&lt;p&gt;It's a bit hard for me to try it out as I don't have any users where the SIDHistory is filled in and I didn't find an easy way to fill the attribute (which does not surprise me very much as that would give room to hijack someones identity). &lt;/p&gt;
&lt;p&gt;Does anybody know? Or do you have a domain with migrated users where the SIDHistory attribute is filled in and can try this out for me quickly?&lt;/p&gt;
&lt;p&gt;Thank your very much.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3327429" width="1" height="1"&gt;</description></item><item><title>re: How Can I Determine the SID for a User Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/03/how-can-i-determine-the-sid-for-a-user-account.aspx#3326107</link><pubDate>Mon, 19 Apr 2010 12:42:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3326107</guid><dc:creator>bartcocquyt</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here command-line for the lazy IT guys&lt;/p&gt;
&lt;p&gt;Current domain-user:&lt;/p&gt;
&lt;p&gt;wmic path win32_useraccount where name=&amp;quot;%username%&amp;quot; get sid&lt;/p&gt;
&lt;p&gt;Other domain-user&lt;/p&gt;
&lt;p&gt;wmic path win32_useraccount where name=&amp;quot;xxxxxxx&amp;quot; get sid&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3326107" width="1" height="1"&gt;</description></item></channel></rss>