<?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>blog.powershell.no &#187; Remote Desktop Services</title>
	<atom:link href="http://blog.powershell.no/category/remote-desktop-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.powershell.no</link>
	<description>On Windows PowerShell and other admin-related topics</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<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>blog.powershell.no &#187; Remote Desktop Services</title>
		<link>http://blog.powershell.no</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.powershell.no/osd.xml" title="blog.powershell.no" />
	<atom:link rel='hub' href='http://blog.powershell.no/?pushpress=hub'/>
		<item>
		<title>Manage RDS RemoteApp with Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/06/30/manage-rds-remoteapp-with-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/06/30/manage-rds-remoteapp-with-windows-powershell/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 21:01:21 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Terminal Services]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[rds powershell provider]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2010/06/30/manage-rds-remoteapp-with-windows-powershell/</guid>
		<description><![CDATA[In Windows Server 2008 R2, Remote Desktop Services (formerly Terminal Services) includes a provider for managing RDS using Windows PowerShell. You may find more information along with some examples in this article on Microsoft TechNet. One of the many things you can manage this way is the new RemoteApp-feature introduced with Windows Server 2008. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=535&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>In Windows Server 2008 R2, Remote Desktop Services (formerly Terminal Services) includes a provider for managing RDS using Windows PowerShell. You may find more information along with some examples in <a href="http://technet.microsoft.com/en-us/library/ee791871(WS.10).aspx" target="_blank">this article</a> on Microsoft TechNet.</p>
<p>One of the many things you can manage this way is the new RemoteApp-feature introduced with Windows Server 2008. In Windows Server 2008 R2, this feature got enhanced by the addition of <a href="http://blogs.msdn.com/b/rds/archive/2009/06/12/introducing-remoteapp-user-assignment.aspx" target="_blank">User Assignment</a> and <a href="http://blogs.msdn.com/b/rds/archive/2009/08/11/introducing-web-single-sign-on-for-remoteapp-and-desktop-connections.aspx" target="_blank">Web Single Sign-On</a> capabilities. These new features makes it possible for more and more customers to consider RDS without additional products like Citrix. One benefit using Citrix are more flexible application-management, since an published application may be available from a new farm member without adding each application manually.</p>
<p>Let`s look at a given example: You got a farm with 16 RDS-servers, and you`re leveraging the RemoteApp-feature. For each server in the farm, you must manually set up all applications in RemoteApp-manager after they`re installed. Although there is an export/import-feature in the GUI, many customers require no manual interaction in the server provisioning process. By the addition of the new PowerShell-provider for RDS, this is now possible in RemoteApp using scripting as part of either server provisioning or Group Policy.</p>
<p>For the average Windows sysadmin, I imagine that managing RemoteApp using the RDS PowerShell provider might be a bit tedious. To make this a little easier I`ve created a Windows PowerShell module for working with RDS RemoteApp, available from <a href="http://code.msdn.microsoft.com/PSRDSRemoteApp" target="_blank">here</a>.</p>
<p>This module contains the following functions:</p>
<ul>
<li><strong>Get-RDSRemoteApp</strong></li>
<li><strong>Export-RDSRemoteApps</strong></li>
<li><strong>Import-RDSRemoteApps</strong></li>
<li><strong>New-RDSRemoteApp</strong></li>
<li><strong>Remove-RDSRemoteApp</strong></li>
</ul>
<p>The functions let you administer the same application attributes as the graphical RemoteApp Manager:</p>
<ul>
<li>Displayname</li>
<li>Alias</li>
<li>Command-line arguments</li>
<li>RD Web Access availability</li>
<li>User Assignment</li>
</ul>
<p> </p>
<p><strong><span style="font-size:x-small;">Installing the RDSRemoteApp module</span></strong></p>
<p><a href="http://code.msdn.microsoft.com/PSRDSRemoteApp" target="_blank">Download</a> and unzip RDSRemoteApp.zip in the following location: %userprofile%\Documents\WindowsPowerShell\Modules\RDSRemoteApp</p>
<p>Alternatively you may save the module in any of the folders in the $Env:PSMODULEPATH variable.</p>
<p><strong><span style="font-size:x-small;">Using the RDSRemoteApp module</span></strong></p>
<p>First we`ll have a look at the RemoteApp Manager application-list in the lab-environment:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image8.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb8.png?w=468&#038;h=167" border="0" alt="image" width="468" height="167" /></a></p>
<p>Start Windows PowerShell on the RDS-server and import the module (you will need to run PowerShell with Administrative privileges):</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image9.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb9.png?w=244&#038;h=47" border="0" alt="image" width="244" height="47" /></a></p>
<p>Since I`ve leveraged the built-in help capabilities in Windows PowerShell v2 Advanced Functions, I`ll show the usage of the functions with a few screenshots from the help:</p>
<p><strong>Get-RDSRemoteApp</strong></p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image10.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb10.png?w=627&#038;h=110" border="0" alt="image" width="627" height="110" /></a></p>
<p><strong>New-RDSRemoteApp</strong></p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image11.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb11.png?w=629&#038;h=194" border="0" alt="image" width="629" height="194" /></a></p>
<p><strong>Remove-RDSRemoteApp</strong></p>
<p>  <a href="http://janegilring.files.wordpress.com/2010/06/image12.png"><img class="wlDisabledImage" style="display:inline;border:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb12.png?w=630&#038;h=208" border="0" alt="image" width="630" height="208" /></a></p>
<p><strong>Export-RDSRemoteApps</strong></p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image13.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb13.png?w=636&#038;h=133" border="0" alt="image" width="636" height="133" /></a></p>
<p><strong>Import-RDSRemoteApps</strong></p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image14.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb14.png?w=640&#038;h=138" border="0" alt="image" width="640" height="138" /></a> </p>
<p>Sample usage for export/import:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image15.png"><img class="wlDisabledImage" style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb15.png?w=645&#038;h=161" border="0" alt="image" width="645" height="161" /></a></p>
<p>Be aware that there are several other RDS settings that may be managed using the PowerShell provider, this module only leverages the RemoteApp functionality. If someone want to create a module for managing other aspects of RDS, feel free to include my RDSRemoteApp module. And as always, suggestions for improvements and new functionality are more than welcome.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/535/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=535&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/06/30/manage-rds-remoteapp-with-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/06/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

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

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

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

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

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

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

		<media:content url="http://janegilring.files.wordpress.com/2010/06/image_thumb15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Remote Desktop Connection Manager connection list</title>
		<link>http://blog.powershell.no/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/</link>
		<comments>http://blog.powershell.no/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 21:51:06 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[RSAT]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[Remote Management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/</guid>
		<description><![CDATA[  Microsoft recently released a free tool for managing multiple remote desktop connections called “Remote Desktop Connection Manager”. A sample screenshot: There are several nice features, such as “Connect group” which lets you connect to all servers in a group at once: On the “Group Properties” you may set common settings for all connections in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=501&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>Microsoft recently released a free tool for managing multiple remote desktop connections called “<a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=4603c621-6de7-4ccb-9f51-d53dc7e48047" target="_blank">Remote Desktop Connection Manager</a>”.</p>
<p>A sample screenshot:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb.png?w=644&#038;h=192" border="0" alt="image" width="644" height="192" /></a></p>
<p>There are several nice features, such as “Connect group” which lets you connect to all servers in a group at once:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image1.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb1.png?w=244&#038;h=205" border="0" alt="image" width="244" height="205" /></a></p>
<p>On the “Group Properties” you may set common settings for all connections in the group, like logon credentials:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image2.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb2.png?w=501&#038;h=388" border="0" alt="image" width="501" height="388" /></a></p>
<p>Further, there are group properties for RDS Gateway (formerly TS Gateway), display settings, local resources and so on.</p>
<p>There are several applications for remote desktop connections on the market, and some of them got these settings as a per server setting. It`s nice to be able to group servers and configure common settings.</p>
<p><strong><span style="font-size:medium;">Dynamically creating the connection list</span></strong></p>
<p>When you work in larger environments with hundreds, maybe thousands of servers, setting up each connection manually isn`t an option.</p>
<p>Since Remote Desktop Connection Manager stores the config-files in xml-files, it`s rather easy to create dynamic config-files for a domain using Windows PowerShell. I`ve created a script to accomplish this, called New-RDCManFile.ps1, available from <a href="http://poshcode.org/1893">here</a>. It uses Microsoft`s <a href="http://technet.microsoft.com/en-us/library/dd378937(WS.10).aspx" target="_blank">PowerShell-module for Active Directory</a>, which is available in Windows Server 2008 R2 and <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d" target="_blank">RSAT for Windows 7</a>.</p>
<p><span style="text-decoration:underline;">The script does the following:</span><br />
Creates a template xml-file<br />
Inserts the logged on user`s domain name in the file properties<br />
Inserts the logged on user`s domain name in the group properties<br />
Inserts the logged on user`s username in the logoncredentials section<br />
Inserts the logged on user`s domain name in the logoncredentials section<br />
Retrieves all computer objects from Active Directory with the word “server” in the operatingsystem property<br />
Adds each computer object as a server object<br />
Saves the XML-file to %userprofile%\domain-name.rdg</p>
<p>When done you can open the rdg-file in Remote Desktop Connection Manager. I would recommend you to insert your password in the Group Properties to avoid being asked for credentials for each connection.</p>
<p>Feel free to customize the script to your needs, in example by editing the XML-template to edit the Group Properties. Another customization might be creating a group for each server OU for enhanced overview in larger environments.</p>
<p>If you would rather use Quest`s <a href="http://www.quest.com/powershell/activeroles-server.aspx" target="_blank">PowerShell Commands for Active Directory</a> (which works on downlevel operatingsystems like Windows XP and Windows Server 2003), or any other way to retrieve the server names, you may customize this on line 110.</p>
<p>You might also want to schedule the script to run on a regular basis, saving the file to a central location. This way the IT personnel will always have access to the latest version with the most recent servers added.</p>
<p>If you got any further ideas or comments, please let me know in the comments section below.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/501/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=501&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/feed/</wfw:commentRss>
		<slash:comments>5</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/06/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

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

		<media:content url="http://janegilring.files.wordpress.com/2010/06/image_thumb2.png" medium="image">
			<media:title type="html">image</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>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. [...]<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>How to install an Excel Add-in with PowerShell</title>
		<link>http://blog.powershell.no/2009/11/01/how-to-install-an-excel-add-in-with-powershell/</link>
		<comments>http://blog.powershell.no/2009/11/01/how-to-install-an-excel-add-in-with-powershell/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:19:11 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Remote Desktop Services]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Excel Addin automation]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/11/01/how-to-install-an-excel-add-in-with-powershell/</guid>
		<description><![CDATA[Recently I had the need to automate the process of installing Excel Add-ins in a terminalserver (or more correctly Remote Desktop Services environment since this was Windows Server 2008 R2) environment. Since Excel Add-ins are per-user based, this was in the first place a manual setting. Of course we wanted to automate this process, so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=279&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I had the need to automate the process of installing Excel Add-ins in a terminalserver (or more correctly Remote Desktop Services environment since this was Windows Server 2008 R2) environment.</p>
<p>Since Excel Add-ins are per-user based, this was in the first place a manual setting. Of course we wanted to automate this process, so I researched a bit on the internet and found mostly VBScripts. I`ve used <a href="http://support.microsoft.com/kb/280290">this KB-article</a> as a template.     </p>
<p>Although this worked very well, I`m trying to leverage the use of PowerShell as much as possible. Many would say that VBScripts load much faster, and are more effecient as logonscripts.     <br />Even though PowerShell v1 was a bit slow due to the lack of assemblies not being ngen`ed, as <a href="http://blogs.msdn.com/powershell/archive/2008/09/02/speeding-up-powershell-startup-updating-update-gac-ps1.aspx">described on the PowerShell Team`s Blog</a>, this bug is fixed in v2 and I`m quite happy with the loading time now.</p>
<p>I basicly re-wrote the sample VBScript in the KB-article, the result are uploaded to <a href="http://poshcode.org">PoshCode.org</a> and available from <a href="http://poshcode.org/1444">here</a>.</p>
<p>I used an if-statement to check if the Add-in are already installed, to avoid installing it on every logon.</p>
<p>When tested and ready for production, the script may be distributed as a traditional logonscript, or alternatively with Group Policy:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/11/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/11/image_thumb.png?w=332&#038;h=367" width="332" height="367" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=279&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/11/01/how-to-install-an-excel-add-in-with-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/2009/11/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>