Files
GPOZaurr/Docs/Restore-GPOZaurr.md
T
Przemysław Kłys f7bdaca724 docs: ✏️ Update documentation for GPOZaurr module
- Revised `Set-GPOZaurrOwner.md` to enhance clarity and detail for parameters and examples.
- Updated `Set-GPOZaurrStatus.md` with a new online version link and improved structure.
- Refined `Skip-GroupPolicy.md` to clarify usage within script blocks and added examples.
- Adjusted `GPOZaurr.psd1` for version updates and improved module dependencies.
- Enhanced `GPOZaurr.psm1` for better error handling during function imports.
- Modified `Invoke-GPOZaurrSupport.ps1` examples to use `Join-Path` for path construction.
2026-05-19 18:47:50 +02:00

2.8 KiB

external help file, Module Name, online version, schema
external help file Module Name online version schema
GPOZaurr-help.xml GPOZaurr https://github.com/EvotecIT/GPOZaurr 2.0.0

Restore-GPOZaurr

SYNOPSIS

Restores Group Policy Objects (GPOs) from a specified backup folder.

SYNTAX

__AllParameterSets

Restore-GPOZaurr [-BackupFolder] <string> [[-DisplayName] <string>] [[-NewDisplayName] <string>] [[-Domain] <string>] [-SkipBackupSummary] [<CommonParameters>]

DESCRIPTION

Restores Group Policy Objects (GPOs) from a specified backup folder. This function allows restoring GPOs with the option to provide a new display name for the GPO.

EXAMPLES

EXAMPLE 1

PS > Restore-GPOZaurr -BackupFolder 'C:\GPOBackups' -DisplayName 'TestGPO'

EXAMPLE 2

PS > Restore-GPOZaurr -BackupFolder 'C:\GPOBackups' -DisplayName 'TestGPO' -NewDisplayName 'NewTestGPO' -Domain 'example.com'

PARAMETERS

-BackupFolder

The path to the folder containing the GPO backups.

Type: String
Parameter Sets: __AllParameterSets
Aliases: 
Possible values: 

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-DisplayName

The display name of the GPO to be restored.

Type: String
Parameter Sets: __AllParameterSets
Aliases: Name
Possible values: 

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Domain

(Optional) The domain name where the GPO should be restored.

Type: String
Parameter Sets: __AllParameterSets
Aliases: 
Possible values: 

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-NewDisplayName

(Optional) The new display name for the restored GPO.

Type: String
Parameter Sets: __AllParameterSets
Aliases: 
Possible values: 

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-SkipBackupSummary

(Switch) Skip displaying the backup summary information.

Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: 
Possible values: 

Required: False
Position: named
Default value: False
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • None

OUTPUTS

  • None
  • None