<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Get-PowerShell &#187; Remoting</title>
	<atom:link href="http://get-powershell.com/category/remoting/feed/" rel="self" type="application/rss+xml" />
	<link>http://get-powershell.com</link>
	<description></description>
	<lastBuildDate>Sat, 10 Jul 2010 15:44:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Specifying Listener IP Address for PowerShell Remoting</title>
		<link>http://get-powershell.com/2009/12/11/specifying-listener-ip-address-for-powershell-remoting/</link>
		<comments>http://get-powershell.com/2009/12/11/specifying-listener-ip-address-for-powershell-remoting/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 22:14:04 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[Listeners]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Remoting]]></category>
		<category><![CDATA[WinRM]]></category>

		<guid isPermaLink="false">http://get-powershell.com/2009/12/11/specifying-listener-ip-address-for-powershell-remoting/</guid>
		<description><![CDATA[I have a lot of servers that have more than one network interface. For example, in my Hyper-V cluster, we might have iSCSI NICs, Live Migration NICs, Heartbeat NICs, and Client Access NICs. When I enabled remoting I was not comfortable with WinRM listening on all of the IP addresses on my server. I really [...]]]></description>
			<content:encoded><![CDATA[<p>I have a lot of servers that have more than one network interface. For example, in my Hyper-V cluster, we might have iSCSI NICs, Live Migration NICs, Heartbeat NICs, and Client Access NICs. When I enabled remoting I was not comfortable with WinRM listening on all of the IP addresses on my server. I really only wanted it to listen on 1 IP.</p>
<p>On my local machine, you can see that my listener is listening on any address it can find on my IP stack.</p>
<p><a href="http://get-powershell.com/wp-content/uploads/2009/12/image.png"><img style="border-bottom: 0px; border-left: 0px; width: 684px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://get-powershell.com/wp-content/uploads/2009/12/image_thumb.png" width="641" height="364" /></a> </p>
<p>I’d like to set this to only listen only on a single IP V4 Address. When I first tried to change this I started looking at the value for Address under my listener but kept running into an error that reads <font color="#ff0000">Set-Item : Item has already been added. Key in dictionary: &#8216;Address&#8217;&#160; Key being added: &#8216;Address&#8217;</font></p>
<p>Poking around the WSMAN provider, (which is fantastic by the way!) I found something else that looked promising. In WSMAN:\localhost\Service there are items called IPV4Filter and IPV6Filter. </p>
<p><a href="http://get-powershell.com/wp-content/uploads/2009/12/image1.png"><img style="border-bottom: 0px; border-left: 0px; width: 718px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://get-powershell.com/wp-content/uploads/2009/12/image_thumb1.png" width="642" height="393" /></a> </p>
<p>Sweet!&#160; Let’s try to set it to my local IP Address… and fail with this error</p>
<p><font color="#ff0000">Set-Item : The WinRM client cannot process the request. The IP Filter is invalid. Ranges are specified using the syntax IP1-IP2. Multiple ranges are separated using , as delimiter. * is used to indicate that the service should listen on all available IPs on the machine. When * is used, other ranges in the filter are ignored. If filter is blank,     <br /> the service doesn&#8217;t listen on any address. For example, if service should be restricted to listen on only IPv4 addresses, IPv6 filter should be left empty.</font> </p>
<p>But this is great news. The error message is actually helpful – Christmas miracle maybe?</p>
<p>If you want to listen on a single IP Address, you can specify a range that starts and ends at the same IP. For example, </p>
<p><a href="http://get-powershell.com/wp-content/uploads/2009/12/image2.png"><img style="border-bottom: 0px; border-left: 0px; width: 722px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://get-powershell.com/wp-content/uploads/2009/12/image_thumb2.png" width="644" height="392" /></a> </p>
<p>So why would you have to enter all these crazy ranges.? Well it turns out you can specify these in a GPO. Say you have a Hyper-V Cluster that has a client access network (10.10.10.0/24), an iSCSI network (10.11.11.0/24), and a few others for things like heartbeat and live migration.&#160; If you only wanted to have a listener on the client access network for all of your cluster nodes, you could specify the IPv4Filter to be 10.10.10.1- 10.10.10.254 and the policy would apply to all our servers and they would not be listening on the 10.11.11.0/24 iSCSI network.</p>
<p>To configure GPO settings, you can go to Computer Configuration\Administrative Templates\Windows Components\WinRM Service and in there you will find a setting called “Allow automatic configuration of listeners”</p>
<p><a href="http://get-powershell.com/wp-content/uploads/2009/12/image3.png"><img style="border-bottom: 0px; border-left: 0px; width: 690px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://get-powershell.com/wp-content/uploads/2009/12/image_thumb3.png" width="644" height="589" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://get-powershell.com/2009/12/11/specifying-listener-ip-address-for-powershell-remoting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remoting Out of Memory Exception</title>
		<link>http://get-powershell.com/2009/03/16/remoting-out-of-memory-exception/</link>
		<comments>http://get-powershell.com/2009/03/16/remoting-out-of-memory-exception/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 20:27:03 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[CTP 3]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Remoting]]></category>
		<category><![CDATA[WSMAN]]></category>

		<guid isPermaLink="false">http://get-powershell.com/2009/03/16/remoting-out-of-memory-exception/</guid>
		<description><![CDATA[A colleague of mine was using some remoting features in a dev lab and came across an interesting issue. He was using some native commands to build out a SharePoint environment. One of the commands he was using kept throwing a OutOfMemory Exception error. The system had plenty of memory available, so it was definitely [...]]]></description>
			<content:encoded><![CDATA[<p>A colleague of mine was using some remoting features in a dev lab and came across an interesting issue. He was using some native commands to build out a SharePoint environment. One of the commands he was using kept throwing a OutOfMemory Exception error. The system had plenty of memory available, so it was definitely an issue with the remoting client. Poking around in the WSMAN: Provider we found a config option called MaxMemoryPerShellMB in WSMAN:\localhost\Shell\</p>
<p>The default value is 150, which seems well and good for most commands. However, this is the second time I have run into it with different commands so I think it is worth noting. After upping the config to 512, all was right with the world again.</p>
<p>set-item wsman:localhost\Shell\MaxMemoryPerShellMB 512
<p>I have to say i love the new WSMAN: provider. It makes something that was incredibly difficult to manipulate a snap.
<p>Hope that helps,
<p>Andy</p>
]]></content:encoded>
			<wfw:commentRss>http://get-powershell.com/2009/03/16/remoting-out-of-memory-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell Remoting on Windows 2008 R2 Server Core</title>
		<link>http://get-powershell.com/2009/01/14/powershell-remoting-on-windows-2008-r2-server-core/</link>
		<comments>http://get-powershell.com/2009/01/14/powershell-remoting-on-windows-2008-r2-server-core/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 15:25:28 +0000</pubDate>
		<dc:creator>Andy Schneider</dc:creator>
				<category><![CDATA[CTP 3]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Remoting]]></category>
		<category><![CDATA[Server Core]]></category>
		<category><![CDATA[Windows 2008 R2]]></category>

		<guid isPermaLink="false">http://get-powershell.com/2009/01/14/powershell-remoting-on-windows-2008-r2-server-core/</guid>
		<description><![CDATA[I&#8217;ve been working on building out some 2008 R2 Core servers the last couple days and of course I wanted to get PowerShell up and running on them.&#160; First of all, to install the PowerShell feature you need to run this command start /w ocsetup MicrosoftWindowsPowerShell Note that ocsetup is case sensitive and you need [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on building out some 2008 R2 Core servers the last couple days and of course I wanted to get PowerShell up and running on them.&nbsp; First of all, to install the PowerShell feature you need to run this command</p>
<p>start /w ocsetup MicrosoftWindowsPowerShell</p>
<p>Note that ocsetup is case sensitive and you need to get the name of the feature and/or role exactly right.</p>
<p>Once you get the feature installed, you can launch powershell from the cmd prompt by using the full path to c:\windows\system32\windowspowershell\v1.0\powershell.exe.</p>
<p>Now that we have PowerShell V2 running, we can get-started with Remoting. To enable V2 remoting, there is a built-function called Enable-PSRemoting which typically is all you need. However, there is a known issue with Windows 7 Beta x64 systems where WOW components are not installed &#8211; a category which server core falls into.</p>
<p>If you try to enable remoting, you will get an error about a corrupted plugin in WSMAN.</p>
<p>To work around this, you need to remote a registry value. Run the following command </p>
<p>remove-item HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WSMAN\Plugin\Microsoft.PowerShell32
<p>After that, you can run Enable-PSRemoting and you are good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://get-powershell.com/2009/01/14/powershell-remoting-on-windows-2008-r2-server-core/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
