0

I want to run powershell script to stop some application which will use the domain account , I want to encrypt the domain user and password .

The application uses URL to login with domain username and password

Vgg
  • 1
  • 2
  • Possible duplicate of [What is the best way to store account credentials (especially password) for an automated email script?](https://stackoverflow.com/questions/50917375/what-is-the-best-way-to-store-account-credentials-especially-password-for-an-a) – boxdog May 09 '19 at 08:18

1 Answers1

0

Checkout this credential tutorial. Example store password in encrypted format in file:

"P@ssword1" | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString | Out-File "C:\Temp 2\Password.txt"
Moerwald
  • 10,448
  • 9
  • 43
  • 83
  • How to run the powershell script from ansible linux server – Vgg May 09 '19 at 08:44
  • Install Powershell [core] (https://github.com/PowerShell/PowerShell/releases). Depending on your distro it may also be available via a package manager. Powrshell core supports remoting via SSH. – Moerwald May 09 '19 at 11:51