From 2c701e7f610729544652c07d604d047585bd9a79 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Thu, 3 Aug 2023 05:56:40 +0000 Subject: [PATCH] Update secure-standalone.ps1 --- secure-standalone.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secure-standalone.ps1 b/secure-standalone.ps1 index 1e80190..54cae2e 100644 --- a/secure-standalone.ps1 +++ b/secure-standalone.ps1 @@ -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" }