We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef48835 commit 4375263Copy full SHA for 4375263
sos-optimize-windows.ps1
@@ -46,7 +46,7 @@ if ($paramscheck | Where-Object { $_ } | Select-Object) {
46
if ($freespace -gt $minfreespace) {
47
Try {
48
Write-Host "Taking a Restore Point Before Continuing...."
49
- $job = Start-Job -Name Take Restore Point -ScriptBlock {
+ $job = Start-Job -Name "Take Restore Point" -ScriptBlock {
50
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore' -Name 'SystemRestorePointCreationFrequency' -PropertyType DWORD -Value 0 -Force
51
Checkpoint-Computer -Description "RestorePoint $scriptName $date" -RestorePointType "MODIFY_SETTINGS"
52
}
0 commit comments