Update Windows/BackupGPO.md

This commit is contained in:
2024-03-02 16:31:50 +00:00
parent c1ed08ce95
commit 2943e14188

View File

@@ -36,7 +36,7 @@ $sftpfingerprint = "ssh-rsa 3072 aX....." #replace it with the value of the comm
$winscppath = "C:\Scripts\backupGPOs\WinSCPnet.dll" #file from the zip you have downloaded before $winscppath = "C:\Scripts\backupGPOs\WinSCPnet.dll" #file from the zip you have downloaded before
$destinantion = "/backups/gpos/" #target on the SFTP Server $destinantion = "/backups/gpos/" #target on the SFTP Server
Backup-GPO -All -path $path -Comment "Backup done from DC-04" Backup-GPO -All -path $path -Comment "Backup done from DC-01"
# Load WinSCP .NET assembly # Load WinSCP .NET assembly
Add-Type -Path $winscppath Add-Type -Path $winscppath