Skip to content

Instantly share code, notes, and snippets.

@jovib
Last active April 20, 2017 14:59
Show Gist options
  • Select an option

  • Save jovib/79c4f699b09b230e9ffef2eaf9872e33 to your computer and use it in GitHub Desktop.

Select an option

Save jovib/79c4f699b09b230e9ffef2eaf9872e33 to your computer and use it in GitHub Desktop.
QuickPrep for VMware View for no DHCP server
rem Author: Joel Villalobos
rem @jovib_
IF %computername%==VM-1 Netsh int ip set address name="Local Area Connection 2" source=static addr=192.168.2.80 255.255.255.0 192.168.90.100
IF %computername%==VM-1 Netsh int ip set dns name="Local Area Connection 2" source=static addr=192.168.90.5
IF %computername%==VM-1 Netsh int ip add dns name="Local Area Connection 2" addr=192.168.90.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment