Created
June 7, 2017 23:43
-
-
Save vinyar/a667969c1022d175f57db5b64460c2fe to your computer and use it in GitHub Desktop.
echoing out pem to remote windows workstation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-join $(openssl rand -base64 512) > secret_key | |
cat secret_key | |
knife winrm -m <IP> -x <USER> -P <PASS> "echo $(gc .\secret_key)>c:\chef\secret_key" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment