Skip to content

Instantly share code, notes, and snippets.

@vinyar
Created June 7, 2017 23:43
Show Gist options
  • Save vinyar/a667969c1022d175f57db5b64460c2fe to your computer and use it in GitHub Desktop.
Save vinyar/a667969c1022d175f57db5b64460c2fe to your computer and use it in GitHub Desktop.
echoing out pem to remote windows workstation
-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