Update static IP address wmic nicconfig where index=9 call enablestatic("192.168.16.4"), ("255.255.255.0")
Change network gateway wmic nicconfig where index=9 call setgateways("192.168.16.4", "192.168.16.5"),(1,2)
Enable DHCP wmic nicconfig where index=9 call enabledhcp
Service Management wmic service where caption="DHCP Client" call changestartmode "Disabled"
Start an application wmic process call create "calc.exe"
Source : http://blogs.technet.com/b/jhoward/archive/2005/02/23/378726.aspx
No comments:
Post a Comment