Skip to content

Commit 695b0f8

Browse files
authored
Small change 📂
1 parent 0a12dab commit 695b0f8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Powershell/Update-SCOMCertificate.ps1

+1-5
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ param
5353
[switch]$UpdateRegistry
5454
)
5555

56-
# Author: Blake Drumm ([email protected])
57-
# Date Created: June 6th, 2023
58-
# Date Modified: June 14th, 2023
59-
6056
#region ImportCertAndUsePassword
6157

6258
$PathToPassword = 'C:\Certs\password.txt'
@@ -69,8 +65,8 @@ if (-NOT $(Get-Item $PathToPassword -ErrorAction SilentlyContinue))
6965
$PasswordBytes = ConvertFrom-SecureString -SecureString $SecurePassword
7066
Set-Content -Path $PathToPassword -Value $PasswordBytes
7167
pause
72-
#endregion
7368
}
69+
#endregion
7470

7571
$PasswordBytes = Get-Content -Path $PathToPassword
7672
$pwd = ConvertTo-SecureString -String $PasswordBytes

0 commit comments

Comments
 (0)