Advertisement
opexxx

25 Cmdlets to Manage Group Policy using Windows PowerShell

May 3rd, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. You can use Windows PowerShell to manage Group Policy. Here are 25 cmdlets you can use to retrieve information and perform common tasks.
  2.  
  3. Backup-GPO Backs up one GPO or all the GPOs in a domain.
  4.  
  5. Copy-GPO Copies a GPO.
  6.  
  7. Get-GPInheritance Retrieves Group Policy inheritance information for a specified domain or OU.
  8.  
  9. Get-GPO Gets one GPO or all the GPOs in a domain.
  10.  
  11. Get-GPOReport Generates a report in either XML or HTML format for a specified GPO or for all GPOs in a domain.
  12.  
  13. Get-GPPermissions Gets the permission level for one or more security principals on a specified GPO.
  14.  
  15. Get-GPPrefRegistryValue Retrieves one or more registry preference items under either Computer Configuration or User Configuration in a GPO.
  16.  
  17. Get-GPRegistryValue Retrieves one or more registry-based policy settings under either Computer Configuration or User Configuration in a GPO.
  18.  
  19. Get-GPResultantSetOfPolicy Outputs the Resultant Set of Policy (RSoP) information to a file, for a user, a computer, or both.
  20.  
  21. Get-GPStarterGPO Gets one Starter GPO or all Starter GPOs in a domain.
  22.  
  23. Import-GPO Imports the Group Policy settings from a backed-up GPO into a specified GPO.
  24.  
  25. New-GPLink Links a GPO to a site, domain, or OU.
  26.  
  27. New-GPO Creates a new GPO.
  28.  
  29. New-GPStarterGPO Creates a new Starter GPO.
  30.  
  31. Remove-GPLink Removes a GPO link from a site, domain, or OU.
  32.  
  33. Remove-GPO Deletes a GPO.
  34.  
  35. Remove-GPPrefRegistryValue Removes one or more registry preference items from either Computer Configuration or User Configuration in a GPO.
  36.  
  37. Remove-GPRegistryValue Removes one or more registry-based policy settings from either Computer Configuration or User Configuration in a GPO.
  38.  
  39. Rename-GPO Assigns a new display name to a GPO.
  40.  
  41. Restore-GPO Restores one GPO or all GPOs in a domain from one or more GPO backup files.
  42.  
  43. Set-GPInheritance Blocks or unblocks inheritance for a specified domain or OU.
  44.  
  45. Set-GPLink Sets the properties of the specified GPO link.
  46.  
  47. Set-GPPermissions Grants a level of permissions to a security principal for one GPO or for all the GPOs in a domain.
  48.  
  49. Set-GPPrefRegistryValue Configures a registry preference item under either Computer Configuration or User Configuration in a GPO.
  50.  
  51. Set-GPRegistryValue Configures one or more registry-based policy settings under either Computer Configuration or User Configuration in a GPO.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement