Skip to content

Commit

Permalink
Update sos-secure-standalone-server.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
simeononsecurity committed Aug 3, 2023
1 parent 0b9ab00 commit 1ab781e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos-secure-standalone-server.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,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 1ab781e

Please sign in to comment.