April 1

Gruppenrichtlinien dokumentieren und sichern

Powershell Script

— Code —

Import-Module GroupPolicy

$date = get-date -format yyyy-MM-dd

$path = „\\ServerName\c$\GPOBackups\“+$date

New-Item -Path $path -ItemType directory

Backup-Gpo -All -Path $path

get-GPO -all | % { Get-GPOReport $_.id -ReportType HTML -Path „$path\$($_.DisplayName).html“ }

— Code —

Viele Grüße Arnd Rößner


Copyright 2021. All rights reserved.

Veröffentlicht01/04/2015 von Arnd Rößner in Kategorie "Allgemein