Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Windows 10/Install-CloudLAPS_SchTask.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ $ScriptBlock = {
if ($RSAPrivateKey -ne $null) {
if ($RSAPrivateKey -is [System.Security.Cryptography.RSACng]) {
# Construct a new SHA256Managed object to be used when computing the hash
$SHA256Managed = New-Object -TypeName "System.Security.Cryptography.SHA256Managed"
$SHA256Managed = [System.Security.Cryptography.SHA256Managed]::Create()

# Construct new UTF8 unicode encoding object
$UnicodeEncoding = [System.Text.UnicodeEncoding]::UTF8
Expand Down Expand Up @@ -610,4 +610,4 @@ Function Install-CloudLAPSClient {
exit $ExitCode
}

Install-CloudLAPSClient
Install-CloudLAPSClient