1 2 | $notespw = Read-Host "Enter the password for the Notes ID file" -AsSecureString $notespw | ConvertFrom-SecureString | Set-Content $pwfile -force |
To retrieve the password and create the PSCredential object:
1 2 | $notespw = get-content $pwfile | ConvertTo-SecureString $notesid = new-object -typename system.management.automation.pscredential -argumentlist "-default-",$notespw |
Example of use:
1 | Get-DominoMailbox mary@contoso.com -SourceCredential $notesid |






