GPO Version Powershell Cmdlets

Powershell cmdlets to get GPO version information and also to "Touch" a GPO's version to force clients to think the GPO has changed.

Print

Download

Rating:
  • Currently 2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Comments:2
Owner:Darren Mar-Elia
Created:6/4/2009
Modified:10/20/2009
Visited:3887

*** UPDATED 10/19/09 to fix issue with whatif parameter incorrectly reporting new GPO version

The download includes a DLL and Help file. This is a 32-bit Powershell snap-in for version 1.0 of Powershell. Copy the two files to a folder, startup Powershell, change directories to where you copied the DLL, and then run installutil to install the snap-in as follows:

C:\windows\Microsoft.NET\Framework\v2.0.50727\installutil sdmgpoversion.dll

One registered, type the following to add the snap-in to your current Powershell console:

add-pssnapin SDMSoftware.Powershell.GPOVersion

The snap-in comes with 2 cmdlets:

Get-SDMGPOVersion: Retrieves AD & SYSVOL version information for one or more GPOs on a particular DC (similar to GPOTool.exe except for Powershell)

Invoke-SDMTouchGPO: Lets you increment a GPO's version number to force clients to think something there has been a GPO change.

You can type get-help and then the cmdlet name to get syntax for each cmdlet