We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0d52d commit 2c701e7Copy full SHA for 2c701e7
1 file changed
secure-standalone.ps1
@@ -62,7 +62,7 @@ if ($paramscheck | Where-Object { $_ } | Select-Object) {
62
$minfreespace = 10000000000 #10GB
63
if ($freespace -gt $minfreespace) {
64
Write-Host "Taking a Restore Point Before Continuing...."
65
- $job = Start-Job -Name Take Restore Point -ScriptBlock {
+ $job = Start-Job -Name "Take Restore Point" -ScriptBlock {
66
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore' -Name 'SystemRestorePointCreationFrequency' -PropertyType DWORD -Value 0 -Force
67
Checkpoint-Computer -Description "RestorePoint $scriptName $date" -RestorePointType "MODIFY_SETTINGS"
68
}
0 commit comments