<?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>Renaming a computer using WMIC and how to get around that aggravating “Invalid Global Switch” error</title><link>http://blogs.technet.com/b/askds/archive/2009/02/19/renaming-a-computer-using-wmic-and-how-to-get-around-that-aggravating-invalid-global-switch-error.aspx</link><description>I&amp;rsquo;m guessing Ned will insert something like &amp;ldquo;Hello, Warren here again&amp;rdquo;. [Nope &amp;ndash; Ned] 
 The other day I was working with server core and wanted to rename my server. Recently I have been working more with WMIC to get data from the</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Renaming a computer using WMIC and how to get around that aggravating “Invalid Global Switch” error</title><link>http://blogs.technet.com/b/askds/archive/2009/02/19/renaming-a-computer-using-wmic-and-how-to-get-around-that-aggravating-invalid-global-switch-error.aspx#3304914</link><pubDate>Mon, 11 Jan 2010 17:02:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3304914</guid><dc:creator>NedPyle [MSFT]</dc:creator><description>&lt;p&gt;There was once a PowerShell comdlet called Rename-Computer during . For reasons unexplained, it was removed during the beta process. WMI would be the way to go for local renames, or Rename-ADObject if trying to rename a computer's AD object.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3304914" width="1" height="1"&gt;</description></item><item><title>re: Renaming a computer using WMIC and how to get around that aggravating “Invalid Global Switch” error</title><link>http://blogs.technet.com/b/askds/archive/2009/02/19/renaming-a-computer-using-wmic-and-how-to-get-around-that-aggravating-invalid-global-switch-error.aspx#3304890</link><pubDate>Mon, 11 Jan 2010 15:32:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3304890</guid><dc:creator>JuliusPIV</dc:creator><description>&lt;p&gt;I stumbled across this while trying to rename a Windows 7 machine using Powershell. &amp;nbsp;Powershell naturally doesn't know what %computername% is so I substituted that for $env:computername. &amp;nbsp;However, this resulted in an 'Unexpected switch at this level' error.&lt;/p&gt;
&lt;p&gt;Other functions found online for renaming a machine using the Win32_ComputerSystem results in a 1326 ReturnValue when run as the Administrator.&lt;/p&gt;
&lt;p&gt;Any ideas or suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3304890" width="1" height="1"&gt;</description></item><item><title>Rename a computer using WMIC; how to get around &amp;#8220;Invalid Global Switch&amp;#8221; error</title><link>http://blogs.technet.com/b/askds/archive/2009/02/19/renaming-a-computer-using-wmic-and-how-to-get-around-that-aggravating-invalid-global-switch-error.aspx#3204856</link><pubDate>Fri, 20 Feb 2009 11:58:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3204856</guid><dc:creator>Rename a computer using WMIC; how to get around &amp;#8220;Invalid Global Switch&amp;#8221; error</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.ditii.com/2009/02/20/rename-a-computer-using-wmic-how-to-get-around-invalid-global-switch-error/"&gt;http://www.ditii.com/2009/02/20/rename-a-computer-using-wmic-how-to-get-around-invalid-global-switch-error/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3204856" width="1" height="1"&gt;</description></item></channel></rss>