Include Page |
---|
| KBCOMMON:KB-CSSstyle |
---|
| KBCOMMON:KB-CSSstyle |
---|
|
...
Run the following command to create the encrypted file:
C:\WINDOWSUsers\system32>powershell PS C:\WINDOWS\system32> Spock> powershell -command " ConvertTo-SecureString -String "' < password> " ' -AsPlainText -Force ^
More? | ConvertFrom-SecureString | Out-File "' < full path to the file >'"
|
Example:
C:\WINDOWSUsers\system32>powershell PS C:\WINDOWS\system32> Spock> powershell -command " ConvertTo-SecureString -String "'
12345 " ' -AsPlainText -Force ^
More? | ConvertFrom-SecureString | Out-File ' c:\charon\msds20vmspwd.txt'"
|
Run the Powershell script in check mode:
...