<?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; Windows 7</title>
	<atom:link href="http://blog.powershell.no/category/windows-7/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, 06 Feb 2012 09:18:37 +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://0.gravatar.com/blavatar/e22e511529c14fbc92cde5589d6231b4?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>blog.powershell.no &#187; Windows 7</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>Use Windows PowerShell to get antivirus product information</title>
		<link>http://blog.powershell.no/2011/06/12/use-windows-powershell-to-get-antivirus-product-information/</link>
		<comments>http://blog.powershell.no/2011/06/12/use-windows-powershell-to-get-antivirus-product-information/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 20:50:55 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Desktop management]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[root\SecurityCenter]]></category>
		<category><![CDATA[root\SecurityCenter2]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2011/06/12/use-windows-powershell-to-get-antivirus-product-information/</guid>
		<description><![CDATA[Windows Security Center has been available in Windows client operating systems since Windows XP SP2. This is a useful feature for monitoring the overall for security status for the system, including antivirus, antimalware and firewall protection. In situations no monitoring software like System Center Operations Manager is in place to monitor the security health on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=867&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Windows Security Center has been available in Windows client operating systems since Windows XP SP2. This is a useful feature for monitoring the overall for security status for the system, including antivirus, antimalware and firewall protection. In situations no monitoring software like System Center Operations Manager is in place to monitor the security health on client computers, one option is to use Windows Management Instrumentation. There is a WMI namespace called root\SecurityCenter2 which exposes information from the Windows Security Center, like what antivirus product is installed on the system.</p>
<p>I`ve created PowerShell function to query computers for information on what antivirus is installed as well as the current status for antivirus definitions and real-time protection:</p>
<div style="border-bottom:black 1px solid;border-left:black 1px solid;width:750px;overflow:auto;border-top:black 1px solid;border-right:black 1px solid;padding:5px;">
<table border="0" cellspacing="0" cellpadding="5">
<tbody>
<tr>
<td valign="top">
<div style="background:#cecece;padding:5px;"><font face="Consolas"><font color="#000000">001                  <br />002                   <br />003                   <br />004                   <br />005                   <br />006                   <br />007                   <br />008                   <br />009                   <br />010                   <br />011                   <br />012                   <br />013                   <br />014                   <br />015                   <br />016                   <br />017                   <br />018                   <br />019                   <br />020                   <br />021                   <br />022                   <br />023                   <br />024                   <br />025                   <br />026                   <br />027                   <br />028                   <br />029                   <br />030                   <br />031                   <br />032                   <br />033                   <br />034                   <br />035                   <br />036                   <br />037                   <br />038</font></font>               </div>
</td>
<td valign="top" nowrap="nowrap">
<div style="background:#fcfcfc;padding:5px;"><font face="Consolas"><span><font color="#00008b"><font>function</font></font></span><font><span><font color="#000000">&#160;</font></span><span><font color="#ff00ff">Get-AntiVirusProduct</font></span><font color="#000000"><span>&#160;</span><span>{</span></font>                   <br /><span><font color="#a9a9a9">[</font></span><span><font color="#008b8b">CmdletBinding</font></span><font color="#000000"><span>(</span><span>)</span></font><span><font color="#a9a9a9">]</font></span>                   <br /><span><font color="#00008b">param</font></span><font color="#000000"><span>&#160;</span><span>(</span></font>                   <br /><span><font color="#a9a9a9">[</font></span><span><font color="#008b8b">parameter</font></span><font color="#000000"><span>(</span><span>ValueFromPipeline</span></font><span><font color="#a9a9a9">=</font></span><span><font color="#ff0000">$true</font></span><span><font color="#a9a9a9">,</font></span><font color="#000000"><span>&#160;</span><span>ValueFromPipelineByPropertyName</span></font><span><font color="#a9a9a9">=</font></span><span><font color="#ff0000">$true</font></span><span><font color="#000000">)</font></span></font></font><font><font face="Consolas"><font color="#a9a9a9"><span>]</span>                     <br /><span>[</span></font><span><font color="#008b8b">Alias</font></span><span><font color="#000000">(</font></span><span><font color="#8b0000">'name'</font></span><span><font color="#000000">)</font></span><span><font color="#a9a9a9">]</font></span>                   <br /><span><font color="#ff0000">$computername</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#ff0000">$env:computername</font></span>                   <br /><span><font color="#000000">)</font></span>                   </p>
<p><span><font color="#ff0000">$AntiVirusProduct</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#0000ff">Get-WmiObject</font></span><span><font color="#000000">&#160;</font></span><span><font color="#00008b">-Namespace</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff00ff">root\SecurityCenter2</font></span><span><font color="#000000">&#160;</font></span><span><font color="#00008b">-Class</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff00ff">AntiVirusProduct</font></span><span><font color="#000000">&#160; </font></span><span><font color="#00008b">-ComputerName</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff0000">$computername</font></span>                   </p>
<p></font><font face="Consolas"><font color="#006400"><span>#Switch to determine the status of antivirus definitions and real-time protection.</span>                     <br /><span>#The values in this switch-statement are retrieved from the following website: http://community.kaseya.com/resources/m/knowexch/1020.aspx</span></font>                   <br /><span><font color="#00008b">switch</font></span><font color="#000000"><span>&#160;</span><span>(</span></font><span><font color="#ff0000">$AntiVirusProduct</font></span><span><font color="#a9a9a9">.</font></span><font color="#000000"><span>productState</span><span>)</span><span>&#160;</span><span>{</span></font>                   <br /><span></span><span><font color="#8b0000">&quot;262144&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Up to date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Disabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;262160&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Out of date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Disabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;266240&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Up to date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Enabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;266256&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Out of date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Enabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;393216&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Up to date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Disabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;393232&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Out of date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Disabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;393488&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Out of date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Disabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;397312&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Up to date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Enabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;397328&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Out of date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Enabled&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span></font><span><font color="#8b0000">&quot;397584&quot;</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Out of date&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Enabled&quot;</font></span><span><font color="#000000">}</font></span>                   <br /><span></span><span><font color="#ff00ff">default</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$defstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Unknown&quot;</font></span><font color="#000000"><span>&#160;</span><span>;</span></font><span><font color="#ff0000">$rtstatus</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;Unknown&quot;</font></span></font><font face="Consolas"><font color="#000000"><span>}</span>                     <br /><span>&#160;&#160;&#160; </span><span>}</span></font>                   </p>
<p><span><font color="#006400">#Create hash-table for each computer</font></span>                   <br /><span><font color="#ff0000">$ht</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><font color="#000000"><span>&#160;</span><span>@{</span><span>}</span></font>                   <br /><span><font color="#ff0000">$ht</font></span><span><font color="#a9a9a9">.</font></span><font color="#000000"><span>Computername</span><span>&#160;</span></font><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span></font><font face="Consolas"><font color="#ff0000"><span>$computername</span>                     <br /><span>$ht</span></font><span><font color="#a9a9a9">.</font></span><font color="#000000"><span>Name</span><span>&#160;</span></font><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff0000">$AntiVirusProduct</font></span><span><font color="#a9a9a9">.</font></span><span><font color="#000000">displayName</font></span>                   <br /><span><font color="#ff0000">$ht</font></span><span><font color="#a9a9a9">.</font></span><font color="#000000"><span>ProductExecutable</span><span>&#160;</span></font><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff0000">$AntiVirusProduct</font></span><span><font color="#a9a9a9">.</font></span><span><font color="#000000">pathToSignedProductExe</font></span>                   <br /><span><font color="#ff0000">$ht</font></span><span><font color="#a9a9a9">.</font></span><span><font color="#8b0000">&#8216;Definition Status&#8217;</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span></font></font><font face="Consolas"><font><font color="#ff0000"><span>$defstatus</span>                     <br /><span>$ht</span></font><span><font color="#a9a9a9">.</font></span><span><font color="#8b0000">&#8216;Real-time Protection Status&#8217;</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">=</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff0000">$rtstatus</font></span>                   </p>
<p><span><font color="#006400">#Create a new object for each computer</font></span>                   <br /><span><font color="#0000ff">New-Object</font></span><span><font color="#000000">&#160;</font></span><span><font color="#00008b">-TypeName</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff00ff">PSObject</font></span><span><font color="#000000">&#160;</font></span><span><font color="#00008b">-Property</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff0000">$ht</font></span>                   </p>
<p><font color="#000000"><span>}</span> </font></font></font></div>
</td>
</tr>
</tbody>
</table></div>
<p>&#160;</p>
<p>Sample output:</p>
<p><a href="http://janegilring.files.wordpress.com/2011/06/image1.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2011/06/image_thumb1.png?w=605&#038;h=104" width="605" height="104" /></a></p>
<p>The root\SecurityCenter2 namespace isn`t documented on MSDN, so it`s hard to find information on the properties and methods we find in the different classes in the namespace.</p>
<p>The productstate property of the AntiVirusProduct class is exposed as a integer value, which needs to be converted to a hexadecimal value. Then the different bytes in the value contains information in regards to definition updates and real-time protection. More information on this is available <a href="http://neophob.com/2010/03/wmi-query-windows-securitycenter2/">here</a>. I haven`t found a complete reference to all possible values, the best I could find is available <a href="http://community.kaseya.com/resources/m/knowexch/1020.aspx">here</a>.</p>
<p>The above function outputs Windows PowerShell objects, so it`s possible to filter the output i.e. based on the “Definition Status” property.&#160; The computername parameter also supports value from pipeline to make it easy to get the computers to query from i.e. Active Directory without using a foreach construct. A few examples:</p>
<div style="border-bottom:black 1px solid;border-left:black 1px solid;width:750px;overflow:auto;border-top:black 1px solid;border-right:black 1px solid;padding:5px;">
<table border="0" cellspacing="0" cellpadding="5">
<tbody>
<tr>
<td valign="top">
<div style="background:#cecece;padding:5px;"><font face="Consolas"><font color="#000000">001                  <br />002                   <br />003                   <br />004                   <br />005                   <br />006</font></font>               </div>
</td>
<td valign="top" nowrap="nowrap">
<div style="background:#fcfcfc;padding:5px;"><font face="Consolas"><span><font color="#006400"><font>#Get antivirus product information for all computers in the specified OU/container</font></font></span><font>                  <br /><span><font color="#0000ff">Import-Module</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff00ff">ActiveDirectory</font></span>                   <br /><span><font color="#0000ff">Get-ADComputer</font></span><span><font color="#000000">&#160;</font></span><span><font color="#00008b">-SearchBase</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&quot;CN=Computers,DC=contoso,DC=local&quot;</font></span><span><font color="#000000">&#160;</font></span><span><font color="#00008b">-Filter</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff00ff">*</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">|</font></span><span><font color="#000000">&#160;</font></span><span><font color="#0000ff">Select-Object</font></span><span><font color="#000000">&#160;</font></span><span><font color="#00008b">-ExpandProperty</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff00ff">name</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">|</font></span><span><font color="#000000">&#160;</font></span><span><font color="#0000ff">Get-AntiVirusProduct</font></span>                   </p>
<p><span><font color="#006400">#Filter using Where-Object to get all computers where the Definition State is not &quot;Up to date&quot;</font></span>                   <br /><span><font color="#0000ff">Get-AntiVirusProduct</font></span><span><font color="#000000">&#160;</font></span><span><font color="#00008b">-computer</font></span><font color="#000000"><span>&#160;</span><span>(</span></font><span><font color="#0000ff">Get-Content</font></span><span><font color="#000000">&#160;</font></span><span><font color="#ff00ff">computers.txt</font></span><font color="#000000"><span>)</span><span>&#160;</span></font><span><font color="#a9a9a9">|</font></span><span><font color="#000000">&#160;</font></span><span><font color="#0000ff">Where-Object</font></span><font color="#000000"><span>&#160;</span><span>{</span></font><span><font color="#ff0000">$_</font></span><span><font color="#a9a9a9">.</font></span><span><font color="#8b0000">&#8216;Definition Status&#8217;</font></span><span><font color="#000000">&#160;</font></span><span><font color="#a9a9a9">-notlike</font></span><span><font color="#000000">&#160;</font></span><span><font color="#8b0000">&#8216;Up to date&#8217;</font></span><font color="#000000"><span>}</span> </font></font></font></div>
</td>
</tr>
</tbody>
</table></div>
<p>&#160;</p>
<p>The root\SecurityCenter2 namespace is available on Windows Vista SP1 and above. Windows Security Center is not available on server operatingsystems, meaning that the root\SecurityCenter2 namespace also isn`t available. In Windows XP SP2 the namespace is called root\SecurityCenter, but the properties are not the same as in root\SecurityCenter2. It`s possible to get the function work on Windows XP, but you would need to customize it to match the properties available in the root\SecurityCenter namespace.</p>
<p>I would encourage you to add <a href="http://blogs.technet.com/b/heyscriptingguy/archive/tags/scripting+techniques/error+handling/">error handling</a> before using this function in a production environment, i.e. adding a test to check if the remote computer is available and allowing RPC-communication. If you would like to explore the other classes in the root\SecurityCenter2 namespace for working with firewall and antispyware products, you can start by exploring the available classes like this: Get-WmiObject -Namespace root\SecurityCenter2 -List</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janegilring.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janegilring.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/867/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=867&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2011/06/12/use-windows-powershell-to-get-antivirus-product-information/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/2011/06/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Export and import WLAN profiles</title>
		<link>http://blog.powershell.no/2011/01/23/export-and-import-wlan-profiles/</link>
		<comments>http://blog.powershell.no/2011/01/23/export-and-import-wlan-profiles/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 13:05:09 +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 Vista]]></category>
		<category><![CDATA[wlan export import]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2011/01/23/export-and-import-wlan-profiles/</guid>
		<description><![CDATA[Network Shell (Netsh) is a command-line utility that makes it possible to work with various server roles and operating system components in Windows, and have been available since Windows 2000. It`s commonly used to change network interface information such as IP-addresses, as well as for resetting the TCP/IP stack. For a complete overview of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=782&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Network Shell (Netsh) is a command-line utility that makes it possible to work with various server roles and operating system components in Windows, and have been available since Windows 2000. It`s commonly used to change network interface information such as IP-addresses, as well as for resetting the TCP/IP stack. For a complete overview of the capabilities of netsh, have a look at the <a href="http://technet.microsoft.com/nb-no/library/cc754516(en-us,WS.10).aspx" target="_blank">Netsh Command Reference</a> on Microsoft TechNet.</p>
<p>Starting with Windows Vista/Windows Server 2008, netsh provides commands for Wireless Local Area Networks (WLAN). This makes it possible to import and export WLAN profiles, which can be useful when re-installing your computer or maybe when deploying corporate computers where WPA Enterprise is not used.</p>
<p>In combination with Windows PowerShell it`s easy to import and export WLAN profiles using netsh. I`ve provided a script containing two PowerShell functions:</p>
<ul>
<li>Export-WLAN</li>
<li>Import-WLAN</li>
</ul>
<p>Click on the thumbnails to see help info for the functions:</p>
<p><a href="http://janegilring.files.wordpress.com/2011/01/image7.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2011/01/image_thumb7.png?w=244&#038;h=164" border="0" alt="image" width="244" height="164" /></a> <a href="http://janegilring.files.wordpress.com/2011/01/image8.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2011/01/image_thumb8.png?w=253&#038;h=163" border="0" alt="image" width="253" height="163" /></a></p>
<p>The script is available <a href="http://gallery.technet.microsoft.com/scriptcenter/652a0652-9f5e-4aed-9a4d-3b4e2cb56aa6">here</a>.</p>
<p>Note that Windows Vista/7 has a concept of all-user and per-user WLAN profiles:</p>
<p><a href="http://janegilring.files.wordpress.com/2011/01/image9.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2011/01/image_thumb9.png?w=244&#038;h=94" border="0" alt="image" width="244" height="94" /></a></p>
<p>All-user profiles is the default, and the functions are not customized to work with per-user functions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/782/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/782/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/782/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/782/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janegilring.wordpress.com/782/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/782/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/782/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janegilring.wordpress.com/782/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/782/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/782/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/782/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/782/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/782/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/782/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=782&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2011/01/23/export-and-import-wlan-profiles/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/2011/01/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

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

		<media:content url="http://janegilring.files.wordpress.com/2011/01/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Export BitLocker-information using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/10/24/export-bitlocker-information-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/10/24/export-bitlocker-information-using-windows-powershell/#comments</comments>
		<pubDate>Sun, 24 Oct 2010 13:37:19 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[BitLocker]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[BitLocker report]]></category>

		<guid isPermaLink="false">https://janegilring.wordpress.com/2010/10/24/export-bitlocker-information-using-windows-powershell/</guid>
		<description><![CDATA[&#160; Active Directory can be used to store both Windows BitLocker Drive Encryption recovery information and Trusted Platform Module (TPM) owner information. On the Microsoft Windows Support site, the following information are provided: Storage of BitLocker Recovery Information in Active Directory BitLocker recovery information is stored in a child object of a computer object in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=687&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>Active Directory can be used to store both Windows BitLocker Drive Encryption recovery information and Trusted Platform Module (TPM) owner information.</p>
<p>On the <a href="http://windows.microsoft.com/en-US/windows-vista/How-do-I-use-Active-Directory-for-backup-of-BitLocker-Drive-Encryption-recovery-information" target="_blank">Microsoft Windows Support site</a>, the following information are provided:</p>
<blockquote>
<h4><span style="font-size:x-small;">Storage of BitLocker Recovery Information in Active Directory</span></h4>
<p>BitLocker recovery information is stored in a child object of a computer object in Active Directory. That is, the computer object is the container for the BitLocker recovery object.</p>
<p>More than one BitLocker recovery object can exist for each computer object, because there can be more than one recovery password associated with a BitLocker-enabled volume.</p>
<p>Each BitLocker recovery object on a BitLocker-enabled volume has a unique name and contains a globally unique identifier (GUID) for the recovery password.</p>
<p>The name of the BitLocker recovery object is limited to 64 characters because of Active Directory constraints. This name incorporates the recovery password GUID as well as date and time information. The form is:</p>
<p>&lt;Object Creation Date and Time&gt;&lt;Recovery Password GUID&gt;</p>
<p>For example:</p>
<p>2005-09-30T17:08:23-08:00{063EA4E1-220C-4293-BA01-4754620A96E7}</p>
<p>The Active Directory common name (cn) for the BitLocker recovery object is ms-FVE-RecoveryInformation and includes attributes such as ms-FVE-RecoveryPassword and ms-FVE-RecoveryGuid.</p>
<h4><span style="font-size:x-small;">Storage of TPM Recovery Information in Active Directory</span></h4>
<p>There is only one TPM owner password per computer; therefore the hash of the TPM owner password is stored as an attribute of the computer object in Active Directory. It is stored in Unicode. The attribute has the common name (cn) of ms-TPM-OwnerInformation.</p>
<h4><span style="font-size:x-small;">Active Directory Requirements</span></h4>
<p>In order to store BitLocker and TPM information in Active Directory, all domain controllers must run Windows Server 2003 with Service Pack 1 or later. Schema extensions will also need to be installed on servers running Windows Server 2003.</p></blockquote>
<p>&nbsp;</p>
<p>To see if a computer has stored any BitLocker Recovery information in Active Directory, you must install the <a href="http://support.microsoft.com/kb/928202" target="_blank">BitLocker Recovery Password Viewer</a> and check the BitLocker Recovery tab on the computer object to see if a Recovery Password are present:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/10/image.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/10/image_thumb.png?w=215&#038;h=244" border="0" alt="image" width="215" height="244" /></a></p>
<p>Doing this for every computer manually isn`t an option in a domain environment. To ease this task I`ve written a PowerShell-script, available <a href="http://gallery.technet.microsoft.com/ScriptCenter/en-us/4231a8a1-cc60-4e07-a098-2844353186ad">here</a>, that will generate a CSV-file containing all Windows Vista and Windows 7 computer objects in the domain. The CSV-file will contain the following information:</p>
<ul>
<li>Computername</li>
<li>OperatingSystem</li>
<li>HasBitlockerRecoveryKey</li>
<li>HasTPM-OwnerInformation</li>
</ul>
<p>I haven`t found a way to retrieve <a href="http://msdn.microsoft.com/en-us/library/ms682505(VS.85).aspx" target="_blank">ms-FVE-RecoveryInformation</a> objects or <a href="http://msdn.microsoft.com/en-us/library/ms678161(VS.85).aspx" target="_blank">msTPM-OwnerInformation</a> information on computer objects using Microsoft`s PowerShell-module for Active Directory. Because of that I`ve leveraged <a href="http://www.quest.com/powershell/activeroles-server.aspx" target="_blank">Quest`s free PowerShell Commands for Active Directory</a>.</p>
<p>To retrieve correct information, you must run the script with a user that has been granted the following permission: Read-permission on msFVE-RecoveryInformation objects and Read-permissions on msTPM-OwnerInformation on computer-objects (e.g. Domain Admins).</p>
<p>When the CSV-file is generated, you can use the “Text to columns”-feature in Microsoft Office Excel and save the document as an Excel spreadsheet. Then you can apply filters to sort on e.g. HasBitlockerRecoveryKey or HasTPM-OwnerInformation.</p>
<p>If you`re using the BitLocker feature on other operatingsystems than Windows Vista or Windows 7, i.e. Windows Server 2008 or Windows Server 2008 R2, you may customize the filtering in the computers-variable.</p>
<p>&nbsp;</p>
<p><strong><span style="font-size:x-small;">BitLocker resources on Microsoft TechNet</span></strong></p>
<p><a href="http://technet.microsoft.com/en-us/library/cc731549(WS.10).aspx" target="_blank">BitLocker Drive Encryption</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/cc732774.aspx" target="_blank">BitLocker Drive Encryption Overview</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/cc766015(WS.10).aspx" target="_blank">Backing Up BitLocker and TPM Recovery Information to Active Directory</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janegilring.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janegilring.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/687/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/687/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/687/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=687&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/10/24/export-bitlocker-information-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>13</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/10/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Backing up Group Policy Objects using Windows PowerShell</title>
		<link>http://blog.powershell.no/2010/06/15/backing-up-group-policy-objects-using-windows-powershell/</link>
		<comments>http://blog.powershell.no/2010/06/15/backing-up-group-policy-objects-using-windows-powershell/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 23:57:22 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Group Policy]]></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/15/backing-up-group-policy-objects-using-windows-powershell/</guid>
		<description><![CDATA[A best practice in domain environments are backing up the Group Policy Objects regularly. Even though a GPO may be restored by restoring a system state backup from a domain controller to an alternate location, and then copy the contents from the deleted GPO to a new GPO to restore the settings, this may be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=506&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A best practice in domain environments are backing up the Group Policy Objects regularly. Even though a GPO may be restored by restoring a system state backup from a domain controller to an alternate location, and then copy the contents from the deleted GPO to a new GPO to restore the settings, this may be a hazzle since it`s not pretty straightforward. It also requires you to restart the domain controller affected in Directory Services Restore Mode.<br />
PowerShell MVP Don Jones has written a good article on this topic, available <a href="http://redmondmag.com/articles/2010/05/01/back-up-active-directory-and-gpos.aspx" target="_blank">here</a>.</p>
<p>For those of you who may not want to do GPO restore the hard way, or buy a commercial third party product, I would encourage you to schedule regular GPO backups using the Windows PowerShell Group Policy-module available in Windows Server 2008 R2, as well as RSAT in Windows 7.<br />
To accomplish this, I`ve written a small script which backs up all modified GPO`s in the specified timespan. I would generally recommend to have the script run once a day, thereby setting the timespan-variable to the last 24 hours. The script are called Backup-ModifiedGPOs.ps1, and available from <a href="http://poshcode.org/2386" target="_blank">here</a>.</p>
<p>All Group Policy Objects modified in the specified timespan are backup up to the specified backup path.<br />
Also, an HTML-report are created for each GPO-backup, with the unique backup GUID as part of the filename. This way you can easily see what settings each backup contains.</p>
<p>When restoring a GPO, you must first note the GUID of the backup you want to restore. Then you can restore the GPO by using the Restore-GPO cmdlet in the Group Policy-module. Sample usage:</p>
<p><a href="http://janegilring.files.wordpress.com/2010/06/image3.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/06/image_thumb3.png?w=644&#038;h=163" border="0" alt="image" width="644" height="163" /></a></p>
<p>Administrators who feels more comfortable working with the GUI, may use the Group Policy Management Console to do the restore.</p>
<p>The following procedure from the <a href="http://technet.microsoft.com/en-us/library/cc754948(WS.10).aspx" target="_blank">Group Policy Planning and Deployment Guide</a> on Microsoft TechNet describes how to accomplish the restore operation from the GUI:</p>
<p><strong><span style="font-size:xx-small;"><span style="font-family:Calibri;"><span style="font-size:x-small;">To view the list of GPO backups</span> </span></span></strong></p>
<ol>
<li><span style="font-family:Calibri;font-size:xx-small;">In the GPMC console tree, expand the forest or domain that contains the GPOs that you want to back up.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">Right-click <strong>Group Policy Objects</strong>, and the click <strong>Manage Backups</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">In the <strong>Manage Backups</strong> dialog box, enter the path to the location where you stored the GPO backups that you want to view. Alternatively, you can click <strong>Browse</strong>, locate the folder that contains the GPO backups, and then click <strong>OK</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">To specify that only the most recent version of the GPOs be displayed in the <strong>Backed up GPOs</strong> list, select the <strong>Show only the latest version of each GPO</strong> check box. Click <strong>Close</strong>.</span></li>
</ol>
<p><strong><span style="font-family:Calibri;font-size:x-small;">Using the GPMC to restore GPOs</span></strong></p>
<p><span style="font-family:Calibri;font-size:xx-small;">You can also restore GPOs. This operation restores a backed-up GPO to the same domain from which it was backed up. You cannot restore a GPO from a backup into a domain that is different from the GPO’s original domain.</span></p>
<p><strong><span style="font-size:xx-small;"><span style="font-family:Calibri;"><span style="font-size:x-small;">To restore a previous version of an existing GPO</span> </span></span></strong></p>
<ol>
<li><span style="font-family:Calibri;font-size:xx-small;">In the GPMC console tree, expand <strong>Group Policy Objects</strong> in the forest or domain that contains the GPOs that you want to restore.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">Right-click the GPO that you want to restore to a previous version, and then click <strong>Restore from Backup</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">When the <strong>Restore Group Policy Object Wizard</strong> opens, follow the instructions in the wizard, and then click <strong>Finish</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">After the restore operation completes, a summary will state whether the restore succeeded. Click <strong>OK</strong>.</span></li>
</ol>
<p><strong><span style="font-size:xx-small;"><span style="font-family:Calibri;"><span style="font-size:x-small;">To restore a deleted GPO</span> </span></span></strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong></p>
<ol>
<li><span style="font-family:Calibri;font-size:xx-small;">In the GPMC console tree, expand the forest or domain that contains the GPO that you want to restore.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">Right-click <strong>Group Policy Objects</strong>, and then click <strong>Manage Backups</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">In the <strong>Manage Backups </strong>dialog box, click <strong>Browse</strong>, and then locate the file that contains your backed-up GPOs.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">In the <strong>Backed up GPOs </strong>list, click the GPO that you want to restore, and then click <strong>Restore</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">When you are prompted to confirm the restore operation, click <strong>OK</strong>.</span></li>
<li><span style="font-family:Calibri;font-size:xx-small;">After the restore operation completes, a summary will state whether the restore succeeded. Click <strong>OK</strong>. Click <strong>Close</strong>.</span></li>
</ol>
<p><strong>Important:</strong> Since Group Policy links are stored on the Organizational Unit objects in Active Directory, this information are not backup up and also not restore. However, the HTML backup-reports contains this information, so you may manually re-link the GPO to the correct OU(s).</p>
<p>Also note that WMI filters and IPSec policies are not backed up by the backup feature in the Group Policy Management Console. For more information on how to manage these items, see the before mentioned Group Policy Planning and Deployment Guide.</p>
<p></strong></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/506/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=506&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/06/15/backing-up-group-policy-objects-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>11</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_thumb3.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[Remote Desktop Services]]></category>
		<category><![CDATA[Remote Management]]></category>
		<category><![CDATA[RSAT]]></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 the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=501&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<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://gallery.technet.microsoft.com/scriptcenter/en-us/49e6ef43-4ffe-4498-b17f-d7f782e11830">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/gofacebook/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/501/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/501/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=5892504&amp;post=501&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2010/06/02/dynamic-remote-desktop-connection-manager-connection-list/feed/</wfw:commentRss>
		<slash:comments>18</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>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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=436&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="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). To deploy this update to downlevel operating systems I would recommend to use WSUS, which are described in detail in <a href="http://trycatch.be/blogs/roggenk/archive/2010/07/26/deploying-powershell-2-0-in-your-environment.aspx">this</a> blog post by Kurt Roggen.</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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb.png?w=244&#038;h=86" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb1.png?w=467&#038;h=427" border="0" alt="image" 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>In addition, the WinRM service are by default not started on Windows client operating systems. To configure the WinRM service to start automatically, navigate to Computer Configuration\Policies\Windows Settings\Security Settings\System Services\Windows Remote Management, doubleclick on Windows Remote Management and configure the service startup mode to &#8220;Automatic&#8221;:</p>
<p>﻿<a href="http://janegilring.files.wordpress.com/2010/03/winrm_startmode.png"><img class="alignnone size-medium wp-image-646" title="WinRM_startmode" src="http://janegilring.files.wordpress.com/2010/03/winrm_startmode.png?w=300&#038;h=278" alt="" width="300" height="278" /></a></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="display:inline;border:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb2.png?w=390&#038;h=122" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb3.png?w=543&#038;h=135" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb4.png?w=543&#038;h=149" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb5.png?w=544&#038;h=66" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb6.png?w=242&#038;h=244" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb7.png?w=521&#038;h=417" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb8.png?w=519&#038;h=415" border="0" alt="image" width="519" height="415" /></a></p>
<p><a href="http://janegilring.files.wordpress.com/2010/03/image9.png"><img style="display:inline;border-width:0;" title="image" src="http://janegilring.files.wordpress.com/2010/03/image_thumb9.png?w=522&#038;h=419" border="0" alt="image" width="522" height="419" /></a></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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb10.png?w=320&#038;h=420" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb11.png?w=644&#038;h=31" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb12.png?w=591&#038;h=347" border="0" alt="image" 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" src="http://janegilring.files.wordpress.com/2010/03/image_thumb13.png?w=644&#038;h=93" border="0" alt="image" 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><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/gofacebook/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/436/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/436/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=5892504&amp;post=436&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="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>17</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/winrm_startmode.png?w=300" medium="image">
			<media:title type="html">WinRM_startmode</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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=405&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="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>
<p><strong>Update, 06.08.2010</strong>: A new version of the module are now published at the original link on the TechNet Script Center Gallery. In the new version, there are full MUI support, after an update by <a href="http://cosmoskey.blogspot.com/">Johan Akerstrom</a>.</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/gofacebook/janegilring.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=5892504&amp;post=405&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="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>17</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>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&amp;blog=5892504&amp;post=345&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="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/gofacebook/janegilring.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/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&amp;blog=5892504&amp;post=345&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="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>Troubleshooting Group Policy made easier</title>
		<link>http://blog.powershell.no/2009/03/25/troubleshooting-group-policy-made-easier/</link>
		<comments>http://blog.powershell.no/2009/03/25/troubleshooting-group-policy-made-easier/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 12:03:00 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[event logs]]></category>
		<category><![CDATA[Group Policy troubleshooting]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/03/25/troubleshooting-group-policy-made-easier/</guid>
		<description><![CDATA[In Windows Vista/Server 2008 and newer operation systems from Microsoft the userenv.log file which was logging Group Policy processing information in Windows 2000/XP are replaced by a new event log named Group Policy. You can find it in the Event Viewer when you browse to Applications and Services Logs/Microsoft/Windows/GroupPolicy. The event categories found in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=121&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Windows Vista/Server 2008 and newer operation systems from Microsoft the userenv.log file which was logging Group Policy processing information in Windows 2000/XP are replaced by a new event log named Group Policy. You can find it in the Event Viewer when you browse to <strong>Applications and Services Logs/Microsoft/Windows/GroupPolicy.</strong></p>
<p><a href="http://janegilring.files.wordpress.com/2009/03/image13.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/03/image-thumb13.png?w=132&#038;h=244" width="132" height="244" /></a> </p>
<p>The event categories found in the Group Policy event log:</p>
<p><a href="http://blogs.technet.com/blogfiles/grouppolicy/WindowsLiveWriter/GroupPolicytroubleshootinghelpfulEventlo_BA9D/image_8.png"><img title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/grouppolicy/WindowsLiveWriter/GroupPolicytroubleshootinghelpfulEventlo_BA9D/image_thumb_3.png" width="513" height="324" /></a></p>
<p>This really makes Group Policy troubleshooting much easier!</p>
<p>In addition to checking out the Group Policy event log on the client, I would also recommend the use of the Group Policy Modeling (simulating what is supposed to happen) and Group Policy Results (connecting to the client to see what did happen) wizards when troubleshooting Group Policy:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/03/image14.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://janegilring.files.wordpress.com/2009/03/image-thumb14.png?w=133&#038;h=34" width="133" height="34" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/janegilring.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/janegilring.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/janegilring.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/janegilring.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&amp;blog=5892504&amp;post=121&amp;subd=janegilring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/03/25/troubleshooting-group-policy-made-easier/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/03/image-thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://blogs.technet.com/blogfiles/grouppolicy/WindowsLiveWriter/GroupPolicytroubleshootinghelpfulEventlo_BA9D/image_thumb_3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

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