<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Jan Egil`s Admin-Blog</title>
	<atom:link href="http://blog.powershell.no/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.powershell.no</link>
	<description>On Windows PowerShell and other admin-related topics</description>
	<lastBuildDate>Thu, 04 Mar 2010 13:42:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='blog.powershell.no' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e22e511529c14fbc92cde5589d6231b4?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Jan Egil`s Admin-Blog</title>
		<link>http://blog.powershell.no</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.powershell.no/osd.xml" title="Jan Egil`s Admin-Blog" />
	<atom:link rel='hub' href='http://blog.powershell.no/?pushpress=hub'/>
		<item>
		<title>Enable and configure Windows PowerShell Remoting using Group Policy</title>
		<link>http://blog.powershell.no/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/</link>
		<comments>http://blog.powershell.no/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 13:42:09 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2003 R2]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[Windows PowerShell Remoting]]></category>
		<category><![CDATA[WinRM]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/</guid>
		<description><![CDATA[As you may know, Windows PowerShell 2.0 introduced a new remoting feature, allowing for remote management of computers.
While this feature can be enabled manually (or scripted) with the PowerShell 2.0 cmdlet Enable-PSRemoting, I would recommend using Group Policy whenever possible. This guide will show you how this can be accomplished for Windows Vista, Windows Server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=436&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>As you may know, Windows PowerShell 2.0 introduced a new remoting feature, allowing for remote management of computers.</p>
<p>While this feature can be enabled manually (or scripted) with the PowerShell 2.0 cmdlet <a href="http://technet.microsoft.com/en-us/library/dd819498.aspx">Enable-PSRemoting</a>, I would recommend using Group Policy whenever possible. This guide will show you how this can be accomplished for Windows Vista, Windows Server 2008 and above. For Windows XP and Windows Server 2003, running Enable-PSRemoting in a PowerShell startup script would be the best approach.</p>
<p>Windows PowerShell 2.0 and WinRM 2.0 shipped with Windows 7 and Windows Server 2008 R2. To take advantage of Windows PowerShell Remoting, both of these are required on the downlevel operating systems Windows XP, Windows Server 2003, Windows Vista and Windows Server 2008. Both Windows PowerShell 2.0 and WinRM 2.0 are available for download <a href="http://support.microsoft.com/kb/968929">here</a>, as part of the Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0).</p>
<p>&#160;</p>
<p><strong>Group Policy Configuration</strong></p>
<p>Open the Group Policy Management Console from a domain-joined Windows 7 or Windows Server 2008 R2 computer.</p>
<p>Create or use an existing Group Policy Object, open it, and navigate to Computer Configuration-&gt;Policies-&gt;Administrative templates-&gt;Windows Components</p>
<p>Here you will find the available Group Policy settings for Windows PowerShell, WinRM and Windows Remote Shell:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb.png?w=244&#038;h=86" width="244" height="86" /></a> </p>
<p>To enable PowerShell Remoting, the only setting we need to configure are found under “WinRM Service”, named “Allow automatic configuration of listeners”:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb1.png?w=467&#038;h=427" width="467" height="427" /></a></p>
<p>Enable this policy, and configure the IPv4 and IPv6 addresses to listen on. To configure WinRM to listen on all addresses, simply use *.</p>
<p>No other settings need to be configured, however, I`ve provided screenshots of the other settings so you can see what`s available:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb2.png?w=390&#038;h=122" width="390" height="122" /></a> </p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image3.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb3.png?w=543&#038;h=135" width="543" height="135" /></a> </p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image4.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb4.png?w=543&#038;h=149" width="543" height="149" /></a> </p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image5.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb5.png?w=544&#038;h=66" width="544" height="66" /></a> </p>
<p>There is one more thing to configure though; the Windows Firewall.</p>
<p>You need to create a new Inbound Rule under Computer Configuration-&gt;Policies-&gt;Windows Settings-&gt;Windows Firewall with Advanced Security-&gt;Windows Firewall with Advanced Security-&gt;Inbound Rules:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image6.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb6.png?w=242&#038;h=244" width="242" height="244" /></a> </p>
<p>The WinRM port numbers are predefined as “Windows Remote Management”:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image7.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb7.png?w=521&#038;h=417" width="521" height="417" /></a></p>
<p>With WinRM 2.0, the default http listener port <a href="http://blogs.msdn.com/wmi/archive/2009/07/22/new-default-ports-for-ws-management-and-powershell-remoting.aspx">changed</a> from TCP 80 to TCP 5985. The old port number are a part of the predefined scope for compatibility reasons, and may be excluded if you don`t have any legacy WinRM 1.1 listeners.</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image8.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb8.png?w=519&#038;h=415" width="519" height="415" /></a></p>
<p>&#160;</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image9.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb9.png?w=522&#038;h=419" width="522" height="419" /></a> </p>
</p>
</p>
<p>When the rule are created, you may choose to make further restrictions, i.e. to only allow the IP addresses of your management subnet, or perhaps some specific user groups:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image10.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb10.png?w=320&#038;h=420" width="320" height="420" /></a> </p>
<p>Now that the firewall rule are configured, we are done with the minimal configuration to enable PowerShell Remoting using Group Policy.</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image11.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb11.png?w=644&#038;h=31" width="644" height="31" /></a> </p>
<p>On a computer affected by the newly configured Group Policy Object, run gpupdate and see if the settings were applied:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image12.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb12.png?w=591&#038;h=347" width="591" height="347" /></a></p>
<p>As you can see, the listener indicates “Source*”GPO”, meaning it was configured from a Group Policy Object. </p>
<p>When the GPO have been applied to all the affected computers you are ready to test the configuration.</p>
<p>Here is a sample usage of PowerShell Remoting combined with the Active Directory-module for Windows PowerShell:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image13.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb13.png?w=644&#038;h=93" width="644" height="93" /></a></p>
<p>The example are saving all computer objects in the Domain Controller Organization Unit in a variable. Then, a foreach-loop are invoking a scriptblock, returning the status of the Netlogon-service on all of the Domain Controllers.</p>
<p>&#160;</p>
<p><strong>Summary</strong></p>
<p>We`ve now had a look on how to enable and configure PowerShell Remoting using Group Policy.    <br />There are an incredible number of opportunities opening up with the new Remoting feature in Windows PowerShell 2.0. For a complete walkthrough on how you can use this new feature, I would like to recommend the excellent <a href="http://powershell.com/cs/media/p/4908.aspx">Administrator&#8217;s Guide to Windows PowerShell Remoting</a> written by Dr. Tobias Weltner, Aleksandar Nikolic and Richard Giles.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/436/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=436&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/03/04/enable-and-configure-windows-powershell-remoting-using-group-policy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/03/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Pin and unpin applications from the taskbar and Start-menu using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/02/26/pin-and-unpin-applications-from-the-taskbar-and-start-menu-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/02/26/pin-and-unpin-applications-from-the-taskbar-and-start-menu-using-windows-powershell/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 15:55:19 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Desktop management]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[pin applications;unpin applications]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/02/26/pin-and-unpin-applications-from-the-taskbar-and-start-menu-using-windows-powershell/</guid>
		<description><![CDATA[I`ve created a PowerShell module for working with pinned applications in Windows 7 and Windows Server 2008 R2. The module are created based on a script created by Ragnar Harper and Kristian Svantorp.
The module are available here, on the TechNet Script Center Gallery.
Installation and usage
Modules in Windows PowerShell can be “installed” in two ways:
1) Save [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=405&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I`ve created a PowerShell module for working with pinned applications in Windows 7 and Windows Server 2008 R2. The module are created based on a <a href="http://blog.crayon.no/files/folders/scripts/entry12967.aspx">script</a> created by <a href="http://blog.crayon.no/blogs/ragnar/archive/2009/04/17/pin-applications-to-windows-7-taskbar.aspx">Ragnar Harper</a> and <a href="http://blogs.technet.com/kristian/archive/2009/04/24/nytt-script-pin-to-taskbar.aspx">Kristian Svantorp</a>.</p>
<p>The module are available <a href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/b66434f1-4b3f-4a94-8dc3-e406eb30b750">here</a>, on the TechNet Script Center Gallery.</p>
<p><strong>Installation and usage</strong></p>
<p>Modules in Windows PowerShell can be “installed” in two ways:</p>
<p>1) Save the module as a psm1-file, and store it in a folder with the same name as the psm1-file. Copy this folder, using i.e. xcopy or Copy-Item, to a desired PowerShell module-folder (see available module paths using $env:PSModulePath)</p>
<p>2) Import the module by calling the psm1-file directly.</p>
<p>The first option are preferred for production use.</p>
<p>Next, import the module using Import-Module:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/02/image.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/02/image_thumb.png?w=330&#038;h=34" border="0" alt="image" width="330" height="34" /></a> <br />
(Option 1)</p>
<p><a href="http://janegilring.files.wordpress.com/2010/02/image1.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/02/image_thumb1.png?w=396&#038;h=35" border="0" alt="image" width="396" height="35" /></a><br />
(Option 2)</p>
<p>The module consist of one function as shown here:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/02/image2.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/02/image_thumb2.png?w=563&#038;h=75" border="0" alt="image" width="563" height="75" /></a></p>
<p>The help text are available with Get-Help:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/02/image3.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/02/image_thumb3.png?w=637&#038;h=282" border="0" alt="image" width="637" height="282" /></a></p>
<p>For example usage, add –Examples to the Get-Help cmdlet:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/02/image4.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/02/image_thumb4.png?w=638&#038;h=214" border="0" alt="image" width="638" height="214" /></a></p>
<p>Basic error checking for valid parameters are included:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/02/image5.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/02/image_thumb5.png?w=612&#038;h=98" border="0" alt="image" width="612" height="98" /></a></p>
<p>The Set-PinnedApplication function supports the en-us and nb-no locales as-is, but you can easily add support for more locales.</p>
<p>Feel free to let me know in the comment section below if you got any feedback.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/405/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=405&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/02/26/pin-and-unpin-applications-from-the-taskbar-and-start-menu-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/02/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/02/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/02/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/02/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/02/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/02/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Hyper-V R2 and storage location for snapshot differencing disks</title>
		<link>http://blog.powershell.no/2010/02/23/hyper-v-r2-and-storage-location-for-snapshot-differencing-disks/</link>
		<comments>http://blog.powershell.no/2010/02/23/hyper-v-r2-and-storage-location-for-snapshot-differencing-disks/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 12:16:05 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Hyper-V R2]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[avhd path;snapshots in hyper-v]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/02/23/hyper-v-r2-and-storage-location-for-snapshot-differencing-disks/</guid>
		<description><![CDATA[I recently worked with a Hyper-V case, where the differencing disk files (.AVHD) for snapshots didn`t appear at the expected location. As we figured this out, I would like to share the experience we had regarding this.
A virtual machine has two important directories, the VM root and the snapshot root. The VM root is where [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=392&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I recently worked with a Hyper-V case, where the differencing disk files (.AVHD) for snapshots didn`t appear at the expected location. As we figured this out, I would like to share the experience we had regarding this.</p>
<p>A virtual machine has two important directories, the VM root and the snapshot root. The VM root is where we store the virtual machine configuration file (XML) and the saved state files (.BIN and .VSV). The snapshot root is where we store the config and saved state files for each snapshot of a virtual machine. </p>
<p>Virtual hard disks (.VHDs) are stored where ever the user specifies when creating the virtual machine (or when creating a new virtual hard disk). </p>
<p>What has changed in Hyper-V between Windows Server 2008 and Windows Server 2008 R2 is the placement of .AVHD files (these are the differencing disks created for each snapshot). In Windows Server 2008 the .AVHD is always created in the snapshot root location, which by default are located at C:\ProgramData\Microsoft\Windows\Hyper-V\Snapshots. This caused a lot of people problems &#8211; as they would run out of space on the partition where the snapshot root folder was. In Windows Server 2008 R2 the .AVHD file is always created in the same location as its parent virtual hard disk. </p>
<p>This means that with R2 .AVHD files will always appear beside their respective .VHD files. The one exception to this is if you bring across a Windows Server 2008 virtual machine with .AVHDs already in the snapshot root. In this case new .AVHDs will be created beside their parent .AVHDs (in the snapshot root).</p>
<p>&#160;</p>
<p><strong>Microsoft TechNet Resources      <br /></strong>    <br /><a href="http://technet.microsoft.com/en-us/library/cc730764(WS.10).aspx">Hyper-V in Windows Server 2008</a>     <br /><a href="http://technet.microsoft.com/en-us/library/cc730764.aspx">Hyper-V R2 in Windows Server 2008 R2</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=392&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/02/23/hyper-v-r2-and-storage-location-for-snapshot-differencing-disks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>
	</item>
		<item>
		<title>Articles published on ITPro.no</title>
		<link>http://blog.powershell.no/2010/02/12/articles-published-on-itpro-no/</link>
		<comments>http://blog.powershell.no/2010/02/12/articles-published-on-itpro-no/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 22:47:18 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Exchange Server 2010]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[Terminal Services]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/02/12/articles-published-on-itpro-no/</guid>
		<description><![CDATA[Recently I`ve published a few articles on the Norwegian website ITPro.no which might be of interest for the Norwegian readers:
Administrasjon av Active Directory med Windows PowerShell
Hva er nytt i Microsoft Exchange 2010
Konfigurer Single Sign-On mot Remote Desktop Services
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=391&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I`ve published a few articles on the Norwegian website ITPro.no which might be of interest for the Norwegian readers:</p>
<p><a href="http://itpro.no/art/14923.html"><font color="#000000" size="1">Administrasjon av Active Directory med Windows PowerShell</font></a></p>
<p><a href="http://itpro.no/art/14929.html"><font color="#000000" size="1">Hva er nytt i Microsoft Exchange 2010</font></a></p>
<p><a href="http://itpro.no/art/14915.html"><font color="#000000" size="1">Konfigurer Single Sign-On mot Remote Desktop Services</font></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=391&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/02/12/articles-published-on-itpro-no/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>
	</item>
		<item>
		<title>Validate SPN mappings using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/01/28/validate-spn-mappings-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/01/28/validate-spn-mappings-using-windows-powershell/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 11:28:34 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[duplicate SPN]]></category>
		<category><![CDATA[Service Principal Name]]></category>
		<category><![CDATA[SPN mappings]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/01/28/validate-spn-mappings-using-windows-powershell/</guid>
		<description><![CDATA[&#160;
What is a SPN mapping?
A Service Principal Name (SPN) mapping allows a service running on an Active Directory computer to be associated with a domain account that are responsible for the management of the service. This allows the use of mutual Kerberos authentication, and an account defined in a SPN mapping are able to request [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=390&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><strong><font size="2">What is a SPN mapping?</font></strong></p>
<p>A <a href="http://technet.microsoft.com/en-us/library/cc961723.aspx">Service Principal Name (SPN)</a> mapping allows a service running on an Active Directory computer to be associated with a domain account that are responsible for the management of the service. This allows the use of mutual Kerberos authentication, and an account defined in a SPN mapping are able to request Kerberos tickets on the requesting user`s behalf. Examples of services that uses Kerberos and SPN mappings include SQL Servers, web servers, LDAP servers, Exchange servers and so on.     </p>
<p><strong><font size="2">Validation of SPN mappings</font></strong></p>
<p>A SPN mapping must be unique within an Active Directory domain, and duplicate mappings will result in problems for the involved services.</p>
<p>While the command line tool <a href="http://technet.microsoft.com/en-us/library/cc731241(WS.10).aspx">setspn.exe</a>, which are used for managing SPN mappings also can be used for queries, I wanted to use Windows PowerShell to accomplish this. I`ve put together a script module with two functions:     <br />Resolve-SPN – Resolves the provided SPN mapping     <br />Resolve-AllDuplicateDomainSPNs – Resolves all SPN mappings in the domain and reports duplicate mappings</p>
<p>The script module are available on the TechNet Script Center Gallery, click <a href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/a3cfe63f-7369-403a-afed-5ce03a3bbb21">here</a> for the direct link.</p>
<p>Save the script module as a psm1-file in the following directory: %userprofile%\Documents\WindowsPowerShell\Modules\SPNValidation    <br />&#160; <br />You need to manually create the 3 subfolders under %userprofile%\Documents if they doesn`t exist. </p>
<p>When done, start Windows PowerShell and type the following command:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image15.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb15.png?w=395&#038;h=207" width="395" height="207" /></a> </p>
<p>You should now see the SPNValidation module.    <br />Import the module with the Import-Module cmdlet:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image16.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb16.png?w=456&#038;h=114" width="456" height="114" /></a> </p>
<p>Resolve-AllDuplicateDomainSPNs can be executed without any parameters:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image17.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb17.png?w=578&#038;h=150" width="578" height="150" /></a> </p>
<p>Resolve-SPN has one mandatory parameter: –SPN    <br />Example usage:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image18.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb18.png?w=556&#038;h=201" width="556" height="201" /></a> </p>
</p>
</p>
<p>Note that the PowerShell Active Directory module for Windows   <br />Server 2008 R2 are required, because the Get-ADObject cmdlet are used in one of the script module`s functions.     <br />The PowerShell Active Directory module are also available in <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7D2F6AD7-656B-4313-A005-4E344E43997D&amp;displaylang=en">Remote Server Administration Tools (RSAT) for Windows 7</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/390/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=390&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/01/28/validate-spn-mappings-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb16.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb17.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb18.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Automate Group Policy Preferences printer-management using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/01/18/automate-group-policy-preferences-printer-management-using-windows-powershell-2/</link>
		<comments>http://blog.powershell.no/2010/01/18/automate-group-policy-preferences-printer-management-using-windows-powershell-2/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 13:44:32 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Print management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/01/18/automate-group-policy-preferences-printer-management-using-windows-powershell-2/</guid>
		<description><![CDATA[I`ve written a couple of blog posts earlier on Group Policy Preferences and printer deployment using Group Policy.
Using Group Policy Preferences is a very flexible way to deploy printer connections. This is also very manageable in smaller environments. What if you got hundreds, or even thousands of printer connections you need to deploy? Do you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=378&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I`ve written a couple of blog posts earlier on <a href="http://blog.powershell.no/2009/03/20/group-policy-preferences">Group Policy Preferences</a> and <a href="http://blog.powershell.no/2009/11/08/deploying-printers-using-group-policy/">printer deployment using Group Policy</a>.</p>
<p>Using Group Policy Preferences is a very flexible way to deploy printer connections. This is also very manageable in smaller environments. What if you got hundreds, or even thousands of printer connections you need to deploy? Do you want to sit down and make several thousands of mouse clicks to accomplish the task? There are better alternatives!</p>
<p>Based on SDM Software`s <a href="http://www.sdmsoftware.com/group_policy_scripting.php">Group Policy Automation Engine</a>, I`ve created a script module to handle this. The script module are available from <a href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/df4eae77-c8a9-40f9-b2eb-a7ed9ef7cd2a">this link</a>.</p>
<p>Save the script module as a psm1-file in the following directory: %userprofile%\Documents\WindowsPowerShell\Modules\GPPreferencesPrinters    <br />You need to manually create the 3 subfolders under %userprofile%\Documents if they doesn`t exist.</p>
<p>When done, start Windows PowerShell and type the following command:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image9.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb9.png?w=244&#038;h=95" width="244" height="95" /></a> </p>
<p>You should now see the GPPreferencesPrinters module.    <br />Import the module with the Import-Module cmdlet:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image10.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb10.png?w=644&#038;h=75" width="644" height="75" /></a> </p>
<p>As you can see there are two functions in addition to SDM Software`s cmdlet: Add-GPPreferencesPrinter and Get-GPPreferencesPrinter.</p>
<p>Example 1:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image11.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb11.png?w=644&#038;h=93" width="644" height="93" /></a> </p>
<p>Example 2:</p>
<p>If you got the printers listed in an Excel spreadsheet, save the document in csv-format:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image12.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb12.png?w=244&#038;h=58" width="244" height="58" /></a> </p>
<p>The csv-file may be used like this to import the printer connections:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image13.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb13.png?w=644&#038;h=38" width="644" height="38" /></a> </p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image14.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb14.png?w=244&#038;h=107" width="244" height="107" /></a> </p>
<p>Additional functions and parameters will later be added to the script module, i.e. Remove-GPPreferencesPrinter and Item-Level Targeting. Note that example usage for Item-Level Targeting are provided in the Group Policy Automation Engine User Manual.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=378&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/01/18/automate-group-policy-preferences-printer-management-using-windows-powershell-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb14.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Outlook signature based on user information from Active Directory</title>
		<link>http://blog.powershell.no/2010/01/09/outlook-signature-based-on-user-information-from-active-directory/</link>
		<comments>http://blog.powershell.no/2010/01/09/outlook-signature-based-on-user-information-from-active-directory/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 11:51:45 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Microsoft Outlook]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[outlook signature from active directory]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2010/01/09/outlook-signature-based-on-user-information-from-active-directory/</guid>
		<description><![CDATA[To provide a consistent company image all users should use the same signature template in their Outlook profile. I`ve created a Windows PowerShell-script to deploy a consistent Outlook signature to users, based on user information retrieved from Active Directory. I`ve used the fields “Display name”, “Title, “E-mail” and “Telephone number”, however, additional fields may be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=364&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>To provide a consistent company image all users should use the same signature template in their Outlook profile. I`ve created a Windows PowerShell-script to deploy a consistent Outlook signature to users, based on user information retrieved from Active Directory. I`ve used the fields “Display name”, “Title, “E-mail” and “Telephone number”, however, additional fields may be added to suit your needs.</p>
<p>&#160;</p>
<p><font size="4">Step-by-step</font></p>
<p>1) Download the script from <a href="http://poshcode.org/1565">here</a>. Save it to a UNC-path accessible for all users.</p>
<p>2) Adjust the custom variables:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb.png?w=644&#038;h=57" width="644" height="57" /></a> </p>
<p>3) From an Outlook client, create a signature based on your company template:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb1.png?w=244&#038;h=164" width="244" height="164" /></a> </p>
<p>4) Copy the signature files from %appdata%\Microsoft\Signatures to the UNC-path specified in the SigSource-variable in the script:</p>
</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image2.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb2.png?w=125&#038;h=91" width="125" height="91" /></a> </p>
</p>
<p>5) Open both Company Name.rtf and Company Name.htm in Microsoft Office Word and insert the following bookmarks:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image3.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb3.png?w=244&#038;h=129" width="244" height="129" /></a> </p>
<p>Mark each word, e.g. “EmailAddress”, go to “Insert”, press the “Bookmark”-button and name the bookmark “EmailAddress”. It`s important that the names of the bookmarks are “DisplayName”, “Title”, “TelephoneNumber” and “EmailAddress”.    <br />This is because these bookmarks are replaced by the information retrieved from Active Directory for the logged-on user.</p>
<p>6) When appropriately tested, deploy the script to end users. This may be accomplished by e.g. Group Policy:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image4.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb4.png?w=244&#038;h=170" width="244" height="170" /></a></p>
<p>&#160;</p>
<p><font size="4">Additional information</font></p>
<p>Sample signature created using Set-OutlookSignature.ps1:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image5.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb5.png?w=150&#038;h=148" width="150" height="148" /></a> </p>
<p>Active Directory object for sample user:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image6.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb6.png?w=194&#038;h=244" width="194" height="244" /></a> <a href="http://janegilring.files.wordpress.com/2010/01/image7.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb7.png?w=196&#038;h=244" width="196" height="244" /></a></p>
</p>
<p>Settings are stored in HKCU in the registry:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/01/image8.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2010/01/image_thumb8.png?w=244&#038;h=100" width="244" height="100" /></a> </p>
<p>A few notes:    <br />-Existing signatures are preserved     <br />-Users are allowed to make customizations to their signatures until a new version are deployed. Then the exisiting company-signature will be overwritten.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/364/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=364&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/01/09/outlook-signature-based-on-user-information-from-active-directory/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2010/01/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Single Sign-On to Remote Desktop Services</title>
		<link>http://blog.powershell.no/2009/12/25/single-sign-on-to-remote-desktop-services/</link>
		<comments>http://blog.powershell.no/2009/12/25/single-sign-on-to-remote-desktop-services/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 22:42:37 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[Terminal Services]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[rds web access]]></category>
		<category><![CDATA[Single Sign-On]]></category>
		<category><![CDATA[Single Signon]]></category>
		<category><![CDATA[SSO]]></category>
		<category><![CDATA[terminal server]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/12/25/single-sign-on-to-remote-desktop-services/</guid>
		<description><![CDATA[&#160;
Single sign-on is an authentication method that allows users with a domain account to log on once to a client computer by using a password, and then gain access to remote servers without being asked for their credentials again. See more details here for Windows Server 2008 and here for Windows Server 2008 R2.
On the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=345&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Single sign-on is an authentication method that allows users with a domain account to log on once to a client computer by using a password, and then gain access to remote servers without being asked for their credentials again. See more details <a href="http://technet.microsoft.com/en-us/library/cc772108(WS.10).aspx">here</a> for Windows Server 2008 and <a href="http://technet.microsoft.com/en-us/library/cc742808.aspx">here</a> for Windows Server 2008 R2.</p>
<p>On the client-side SSO are currently available for Windows XP with SP3, Windows Vista and Windows 7.</p>
<p>&#160;</p>
<p><strong><font size="4">Configure SSO on the server-side</font></strong></p>
<p>To configure SSO on the server-side (Windows Server 2008 Terminal Services or Windows Server 2008 R2 Remote Desktop Services), set the option “Security layer” to either “Negotiate” or “SSL (TLS 1.0)”:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb.png?w=244&#038;h=173" width="244" height="173" /></a> </p>
<p>Best practice would be to configure this in a common GPO for all Remote Desktop Services servers in the domain:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb1.png?w=244&#038;h=223" width="244" height="223" /></a> </p>
<p>This setting resides under Computer Configuration-&gt;Policies-&gt;Administrative templates-&gt;Windows Components-&gt;Terminal Services-&gt;Terminal Server-&gt;Security.</p>
<p>&#160;</p>
<p><strong><font size="4">Configure SSO on the client-side</font></strong></p>
<p>Using a common GPO would also be the best practice to deploy the client settings needed for SSO to work.    <br />The “Allow Delegating Default Credentials” resides under Computer Configuration-&gt;Policies-&gt;System-&gt;Credentials Delegation:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image2.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb2.png?w=644&#038;h=191" width="644" height="191" /></a> </p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image3.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb3.png?w=244&#038;h=225" width="244" height="225" /></a> </p>
<p>Enable “Allow Delegating Default Credentials”, press the “Show”-button and either specify the domain pre-fixed with * to allow delegation to all servers in the domain, or specify specific servers:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image4.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb4.png?w=244&#038;h=162" width="244" height="162" /></a>&#160;</p>
</p>
</p>
<p>Next, create a RDP-file and deploy this file to the client computers.    <br />Before deploying the file, open it in a text editor, e.g. Notepad, and add the following line: enablecredsspsupport:i:1     <br />This will enable SSO for the RDP-file.</p>
<p>I would also recommend to sign the RDP-file with a Code Signing certificate. This can be accomplished using the utility <a href="http://technet.microsoft.com/en-us/library/cc753982(WS.10).aspx">rdpsign.exe</a>:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image5.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb5.png?w=244&#038;h=79" width="244" height="79" /></a> </p>
<p>Sample signing:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image6.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb6.png?w=244&#038;h=20" width="244" height="20" /></a> </p>
<p>When a RDP-file are signed, the following will be added to the bottom of the file:</p>
<p>signature:s:AQABAAEAAADBCgAAMIIKvQ……..</p>
<p>For Windows Vista and Windows 7 clients, the configuration would now be completed when the RDP-file are deployed.</p>
</p>
<p>&#160;</p>
<p>For Windows XP clients the following would be necessary in addition to the steps above:    <br />-Service Pack 3 needs to be installed     <br />-At least version 6.0 of the Remote Desktop Client     <br />-Turn on the CredSSP Security Provider</p>
<p>The steps to turn on the CredSSP Security Provider are described in <a href="http://support.microsoft.com/default.aspx/kb/951608">this</a> kb-article.</p>
<p>I would recommend deploying these registry settings using Group Policy Preferences:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image7.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb7.png?w=244&#038;h=125" width="244" height="125" /></a> </p>
<p>Also the RDP-file may be deployed in the same way:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/12/image8.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/12/image_thumb8.png?w=244&#038;h=43" width="244" height="43" /></a> </p>
<p>I`ve covered the usage of Group Policy Preferences in a <a href="http://blog.powershell.no/2009/03/20/group-policy-preferences/">previous post</a>.</p>
</p>
<p>Also, SSO can be combined with <a href="http://technet.microsoft.com/en-us/library/cc731923.aspx">Remote Desktop Services Web Access</a>. The Remote Desktop Services Team has posted an excellent <a href="http://blogs.msdn.com/rds/archive/2009/08/11/introducing-web-single-sign-on-for-remoteapp-and-desktop-connections.aspx">post</a> describing how to set up SSO in RDS Web Access.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=345&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/12/25/single-sign-on-to-remote-desktop-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/12/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Mapping printers based on Active Directory group membership using Windows PowerShell</title>
		<link>http://blog.powershell.no/2009/11/28/mapping-printers-based-on-active-directory-group-membership-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2009/11/28/mapping-printers-based-on-active-directory-group-membership-using-windows-powershell/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 01:08:56 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Print management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/11/28/mapping-printers-based-on-active-directory-group-membership-using-windows-powershell/</guid>
		<description><![CDATA[While researching for a logon script setup for mapping network printers using Windows PowerShell, I thought of using the Windows native tool printui.dll for the actual printer mappings.
However, I was`nt quite sure how to check for a users` group membership in Active Directory. This sure can be accomplished with a tool like Quest`s PowerShell Commands [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=325&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>While researching for a logon script setup for mapping network printers using Windows PowerShell, I thought of using the Windows native tool <a href="http://support.microsoft.com/kb/189105">printui.dll</a> for the actual printer mappings.<br />
However, I was`nt quite sure how to check for a users` group membership in Active Directory. This sure can be accomplished with a tool like Quest`s <a href="http://www.quest.com/powershell/activeroles-server.aspx">PowerShell Commands for Active Directory</a>. However, installing this on every domain computer wasn`t an option.<br />
Then I found <a href="http://www.telnetport25.com/component/content/article/15-powershell/127-quick-tip-determining-group-ad-membership-using-powershell.html">Andy Grogan`s PowerShell function for determining AD group membership</a>.</p>
<p>Based on this function, and the printui.dll the task was easy to accomplish. I`ve published a sample script to <a href="http://poshcode.org/">PoshCode.org</a>, available from <a href="http://poshcode.org/1494">here</a>.</p>
<p>You may also want to check out &#8220;<a href="http://download.microsoft.com/download/8/2/c/82cffcfa-56f6-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc">PrintUI.DLL User&#8217;s Guide and Reference</a>&#8220;.</p>
<p>Tested with Windows PowerShell v 1.0/2.0 and Windows XP/Vista/7.</p>
<p>As an alternative, you may also want to check out <a href="http://blog.powershell.no/2009/11/08/deploying-printers-using-group-policy/">this</a> blog post on mapping printers using Group Policy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/325/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=325&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/11/28/mapping-printers-based-on-active-directory-group-membership-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>
	</item>
		<item>
		<title>Deploying printers using Group Policy</title>
		<link>http://blog.powershell.no/2009/11/08/deploying-printers-using-group-policy/</link>
		<comments>http://blog.powershell.no/2009/11/08/deploying-printers-using-group-policy/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 18:38:52 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Print management]]></category>
		<category><![CDATA[Windows Server 2003 R2]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/11/08/deploying-printers-using-group-policy/</guid>
		<description><![CDATA[Traditionally printer connections have been deployed to users with scripting, like batch (net use) and Kixtart (AddPrinterConnection).
I would now like to show how printer connections can be deployed using Group Policy. Today we have 2 possible solutions for natively deploy printers using Group Policy without the need for any scripting:
1) Group Policy Preferences – available [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=314&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Traditionally printer connections have been deployed to users with scripting, like batch (net use) and Kixtart (AddPrinterConnection).</p>
<p>I would now like to show how printer connections can be deployed using Group Policy. Today we have 2 possible solutions for natively deploy printers using Group Policy without the need for any scripting:</p>
<p>1) Group Policy Preferences – available in Windows Server 2008 and later</p>
<p>2) Print Management – available in Windows Server 2003 R2 and later</p>
<p>Using Group Policy Preferences to deploy printers are described in an earlier blog post, available <a href="http://blog.powershell.no/2009/03/20/group-policy-preferences/" target="_blank">here</a>. Therefore, I won`t explain any further details regarding this.</p>
<p>I will focus on the Print Management which has a powerful “Deploy with Group Policy” feature.</p>
<p><span style="font-size:large;">Configure printer deployment on </span></p>
<p><span style="font-size:large;">print servers</span></p>
<p>To use the “Deploy with Group Policy” feature, you need to install the “Print Management Component” feature from “Add/Remove Windows Components” in Windows Server 2003 R2. In Windows Server 2008/2008 R2 you need to install the “Print Server”-role from the “Add Roles Wizard”.</p>
<p>When installed, you`ll find “Print Management” under “Administrative tools” on the Start menu:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image1.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb1.png?w=122&#038;h=23" border="0" alt="image" width="122" height="23" /></a></p>
<p>The following screenshots are taken from Windows Server 2008 R2.</p>
<p>When you open the Print Management Console you will see an overview of Custom Filters, Print Server and Deployed Printers:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image2.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb2.png?w=135&#038;h=184" border="0" alt="image" width="135" height="184" /></a></p>
<p>You may add additional filters and print servers to the console, which you can read more about in the links in the bottom of this post. For now, we`ll focus on the printer deployment part.</p>
<p>Right-click the printer you want to deploy, and select “Deploy with Group Policy”:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image3.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb3.png?w=290&#038;h=139" border="0" alt="image" width="290" height="139" /></a></p>
<p>Select “Browse” to choose a Group Policy Object where the printer connection will be deployed. Select “per user” and/or “per machine” and press “Add”. Then click “OK”:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image4.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb4.png?w=426&#038;h=255" border="0" alt="image" width="426" height="255" /></a></p>
<p>You should now receive a message stating that the deployment operation was successful. Click “OK”:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image5.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb5.png?w=244&#038;h=187" border="0" alt="image" width="244" height="187" /></a> </p>
<p>The printer will now be deployed to client computers.</p>
<p><span style="font-size:large;"> </span></p>
<p><span style="font-size:large;">Behind the scenes</span></p>
<p>To understand how the print deployment feature works, we`ll activate the “Advanced Features” option on the “View”-menu in “Active Directory Users and Computers”:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image6.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb6.png?w=244&#038;h=129" border="0" alt="image" width="244" height="129" /></a></p>
<p>Open the “Group Policy Management Console”, go to the Group Policy Object you deployed the printer to, and select “Details”:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image7.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb7.png?w=244&#038;h=204" border="0" alt="image" width="244" height="204" /></a></p>
<p>Note the “Unique ID” (GUID).</p>
<p>Back in ADUC, expand “System” and then “Policies”:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image8.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb8.png?w=194&#038;h=324" border="0" alt="image" width="194" height="324" /></a></p>
<p>This is where the actual Group Policy Objects in Active Directory are stored, in addition to <a href="//\\domain.local\sysvol\policies">\\domain.local\sysvol\policies</a>.</p>
<p>Find and expand the Group Policy Object you deployed the printer to. You will now see “PushedPrinterConnections” under the “Machine” and “User” nodes:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image9.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb9.png?w=244&#038;h=76" border="0" alt="image" width="244" height="76" /></a></p>
<p>When looking at “PushedPrinterConnections” under the “User” node, we see an entry of type “msPrint-ConnectionPolicy”:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image10.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb10.png?w=262&#038;h=27" border="0" alt="image" width="262" height="27" /></a></p>
<p>When we go into “Properties” on the “msPrint-ConnectionPolicy” and go to “Attribute Editor”, we can see that this represents the printer connection we added:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image11.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb11.png?w=265&#038;h=293" border="0" alt="image" width="265" height="293" /></a></p>
<p><span style="font-size:large;">Deployment to client computers</span></p>
<p>Client computers running Windows Vista and later have native support for the new printer connection policies, and will work “out-of-the-box” when printer connections are added to a Group Policy.</p>
<p>Client computers running Windows 2000 and Windows XP doesn`t support the the new printer connection policies natively. To resolve this, there are a utility called “pushprinterconnections.exe” which must be added to a logonscript in Group Policy. This utility will check the computer and user Group Policy Objects and add any printer connections defined.</p>
<p>This utility have 1 parameter: –log. This is useful when troubleshooting problems, and I would recommend you to use this parameter. As you can see, the utility should not be run manually from the command line:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image12.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb12.png?w=446&#038;h=154" border="0" alt="image" width="446" height="154" /></a></p>
<p>Here is an example of the utility added to a logon-script in a Group Policy Object:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image13.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb13.png?w=270&#038;h=392" border="0" alt="image" width="270" height="392" /></a></p>
<p>The log-files are named “ppcUser.log” and “ppcComputer.log”. These are located in the %temp% directory:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image14.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb14.png?w=479&#038;h=50" border="0" alt="image" width="479" height="50" /></a></p>
<p>Here is an example output of the logfile:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image15.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb15.png?w=567&#038;h=85" border="0" alt="image" width="567" height="85" /></a></p>
<p>In Windows 2000 and Windows XP, no other feedback than these log-files are provided.</p>
<p>In Windows Vista/Windows Server 2008 and later, the following feedback are shown during logon:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image16.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb16.png?w=244&#038;h=182" border="0" alt="image" width="244" height="182" /></a></p>
<p>In addition, any failures are logged to the “Application”-log with Source “SpoolerSpoolss”.</p>
<p><span style="font-size:small;"><strong>Special considerations</strong></span></p>
<p>Windows 2000 supports only “per machine” deployments when using the pushprinterconnections.exe utility.</p>
<p>The pushprinterconnections.exe utility won`t catch “per user” connection policies when using “User Group Policy loopback processing”. You must link the GPO containing the “per user” connection policies to an Organizational Unit where the users reside.</p>
<p>Use ACL`s  on the printer objects on the print servers to publish the printers based on group membership. By using this approach, all printer connections may be defined in the same Group Policy Object.</p>
<p><span style="font-size:large;">My recommendations</span></p>
<p>As I said in the introduction to this post, printer connections have traditionally been deployed to users with scripting. Since there are native ways to accomplish this using Group Policy, this would be my recommendation.</p>
<p>Considerations for using the “Deploy with Group Policy” feature in the print server role:</p>
<p>-the print administrator would have an overview over all printers which are deployed with the Print Management Group Policy feature in the Print Management console<br />
-printers can be administered in an individual GPO like GP Preferences with the Print Management console. To do so, open Group Policy Editor, expand Computer Configuration/User Configuration-&gt;Policies-&gt;Windows Settings-&gt;Deployed Printers<br />
-it requires that pushprinterconnections.exe are run on Windows XP and Windows Server 2003 clients<br />
-it is available with Windows XP/Windows Server 2003 R2 and later (backwards compatible to Windows 2000 Professional/2000 Server)<br />
-it requires Windows Server 2003 Client Access Licenses (CALs)</p>
<p>Considerations for using Group Policy Preferences:</p>
<p>-it can handle more different printer types (local, TCP/IP, and shared instead of only &#8220;shared&#8221;)<br />
-it has several additional options (deleting all existing connections, setting default printer, etc.)<br />
-it can save a lot of GPOs because you can have many printer objects in one GPO and use &#8220;Item Level Targeting&#8221; to address each printer individually (e.g. clients in a specific IP-range, per group or even per user)<br />
-it is easy to automate the process of adding printer objects to a GPO using Windows PowerShell, since the GP Preferences settings are store in XML-files<br />
-it requires that Group Policy Client Side Extenstions are deployed on Windows XP and Windows Server 2003 clients<br />
-it is available with Windows Vista/Windows Server 2008 and later (backwards compatible to Windows XP/2003 Server)<br />
-it requires Windows Server 2008 Client Access Licenses (CALs)</p>
<p><span style="font-size:large;"> </span></p>
<p><span style="font-size:large;">Resource links</span></p>
<p><a href="http://technet.microsoft.com/en-us/library/cc755424(WS.10).aspx#BKMK_DeployingPrinters">Step-by-Step Guide for Print Management</a><br />
(Applies To: Windows Server 2003 R2)</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc753109(WS.10).aspx">Print Management Step-by-Step Guide</a><br />
Applies To: Windows Server 2008</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc766474.aspx">Print Management</a><br />
(Applies To: Windows 7, Windows Server 2008 R2, Windows Vista)</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc772505.aspx">Deploy the PushPrinterConnections.exe Utility</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/314/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=314&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/11/08/deploying-printers-using-group-policy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb14.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/11/image_thumb16.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>