Skip to content

Commit 243bee9

Browse files
Update sos-optimize-windows.ps1
1 parent b8a7f1c commit 243bee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sos-optimize-windows.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if ($paramscheck | Where-Object { $_ } | Select-Object) {
9292
$minfreespace = 10000000000 #10GB
9393
if ($freespace -gt $minfreespace) {
9494
Write-Host "Taking a Restore Point Before Continuing...."
95-
$job = Start-Job -Name Take Restore Point -ScriptBlock {
95+
$job = Start-Job -Name "Take Restore Point" -ScriptBlock {
9696
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore' -Name 'SystemRestorePointCreationFrequency' -PropertyType DWORD -Value 0 -Force
9797
Checkpoint-Computer -Description "RestorePoint $scriptName $date" -RestorePointType "MODIFY_SETTINGS"
9898
}

0 commit comments

Comments
 (0)