< Back

Import-GptPermission

Tue Jan 14, 2020 12:12 am

NAME Import-GptPermission



SYNOPSIS

Import permissions to GPOs.





SYNTAX

Import-GptPermission [-Path] <String> [[-Name] <String[]>] [[-GpoObject] <Object>] [-ExcludeInherited] [[-Domain]

<String>] [<CommonParameters>]





DESCRIPTION

Import permissions to GPOs.

This tries to restore the same permissions that existed on the GPOs before the export.

Notes:

- It is highly recommended to perform this before executing Import-GptLink.

- Executing this requires the identities to have been imported (Import-GptIdentity)





PARAMETERS

-Path <String>

The path where the permission export file is stored.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String[]>

Only restore permissions for GPOs with a matching name.



Required? false

Position? 2

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-GpoObject <Object>

Select the GPOs to restore permissions to by specifying their full object.



Required? false

Position? 3

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-ExcludeInherited [<SwitchParameter>]

Do not import permissions that were inherited permissions on the source GPO



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Domain <String>

The domain to restore the GPO permissions to.



Required? false

Position? 4

Default value $env:USERDNSDOMAIN

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Import-GptPermission -Path '.'



Import GPO permissions from the current path.











RELATED LINKS