Skip to content

Instantly share code, notes, and snippets.

@krames
Created June 10, 2013 18:27
Show Gist options
  • Select an option

  • Save krames/5751049 to your computer and use it in GitHub Desktop.

Select an option

Save krames/5751049 to your computer and use it in GitHub Desktop.
When uploaded to C:\\cloud-automation\\bootstrap.cmd on a Cloud Server, this script will open up the WinRM port. Sample Usage: knife rackspace server create -I fc2448b4-da85-4893-b0e7-6c8794e608b4 --flavor 5 --file C:\\cloud-automation\\bootstrap.cmd=bootstrap.cmd --bootstrap-protocol winrm --server-create-timeout 2000 --template-file /Users/kyl…
netsh advfirewall firewall set rule group="remote administration" new enable=yes & netsh advfirewall firewall add rule name="WinRM Port" dir=in action=allow protocol=TCP localport=5985
@maxlinc
Copy link

maxlinc commented Mar 25, 2014

Updated sample command:

be knife rackspace server create -c .chef/knife.rb --image 240b8fb2-da7a-482a-9429-891b374cb57c --flavor performance1-2 --file C:\cloud-automation\bootstrap.cmd=bootstrap.cmd --bootstrap-protocol winrm --server-create-timeout 2000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment