Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Software
Security Apps
Hard_Configurator Tools
Hard_Configurator - Windows Hardening Configurator
Message
<blockquote data-quote="bazang" data-source="post: 1121722" data-attributes="member: 114717"><p>Hard_Configurator ENABLED: "TurnOFFAllSRP"="0"</p><p>Hard_Configurator DISABLED: "TurnOFFAllSRP"="1"</p><p></p><p>[ICODE]</p><p>#To confirm Hard_Configurator is not enable (OFF) or enabled (ON) after Windows system boot</p><p># Output shall be "The registry value 'TurnOFFAllSRP' does not exist or is not set to '0." or "The registry value 'TurnOFFAllSRP' exists and is set to '1'."</p><p></p><p># Define the registry path and value name</p><p>$RegistryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\safer_Hard_Configurator\CodeIdentifiers"</p><p>$ValueName = "TurnOFFAllSRP"</p><p># Check if the registry key exists</p><p>if (Test-Path $RegistryPath) {</p><p> # Get the registry value</p><p> $RegistryValue = Get-ItemProperty -Path $RegistryPath -Name $ValueName -ErrorAction SilentlyContinue</p><p> # Check if the value exists and equals "1"</p><p> if ($RegistryValue.$ValueName -eq "1") {</p><p> Write-Output "The registry value 'TurnOFFAllSRP' exists and is set to '1'."</p><p> } else {</p><p> Write-Output "The registry value 'TurnOFFAllSRP' does not exist or is not set to '0'."</p><p> }</p><p>} else {</p><p> Write-Output "The registry key does not exist."</p><p>}</p><p>[/ICODE]</p><p></p><p>[ICODE]</p><p>#To confirm Hard_Configurator is not enabled (OFF) or enabled (ON) after Windows system boot</p><p># Output shall be "The registry value 'TurnOFFAllSRP' exists and is set to '0'." or "The registry value 'TurnOFFAllSRP' does exist or is not set to '0'."</p><p></p><p># Define the registry path and value name</p><p> if (Test-Path $RegistryPath) {</p><p>>> # Get the registry value</p><p>>> $RegistryValue = Get-ItemProperty -Path $RegistryPath -Name $ValueName -ErrorAction SilentlyContinue</p><p>>></p><p>>> # Check if the value exists and equals "1"</p><p>>> if ($RegistryValue.$ValueName -eq "0") {</p><p>>> Write-Output "The registry value 'TurnOFFAllSRP' exists and is set to '0'."</p><p>>> } else {</p><p>>> Write-Output "The registry value 'TurnOFFAllSRP' does not exist or is not set to '0'."</p><p>>> }</p><p>>> } else {</p><p>>> Write-Output "The registry key does not exist."</p><p>>> }</p><p>[/ICODE]</p></blockquote><p></p>
[QUOTE="bazang, post: 1121722, member: 114717"] Hard_Configurator ENABLED: "TurnOFFAllSRP"="0" Hard_Configurator DISABLED: "TurnOFFAllSRP"="1" [ICODE] #To confirm Hard_Configurator is not enable (OFF) or enabled (ON) after Windows system boot # Output shall be "The registry value 'TurnOFFAllSRP' does not exist or is not set to '0." or "The registry value 'TurnOFFAllSRP' exists and is set to '1'." # Define the registry path and value name $RegistryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\safer_Hard_Configurator\CodeIdentifiers" $ValueName = "TurnOFFAllSRP" # Check if the registry key exists if (Test-Path $RegistryPath) { # Get the registry value $RegistryValue = Get-ItemProperty -Path $RegistryPath -Name $ValueName -ErrorAction SilentlyContinue # Check if the value exists and equals "1" if ($RegistryValue.$ValueName -eq "1") { Write-Output "The registry value 'TurnOFFAllSRP' exists and is set to '1'." } else { Write-Output "The registry value 'TurnOFFAllSRP' does not exist or is not set to '0'." } } else { Write-Output "The registry key does not exist." } [/ICODE] [ICODE] #To confirm Hard_Configurator is not enabled (OFF) or enabled (ON) after Windows system boot # Output shall be "The registry value 'TurnOFFAllSRP' exists and is set to '0'." or "The registry value 'TurnOFFAllSRP' does exist or is not set to '0'." # Define the registry path and value name if (Test-Path $RegistryPath) { >> # Get the registry value >> $RegistryValue = Get-ItemProperty -Path $RegistryPath -Name $ValueName -ErrorAction SilentlyContinue >> >> # Check if the value exists and equals "1" >> if ($RegistryValue.$ValueName -eq "0") { >> Write-Output "The registry value 'TurnOFFAllSRP' exists and is set to '0'." >> } else { >> Write-Output "The registry value 'TurnOFFAllSRP' does not exist or is not set to '0'." >> } >> } else { >> Write-Output "The registry key does not exist." >> } [/ICODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Top