To get and store the credential for the current user

Thank sean.

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
  • Share/Bookmark

1 Comment

  1. account money says

    After reading you site, Your site is very useful for me .I bookmarked your site!

Leave a Reply

Leave a Reply
  • (required)
  • (required) (will not be published)

  • Archives

  • Pages

  • Tags

  • More

Get Adobe Flash playerPlugin by wpburn.com wordpress themes