<?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-to use Powershell to change the Network location type (to Private or Public)</title><link>http://blogs.technet.com/b/samdrey/archive/2011/10/19/how-to-use-powershell-to-change-the-network-location-type-to-private-or-public.aspx</link><description>&amp;#160; Here is how to change the Network type of a specific network (or networks) to Private or Public, to help you better master Firewall policies. This is especially useful if you have a bunch of Windows 2008 servers on a DMZ as it’s more and more the</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How-to use Powershell to change the Network location type (to Private or Public)</title><link>http://blogs.technet.com/b/samdrey/archive/2011/10/19/how-to-use-powershell-to-change-the-network-location-type-to-private-or-public.aspx#3475014</link><pubDate>Wed, 11 Jan 2012 22:19:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3475014</guid><dc:creator>Richard</dc:creator><description>&lt;p&gt;When i tried this I received the following error message:&lt;/p&gt;
&lt;p&gt;Network category of &amp;nbsp;ClinicaCHC.local was previously set to &amp;nbsp;2&lt;/p&gt;
&lt;p&gt;Exception calling &amp;quot;SetCategory&amp;quot; with &amp;quot;1&amp;quot; argument(s): &amp;quot;Access is denied. (Excep&lt;/p&gt;
&lt;p&gt;tion from HRESULT: 0x80070005 (E_ACCESSDENIED))&amp;quot;&lt;/p&gt;
&lt;p&gt;At C:\scripts\SetNetwork.ps1:45 char:32&lt;/p&gt;
&lt;p&gt;+ &amp;nbsp; &amp;nbsp; $_.GetNetwork().SetCategory &amp;lt;&amp;lt;&amp;lt;&amp;lt; (1)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [], MethodInvocationException&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ FullyQualifiedErrorId : ComMethodTargetInvocation&lt;/p&gt;
&lt;p&gt;Network category of &amp;nbsp;ClinicaCHC.local network changed to &amp;nbsp;2&lt;/p&gt;
&lt;p&gt;I am not real familiar with Powershell and am not sure how to troubleshoot this.&lt;/p&gt;
&lt;p&gt;Any ideas?&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=3475014" width="1" height="1"&gt;</description></item></channel></rss>