We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8a7f1c commit 243bee9Copy full SHA for 243bee9
sos-optimize-windows.ps1
@@ -92,7 +92,7 @@ if ($paramscheck | Where-Object { $_ } | Select-Object) {
92
$minfreespace = 10000000000 #10GB
93
if ($freespace -gt $minfreespace) {
94
Write-Host "Taking a Restore Point Before Continuing...."
95
- $job = Start-Job -Name Take Restore Point -ScriptBlock {
+ $job = Start-Job -Name "Take Restore Point" -ScriptBlock {
96
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore' -Name 'SystemRestorePointCreationFrequency' -PropertyType DWORD -Value 0 -Force
97
Checkpoint-Computer -Description "RestorePoint $scriptName $date" -RestorePointType "MODIFY_SETTINGS"
98
}
0 commit comments