Skip to content

Commit 4375263

Browse files
Update sos-optimize-windows.ps1
1 parent ef48835 commit 4375263

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
@@ -46,7 +46,7 @@ if ($paramscheck | Where-Object { $_ } | Select-Object) {
4646
if ($freespace -gt $minfreespace) {
4747
Try {
4848
Write-Host "Taking a Restore Point Before Continuing...."
49-
$job = Start-Job -Name Take Restore Point -ScriptBlock {
49+
$job = Start-Job -Name "Take Restore Point" -ScriptBlock {
5050
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore' -Name 'SystemRestorePointCreationFrequency' -PropertyType DWORD -Value 0 -Force
5151
Checkpoint-Computer -Description "RestorePoint $scriptName $date" -RestorePointType "MODIFY_SETTINGS"
5252
}

0 commit comments

Comments
 (0)