You are on page 1of 2

In user login use cmd pmpt as Administrator:

C:\users\ runas /user:username\administrator cmd


Changing Your IP Address

netsh interface ip set address name=Local Area Connection static


192.168.0.1 255.255.255.0 192.168.0.254

Automatic DHCP
netsh interface ip set address name=Local Area Connection
source=dhcp
Changing Your DNS Settings
netsh interface ip set dns name=Local Area Connection static
192.168.0.250

To change the IP address of the secondary DNS server you will need to specify
the index parameter:
netsh interface ip add dns name=Local Area Connection 8.8.8.8
index=2

The last thing you might want to do it set your DNS settings to be assigned
dynamically, which can be done through the following command.
netsh interface ip set dnsservers name=Local Area Connection
source=dhcp

How to Uninstall software from control panel with


command line?
Open cmd Run as administrator and type
1)C:\Windows\System32\WMIC
2)PRODUCT GET NAME
You will get list of softwares
PRODUCT WHERE NAME=Name of software
PRODUCT WHERE NAME=Name of software call uninstall
It will ask Yes/No?Yes
Successful

uninstalled return value 0.

How to install a package from command line:


C:\Windows\System32\msiexec /i or /x or /s
i-install,x-uninstall,s-silent install.

You might also like