Files
GPOZaurr/Examples/Example-01-BackupGPOs.ps1
T
Przemysław Kłys 1241cf3680 Update
2020-04-03 11:17:07 +02:00

9 lines
372 B
PowerShell

Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
# Backup GPOs
$BackupPath = "$Env:UserProfile\Desktop\GPO"
$GPOSummary = Backup-GPOZaurr -BackupPath $BackupPath -Verbose -Type EmptyAndUnlinked
$GPOSummary | Format-Table -AutoSize
# Confirm GPOs are backed up properly
#Get-GPOZaurrBackupInformation -BackupFolder $GPOSummary[0].BackupDirectory | Format-Table -a