slider

Halaman

Rabu, 28 Januari 2015

Connecting and Disconnecting Internet Connection Using Command Prompt

Here is commands to disconnect Internet Connection, when you  want to disable it and whenever you need to connect, you can quickly reconnect it  using Command Prompt
Firstly Open Command Prompt as Administrator and use the below commands for Internet Connection such as Local Area connection , WIRELESS LAN (WiFi) and Dial Up Connection
For Local Area connection
To See  Network Interfaces
netsh interface show interface
To Disable  Network Interface
netsh interface set interface ” Connection Name” disable
To Enable  Network Interface
netsh interface set interface ” Connection Name” enable
For WIRELESS LAN (WiFi)
To See WiFi Networks
netsh wlan show networks
To Disable  WiFi Connection
netsh wlan disconnect
To Enable  WiFi Connection
netsh wlan connect “ connection name”
For Dial Up Connection
To Disconnect Dial Up Connection
rasdial “connection name” /disconnect
To Connect to Dial up connection
rasdial “connection name” 




Configure the Wireless Hosted Network:
netsh wlan set hostednetwork mode=allow ssid=[your_virtual_network_name] key=[your_network_password]


Enable the Wireless Hosted Network:
netsh wlan start hostednetwork

Disable the Wireless Hosted Network: 
netsh wlan stop hostednetwork

Retrieve the Wireless Hosted Network details:
netsh wlan show hostednetwork


Change the password:
netsh wlan refresh hostednetwork YourNewNetworkPassword
Read More..