9 lines
371 B
PowerShell
9 lines
371 B
PowerShell
$BackupZip = "\\DOES-RAINVM-PRD\E$\Neeraj\SqlAgent\Backup\SQLAgentJobs_20251018_153000.zip"
|
|
$ExtractPath = "\\DOES-RAINVM-PRD\E$\Neeraj\SqlAgent\Restore\"
|
|
|
|
# Create folder if not exist
|
|
if (-not (Test-Path $ExtractPath)) { New-Item -ItemType Directory -Path $ExtractPath | Out-Null }
|
|
|
|
# Extract the ZIP
|
|
Expand-Archive -Path $BackupZip -DestinationPath $ExtractPath -Force
|