SECURITY

Windows Server 2008 and Windows Vista : GPO Security (part 1)

11/15/2013 6:37:35 PM

1. GrantPermissionOnAllGPOs.wsf

This script grants the specified security permission level to a user or group for all GPOs in the domain, even GPOs not linked to an Active Directory node. The Replace switch is very useful—it can remove the existing permissions and replace them with new permissions. If you specify a permission for a security group that already exists on the permission list for the GPO, the higher of the two permissions will be placed on the security group (unless you used the Replace switch).

Syntax

Usage: GrantPermissionOnAllGPOs.wsf GroupName /Permission:value [/Replace] [/Q]
[/Domain:value]
GroupName: Security principal to grant permissions to.
Permission: Permission level to set. Can be "Read," "Apply," "Edit," "FullEdit," or "None."
Replace: Specifies that any existing permissions should be replaced.
Q: Quiet mode - no warning will be displayed before executing the script.
Domain: DNS name of domain.

2. SetGPOCreationPermissions.wsf

This script grants or removes the ability to create GPOs in a domain for a given security group or user.

Syntax

Usage: SetGPOCreationPermissions.wsf Group [/Remove] [/Domain:value]
Group: Security group to grant GPO creation rights to.
Remove: Removes the permission instead of granting it.
Domain: DNS name of domain.

Example & Output

This script grants the GPO Admins security group the ability to create GPOs in the domain.

cscript SetGPOCreationPermissions.wsf "GPO Admins"
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Added 'GPO Admins' as having GPO creation rights in Fabrikam.com.



Example & Output

This script configures the GPO Admins security group with Edit permission on all GPOs in the domain.

cscript GrantPermissionOnAllGPOs.wsf "GPO Admins" /Permission:Edit
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Warning! By executing this script, all GPOs in the target domain will be updated with the
desired security setting.

Both the Active Directory and Sysvol portions of the GPO will be updated. This will result in
the Sysvol contents of every GPO being copied to all replica domain controllers, and may cause
excessive replication traffic in your domain.

If you have slow network links or restricted bandwidth between your domain controllers, you
should check the amount of data on the Sysvol that would be replicated before performing
this task.

Do you want to proceed? [Y/N] y
Updated GPO 'Default Domain Policy' to 'Edit' for GPO Admins
Updated GPO 'Default Domain Controllers Policy' to 'Edit' for GPO Admins

3. SetGPOPermissions.wsf

This script sets permissions on the defined GPO for the defined group. This script will error out if you do not define the arguments for it. All of the other scripts will list the script’s syntax or generate the output.

Syntax

Usage: SetGPOPermissions.wsf <GPOName> <GroupName> /Permission:<PermissionLevel> [/Replace]
[/Domain:<DNSDomainName>]
GPOName: The name of the GPO to process.
GroupName: The security principal to grant permissions to.
Permission: Permission level to set. Can be "Read," "Apply," "Edit," "FullEdit," or "None."
"Replace: Specifies that any existing permissions should be replaced.
Domain: DNS name of domain.


Example & Output

This script configures the Server Operators security group with Edit permission only on the GPO named Hardened Server GPO.

cscript SetGPOPermissions.wsf "Hardened Server GPO" "Server Operators" /Permission:Edit
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Modified GPO Hardened Server GPO to give Server Operators Edit rights.
Other  
  •  Windows Server 2008 and Windows Vista : Advanced Group Policy Management Delegation - Approving, Reviewing
  •  Windows Server 2008 and Windows Vista : Advanced Group Policy Management Delegation - Full Control, Editing
  •  Windows Server 2008 and Windows Vista : Group Policy Management Console Delegation - Modeling GPOs, RSoP of GPOs
  •  Windows Server 2008 and Windows Vista : Group Policy Management Console Delegation - Managing GPOs, Editing GPOs
  •  Windows Server 2008 and Windows Vista : Group Policy Management Console Delegation - Linking GPOs
  •  Windows Server 2008 and Windows Vista : Group Policy Management Console Delegation - Creating GPOs
  •  Windows Server 2008 and Windows Vista : Security Delegation for Administration of GPOs - Default Security Environment
  •  Programming WCF Services : Security - Intranet Application Scenario (part 7) - Identity Management, Callbacks
  •  Programming WCF Services : Security - Intranet Application Scenario (part 6) - Authorization
  •  Programming WCF Services : Security - Intranet Application Scenario (part 5) - Impersonation - Impersonating all operations, Restricting impersonation
  •  
    Most View
    iphone SDK 3 : Working with Databases - Basic Database Operations
    Deconstructed - Five Classic Bass Music Tunes And Discover Some Key Ideas (Part 2)
    SQL Server 2012 : Storage Systems (part 2) - Storage Technology - SQL Server and the Windows I/O Subsystem
    Google vs Apple vs Microsoft (Part 2)
    Windows Server 2008 and Windows Vista : Backing Up and Restoring GPOs (part 1)
    OEM Interview: BMW - I-volution (Part 4)
    Samsung Premium Series 9 Review (Part 1)
    Oracle Database 11g : Database Fundamentals - Define a Database, Learn the Oracle Database 11g Architecture
    Sharepoint 2010 : Metadata Architecture (part 1)
    Buying Guide: For the Compact System Builder...(Part 1) - The Z77 boards, The A75 boards
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
    Top 10
    Review : Acer Aspire R13
    Review : Microsoft Lumia 535
    Review : Olympus OM-D E-M5 Mark II
    TomTom Runner + MultiSport Cardio
    Timex Ironman Run Trainer 2.0
    Suunto Ambit3 Peak Sapphire HR
    Polar M400
    Garmin Forerunner 920XT
    Sharepoint 2013 : Content Model and Managed Metadata - Publishing, Un-publishing, and Republishing
    Sharepoint 2013 : Content Model and Managed Metadata - Content Type Hubs