<?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 Find and Move an Active Directory Computer Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2005/01/21/how-can-i-find-and-move-an-active-directory-computer-account.aspx</link><description>Hey, Scripting Guy! I need to move a computer account from one OU to another; however, I don’t know which OU the computer account is currently in. Any advice? -- AA 
 Hey, AA. You know, one thing that marks all the great advice columns - Dear Abby ;</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 Find and Move an Active Directory Computer Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2005/01/21/how-can-i-find-and-move-an-active-directory-computer-account.aspx#3497848</link><pubDate>Mon, 14 May 2012 15:34:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3497848</guid><dc:creator>demo.social</dc:creator><description>&lt;p&gt;Hi... thanks for the information... i need to know the event id when a machine is moved...i need to know how moves that machine..&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3497848" width="1" height="1"&gt;</description></item><item><title>re: How Can I Find and Move an Active Directory Computer Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2005/01/21/how-can-i-find-and-move-an-active-directory-computer-account.aspx#3468161</link><pubDate>Wed, 30 Nov 2011 18:51:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3468161</guid><dc:creator>Ed Patterson</dc:creator><description>&lt;p&gt;In my experience objOU.MoveHere returned an object not an int so it threw a syntax error the example should read. Could be because I am using a much more recent version of vbscript&lt;/p&gt;
&lt;p&gt;Set objOU = GetObject(&amp;quot;LDAP://OU=Research,DC=fabrikam,DC=com&amp;quot;)&lt;/p&gt;
&lt;p&gt;Set objReturn = objOU.MoveHere _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;(&amp;quot;LDAP://CN=atl-ws-01,OU=Finance,DC=fabrikam,DC=com&amp;quot;, vbNullString)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3468161" width="1" height="1"&gt;</description></item><item><title>re: How Can I Find and Move an Active Directory Computer Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2005/01/21/how-can-i-find-and-move-an-active-directory-computer-account.aspx#3363907</link><pubDate>Mon, 25 Oct 2010 17:49:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3363907</guid><dc:creator>NightRodSpecial1</dc:creator><description>&lt;p&gt;Is it possible to call a .csv file that has all the computer names that need to be disabled? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3363907" width="1" height="1"&gt;</description></item><item><title>re: How Can I Find and Move an Active Directory Computer Account?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2005/01/21/how-can-i-find-and-move-an-active-directory-computer-account.aspx#3357094</link><pubDate>Wed, 22 Sep 2010 15:26:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3357094</guid><dc:creator>Tesdall</dc:creator><description>&lt;p&gt;I make batch files and i can do some KIX scripts but VBS is new grounds for me. How can i make this script more flexable? I tried to come up with a string that would just pull the computer&amp;#39;s name that im on but i cannot seem to figure out how to put the variable into the AND name =&amp;#39;name&amp;#39; area.&lt;/p&gt;
&lt;p&gt;Also, i will have multiple locations on where to put the computer. If then move here kind of thing. &lt;/p&gt;
&lt;p&gt;This has been a great help, thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3357094" width="1" height="1"&gt;</description></item></channel></rss>