Skip to content

Commit

Permalink
Update Harden-Windows-Security.ps1
Browse files Browse the repository at this point in the history
removed extra space
  • Loading branch information
HotCakeX committed Aug 30, 2023
1 parent 4a57a5f commit 70ae779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Harden-Windows-Security.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ try {
if ($KeyProtectors -notcontains 'Tpmpin' -and $KeyProtectors -contains 'recoveryPassword') {
Write-Host "`nTPM and Start up PIN are missing but recovery password is in place, `nAdding TPM and Start up PIN now..." -ForegroundColor Cyan
do {
[securestring]$Pin1 = $( if ($IsCore) { &$WritePinkBold "`nEnter a Pin for Bitlocker startup (between 10 to 20 characters)" } else { Write-Host "`nEnter a Pin for Bitlocker startup (between 10 to 20 characters)" -ForegroundColor Magenta }; Read-Host -AsSecureString)
[securestring]$Pin1 = $(if ($IsCore) { &$WritePinkBold "`nEnter a Pin for Bitlocker startup (between 10 to 20 characters)" } else { Write-Host "`nEnter a Pin for Bitlocker startup (between 10 to 20 characters)" -ForegroundColor Magenta }; Read-Host -AsSecureString)
[securestring]$Pin2 = $(if ($IsCore) { &$WritePinkBold 'Confirm your Bitlocker Startup Pin (between 10 to 20 characters)' } else { Write-Host 'Confirm your Bitlocker Startup Pin (between 10 to 20 characters)' -ForegroundColor Magenta }; Read-Host -AsSecureString)

# Compare the PINs and make sure they match
Expand Down

0 comments on commit 70ae779

Please sign in to comment.