Skip to content

Instantly share code, notes, and snippets.

View bbaassssiiee's full-sized avatar

Bas bbaassssiiee

  • Appsterdam
  • 23:52 (UTC +01:00)
View GitHub Profile
#Requires -Version 3.0
# Configure a Windows host for remote management with Ansible
# -----------------------------------------------------------
#
# This script checks the current WinRM (PS Remoting) configuration and makes
# the necessary changes to allow Ansible to connect, authenticate and
# execute PowerShell commands.
#
# IMPORTANT: This script uses self-signed certificates and authentication mechanisms
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn
NhAAAAAwEAAQAAAgEAkznw3l2qYCjdCftmFeFd3AqikuvqSR6TaKxqJzeVOcUxrXH7Fkh1
eDwv66sQm2ZcE/rkhQFIjMkn9zxCSUGHSMW5GJzVJ32fh5BZ4ctiSlACLfDNwVl5vHJHul
Yb/Hu59Lxbv52AnmCwTLZ+48Dfx7rFJxSN5gG2jFU18xX/2wCLLoptoOw99YxAPVdrLOBt
+est96OmC7YAdmIxQI7EFBJkSmP+xnYipvGke+I/b/W6Uon1oSTdUpoflzFnKzjC1lkdqj
T47pYBk40zHTRM/OW20dJpflsdsRgqvSmV1KemNml7b4VQ98vA9TVXwy70PKhqHHBHuZoR
XQSrfbfwz+DhG/20KqD9Yo1TrBF1pm/gXG+85ySoakX9nK+GA6dPSg90MFXA0kSpRgI3Bn
Qn3d4pABPoqDlsVTHlNiEAwSCLLVetkOtvFMwPsJYvI8rkUpCgk8FfpsGmiALTdzn04Y1q
WgqXC9BlMx5iNITeTP+ugpLG1t6ZdWGIBmsSuJkngS7SCd7N+ePKbUf0xtgJQFZbQP4lOV
## Manage Vagrant for the first time
if [ "$1" == "" ]
then
VAGRANT=1.9.8
else
VAGRANT=$1
fi
if [ ! -x /usr/local/bin/vagrant ]

Keybase proof

I hereby claim:

  • I am bbaassssiiee on github.
  • I am basmeijer (https://keybase.io/basmeijer) on keybase.
  • I have a public key whose fingerprint is 9F27 4D4F 076A B5F9 6564 9FDE D6F7 A6A6 D66B AEAB

To claim this, I am signing this object: