mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
9 lines
404 B
PowerShell
9 lines
404 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
# Backup GPOs
|
|
$BackupPath = "$Env:UserProfile\Desktop\GPO"
|
|
$GPOSummary = Backup-GPOZaurr -BackupPath $BackupPath -Verbose -Type EmptyAndUnlinked -BackupDated #-LimitProcessing 1
|
|
$GPOSummary | Format-Table -AutoSize
|
|
|
|
# Confirm GPOs are backed up properly
|
|
Get-GPOZaurrBackupInformation -BackupFolder $GPOSummary[0].BackupDirectory | Format-Table -a |