Skip to content

Commit 6e47817

Browse files
author
Daniele Catanesi
committed
Fixed typo in command
1 parent b7b250d commit 6e47817

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_posts/2019-02-26-Store-Credentials-in-PowerShell-Script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Taking this a step further we can save the *secure string* to a file that is th
6969
[SecureString]$secureString = $userPassword | ConvertTo-SecureString -AsPlainText -Force
7070
7171
# Get content of the string
72-
[string]$stringObject = Convert-FromSecureString
72+
[string]$stringObject = ConvertFrom-SecureString
7373
7474
# Save Content to file
7575
$stringObject | Set-Content -Path 'C:\SomeDir\Secure.txt'

0 commit comments

Comments
 (0)