We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a12dab commit 695b0f8Copy full SHA for 695b0f8
1 file changed
Powershell/Update-SCOMCertificate.ps1
@@ -53,10 +53,6 @@ param
53
[switch]$UpdateRegistry
54
)
55
56
-# Author: Blake Drumm (blakedrumm@microsoft.com)
57
-# Date Created: June 6th, 2023
58
-# Date Modified: June 14th, 2023
59
-
60
#region ImportCertAndUsePassword
61
62
$PathToPassword = 'C:\Certs\password.txt'
@@ -69,8 +65,8 @@ if (-NOT $(Get-Item $PathToPassword -ErrorAction SilentlyContinue))
69
65
$PasswordBytes = ConvertFrom-SecureString -SecureString $SecurePassword
70
66
Set-Content -Path $PathToPassword -Value $PasswordBytes
71
67
pause
72
- #endregion
73
68
}
+#endregion
74
75
$PasswordBytes = Get-Content -Path $PathToPassword
76
$pwd = ConvertTo-SecureString -String $PasswordBytes
0 commit comments