I’m relatively new to Powershell universal. Would appreciate some guidance from any of the gurus out there.
I am assuming I am on the right track.
Scenario: Storing Passwords as Variables(PSCredentials) and using it in Scripts
Step 1: Create new variable, select variable type “secret”
Step 2: Name: TestVar, Username: firstname.lastname@example.org, Password: Testing123, Vault: BuiltinLocalVault
Step 3: Create new script
Here is where I got stuck.
connect-exchangeonline -Credential $TestVar
I also tried
$TestVar2 = Get-UAVariable -Name ‘TestVar’
connect-exchangeonline -Credential $TestVar2
Both do not seem to work.