<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx</link><description>The Network Location feature was introduced in Windows Vista. It provides an easy way to customize your firewall settings based on whether you trust or don’t trust the computers around you. There are three Network Location types - Private, Public and</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9530454</link><pubDate>Fri, 03 Apr 2009 12:28:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9530454</guid><dc:creator>Abhishek Agrawal</dc:creator><description>&lt;p&gt;Why is the script using reg.exe tool and not the registry provider???&lt;/p&gt;
&lt;p&gt;It hurts my eyes to see a script with /param syntax on the powershell blog :-(&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Abhishek Agrawal&lt;/p&gt;</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9530783</link><pubDate>Fri, 03 Apr 2009 19:52:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9530783</guid><dc:creator>Jason Archer</dc:creator><description>&lt;p&gt;Cool, but two questions.&lt;/p&gt;
&lt;p&gt;1) Why the need to reset those registry keys?&lt;/p&gt;
&lt;p&gt;2) Why not use PowerShell commands to set those registry keys?&lt;/p&gt;</description></item><item><title>NETWORKING-THE.INFO |</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9531054</link><pubDate>Sat, 04 Apr 2009 02:13:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9531054</guid><dc:creator>NETWORKING-THE.INFO |</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.networking-the.info/2009/04/02/windows-powershell-blog-setting-network-location-to-private/"&gt;http://www.networking-the.info/2009/04/02/windows-powershell-blog-setting-network-location-to-private/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9531349</link><pubDate>Sat, 04 Apr 2009 13:54:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9531349</guid><dc:creator>Blake Coverett</dc:creator><description>&lt;p&gt;Wow... when would it ever be appropriate for some random COM client code to decide to re-register some other COM server's progids??&lt;/p&gt;
&lt;p&gt;Am I missing something here?&lt;/p&gt;</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9531715</link><pubDate>Sun, 05 Apr 2009 09:43:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9531715</guid><dc:creator>required name</dc:creator><description>&lt;p&gt;could you clarify a bit ... is that ACTIVE public connections or ANY at all (e.g. disconnected wifi from the hotel you stayed at) that will cause remoting to be disabled?&lt;/p&gt;</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9533202</link><pubDate>Mon, 06 Apr 2009 09:04:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9533202</guid><dc:creator>remoting question</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt; You cannot enable and use Windows PowerShell Remoting feature if you have Public connections on your machine&lt;/p&gt;
&lt;p&gt;Does this mean I can't use it as a remoting client? Or this restriction is only for remoting server.&lt;/p&gt;</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9540512</link><pubDate>Thu, 09 Apr 2009 18:54:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9540512</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;@ Abhishek an Jason,&lt;/p&gt;
&lt;p&gt;Thanks for your feedback. I have fixed the code which creates the registry settings.&lt;/p&gt;
&lt;p&gt;Vladimir Averkin&lt;/p&gt;
&lt;p&gt;Windows PowerShell Team&lt;/p&gt;
</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9540549</link><pubDate>Thu, 09 Apr 2009 19:04:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9540549</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;@ Blake&lt;/p&gt;
&lt;p&gt;NetworkListManager does not have ProgID and Windows PowerShell needs ProgID to be able to call on COM-objects. That's why we have to create it.&lt;/p&gt;
&lt;p&gt;Currently, NetworkListManager COM API is the only way to programmatically change Network Location type. And I guess using Windows Powershell script is much better option than writing, compiling and distributing a C++ program.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vladimir Averkin&lt;/p&gt;
&lt;p&gt;Windows PowerShell Team&lt;/p&gt;
</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9540577</link><pubDate>Thu, 09 Apr 2009 19:11:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9540577</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;@ Remoting question&lt;/p&gt;
&lt;p&gt;You are right, this requires some clarification. Enabling remoting means configuring Windows PowerShell and Windows Remote Management (aka WinRM) so that the local machine could be used as a remoting server. Client does not require any specific configuration, it only requires Windows PowerShell 2.0 and Windows Remote Management 2.0 to be present on the machine.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vladimir Averkin&lt;/p&gt;
&lt;p&gt;Windows PowerShell Team&lt;/p&gt;
</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9541830</link><pubDate>Fri, 10 Apr 2009 03:06:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9541830</guid><dc:creator>Blake Coverett</dc:creator><description>&lt;p&gt;new-object needs a progid, but that doesn't mean PowerShell can't create COM objects by CLSID. &amp;nbsp;In this case you can simply use:&lt;/p&gt;
&lt;p&gt;[Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]&amp;quot;{DCB00C01-570F-4A9B-8D69-199FDBA5723B}&amp;quot;))&lt;/p&gt;
&lt;p&gt;Well, perhaps it isn't simple, but it is certainly better than leaving random new progids in the registry.&lt;/p&gt;</description></item><item><title>re: Setting Network Location to Private</title><link>http://blogs.msdn.com/powershell/archive/2009/04/03/setting-network-location-to-private.aspx#9543576</link><pubDate>Fri, 10 Apr 2009 20:04:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9543576</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;@ Blake&lt;/p&gt;
&lt;p&gt;Brilliant! You are absolutely right! Somehow I was focused on how to do it through new-object and totally missed that there is a .NET way to create instances of COM objects, which can also be used in Windows Powershell. I have updated the script with your code.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vladimir Averkin&lt;/p&gt;
&lt;p&gt;Windows PowerShell team&lt;/p&gt;
</description></item></channel></rss>