This commit is contained in:
Przemysław Kłys
2020-04-03 11:17:07 +02:00
parent 956d111911
commit 1241cf3680
11 changed files with 309 additions and 133 deletions
+14
View File
@@ -0,0 +1,14 @@
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
$RestoreFrom = 'C:\Users\przemyslaw.klys\Desktop\GPO\2020-04-02_20_20_04'
$BackupInformation = Get-GPOZaurrBackupInformation -BackupFolder $RestoreFrom
$BackupInformation | Format-Table -a
# restore all gpos
$RestoredGPOs = Restore-GPOZaurr -BackupFolder $RestoreFrom -Verbose
$RestoredGPOs | Format-Table -AutoSize
# restore just one Gpo
$RestoredGPOs = Restore-GPOZaurr -BackupFolder $RestoreFrom -Verbose -DisplayName 'Users | Synced Office 365 Users'
$RestoredGPOs | Format-Table -AutoSize