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.automati on.PSCrede ntial "kati.3dougherty@twdc.onmi crosoft.co m", (convertTo-SecureString "Pass123" -AsPlainText -Force)
$cred1 = New-Object System.management.automati on.PSCrede ntial "wdw\3dougk035", (convertTo-SecureString "Pass123" -AsPlainText -Force)
$cred = New-Object System.management.automati
$cred1 = New-Object System.management.automati
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER