Link to home
Start Free TrialLog in
Avatar of Kati Dougherty
Kati Dougherty

asked on

encrypt pw in PS scripts

Script to move users to Exchange Online.  How do I encrypt the password in these automated scripts, as below, using Task Scheduler?

$cred = New-Object System.management.automation.PSCredential "kati.3dougherty@twdc.onmicrosoft.com", (convertTo-SecureString "Pass123" -AsPlainText -Force)
$cred1 = New-Object System.management.automation.PSCredential "wdw\3dougk035", (convertTo-SecureString "Pass123" -AsPlainText -Force)
ASKER CERTIFIED SOLUTION
Avatar of Philip Portnoy
Philip Portnoy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kati Dougherty
Kati Dougherty

ASKER

Awesome!!  Thanks so much.  I will try this and re-post.  THANKS!!