programming4us
programming4us
DESKTOP

Windows Server 2008 and Windows Vista : GPMC Scripts - GPO Reporting (part 1)

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

1. Deleting GPOs

1.1 DeleteGPO.wsf

This script deletes the GPO with the name you specify in the command. It also deletes all links to the GPO in the specified domain and related sites. If you prefer that the links remain intact, specify the KeepLinks switch in the command.

Syntax
Usage: deletegpo.wsf GPOName [/KeepLinks] [/Domain:value]
GPOName: Name or GUID of the GPO to delete.
KeepLinks: Deletes the GPO but does not delete the links.
Domain: DNS name of domain.

Example & Output

This script deletes the GPO named New Group Policy Object.

cscript deletegpo.wsf "New Group Policy Object"
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Deleted GPO {305C5727-64AD-4FF1-AD7E-560655C7C39F}

Deleting links for GPO 'New Group Policy Object' in domain 'Fabrikam.com'
No links found.

2. GPO Reporting

Whether you are auditing the environment or just documenting the GPO infrastructure, you will want to report on a variety of aspects of the GPO environment. These scripts allow you to report on individual GPOs, their settings, and the GPO environment.

2.1 DumpGPOInfo.wsf

This script reports, or dumps, information regarding the specified GPO or GUID and then prints information about that GPO on the screen.

Syntax
Usage: dumpgpoinfo.wsf GPOName [/Domain:value]
GPOName: GPO name or ID.
Domain: DNS name of domain.

Example & Output

This script gathers information about the Default Domain Policy and lists it on the screen.

cscript dumpgpoinfo.wsf "Default Domain Policy"
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

==============================================
Name: Default Domain Policy
ID: {31B2F340-016D-11D2-945F-00C04FB984F9}

-- Details --
Created: 10/31/2007 9:26:20 PM
Changed: 10/31/2007 9:26:20 PM
Owner: FABRIKAM\Domain Admins

User Enabled: True
Mach Enabled: True

-- Version Numbers --
User DS: 0
User Sysvol: 0
Mach DS: 1
Mach Sysvol: 1

-- Who this GPO applies to --
Authenticated Users

-- Who can edit this GPO --

-- Who can edit settings, modify security and delete this GPO --
SYSTEM
-- Who only has Read access --
ENTERPRISE DOMAIN CONTROLLERS

-- Who has custom permissions --
Domain Admins
Enterprise Admins
-- Where this GPO is linked (Sites,Domain,OU) --
Fabrikam.com (Domain)


2.2 DumpSOMInfo.wsf

This script takes a specified scope of management (SOM) and outputs policy information about it. It displays the linked GPOs and the policy permissions regarding the node in Active Directory about which you are inquiring. The SOMName can be the domain name, an organizational unit, or a site. If you also want to show the inherited GPO links, you can use the ShowInheritedLinks switch.

Syntax
Usage: dumpsominfo.wsf SOMName [/ShowInheritedLinks] [/Domain:value]
SOMName: Name of the SOM to query.
ShowInheritedLinks: Shows inherited GPO links for the SOM.
Domain: DNS name of domain.

Example & Output

This script focuses on the organizational unit named Servers OU, reporting on all of the GPOs that are associated with it, including the links that are inherited from other nodes above it in the Active Directory structure.

cscript dumpsominfo.wsf "Servers OU" /ShowInheritedLinks
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

==============================================
Name: Servers OU
Type: Organizational Unit
Path: OU=Servers,DC=Fabrikam,DC=com

-- Inherited GPO Links --
1 Server GPO
2 Default Domain Policy

-- Who can link GPOs to this OU --
Domain Admins
SYSTEM
Enterprise Admins
Administrators

-- Who can generate RSoP logging data for this OU --
Domain Admins
SYSTEM
Enterprise Admins
Administrators

-- Who can generate RSoP planning data for this OU --
Domain Admins
SYSTEM
Enterprise Admins
Administrators
Other  
  •  Windows Server 2008 and Windows Vista : GPMC Scripts - Copying and Importing GPOs
  •  Windows Server 2008 and Windows Vista : Copying and Importing GPOs
  •  Windows Server 2008 and Windows Vista : Backing Up and Restoring GPOs (part 2)
  •  Windows Server 2008 and Windows Vista : Backing Up and Restoring GPOs (part 1)
  •  Windows Small Business Server 2011 : Creating Custom Alerts - Creating an Alert for a Stopped Service, Custom Alert for Backup Failure
  •  Windows Small Business Server 2011 : Configuring Alerts - Alerts for Services, Performance Counter Alert, Event Log Error Alerts
  •  Windows Small Business Server 2011 : Network Reports (part 2) - Customizing the Detailed Network Report
  •  Windows Small Business Server 2011 : Network Reports (part 1) - Customizing the Summary Report
  •  Windows 8 : Diagnosis and Recovery - Windows Recovery Environment
  •  Windows 8 : Diagnosis and Recovery - Refresh and Reset
  •  
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us
    programming4us
     
     
    programming4us