CmdID / PowerShell / Cmdlets / Set
Set-GPPermission
Grants a level of permissions to a security principal for one GPO or all the GPOs in a domain. Windows Server PowerShell reference
From the Windows Server PowerShell reference 11 parameters Its page in the reference
Parameters
-AllSpecifies that the permission level is set for the specified security principal for all GPOs in the domain.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-DomainName, -DomainSpecifies the domain for this cmdlet.-Guid, -IDSpecifies the GPO for which to set the permission level by its globally unique identifier (GUID).-Name, -DisplayNameSpecifies the GPO for which to set the permission level by its display name.-PermissionLevelSpecifies the permission level to set for the security principal.-ReplaceSpecifies that the existing permission level for the group or user is removed before the new permission level is set.-Server, -DCSpecifies the name of the domain controller that this cmdlet contacts to complete the operation.-TargetNameThe name of the security principal for which to set the permission level.-TargetTypeThe type of security principal for which to set the permission level.-WhatIf, -wiShows what would happen if the cmdlet runs.