Skip to content

Credentials

Gincules edited this page Aug 11, 2023 · 2 revisions

Credential file

I also recommend to create a credential file to automate your commands

PowerShell Credentials

$Credential = Get-Credential
$Credential | Export-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"

Read-More

Password file

Some functions require a SecureString as parameter, here is how you create a password file:

$SecurePassword = Read-Host -AsSecureString
$Encrypted = ConvertFrom-SecureString -SecureString $SecurePassword 
$Encrypted | Out-File -FilePath "${env:APPDATA}\PScred\function-password.txt"

Read-More

Clone this wiki locally