Skip to content

Commit

Permalink
Convert from secure string
Browse files Browse the repository at this point in the history
  • Loading branch information
scaryrawr committed Dec 12, 2024
1 parent b7119f4 commit 6c82c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $language = $(Get-WinSystemLocale).Name.Split('-')[0]
$arguments = @()
if ($UserName) { $arguments += "-u `"$UserName`"" }
if ($language) { $arguments += "-l `"$language`"" }
if ($Password) { $arguments += "-p `"$Password`"" }
if ($Password) { $arguments += "-p `"$(ConvertFrom-SecureString -SecureString $Password -AsPlainText)`"" }

$argumentsString = $arguments -join ' '

Expand Down

0 comments on commit 6c82c28

Please sign in to comment.