Skip to content

Commit

Permalink
Update secure-standalone.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
simeononsecurity authored Aug 3, 2023
1 parent 7b0d52d commit 2c701e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secure-standalone.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if ($paramscheck | Where-Object { $_ } | Select-Object) {
$minfreespace = 10000000000 #10GB
if ($freespace -gt $minfreespace) {
Write-Host "Taking a Restore Point Before Continuing...."
$job = Start-Job -Name Take Restore Point -ScriptBlock {
$job = Start-Job -Name "Take Restore Point" -ScriptBlock {
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore' -Name 'SystemRestorePointCreationFrequency' -PropertyType DWORD -Value 0 -Force
Checkpoint-Computer -Description "RestorePoint $scriptName $date" -RestorePointType "MODIFY_SETTINGS"
}
Expand Down

0 comments on commit 2c701e7

Please sign in to comment.