≡ Menu

If you want to disable LAN connection from Windows command prompt, you can run the following steps. Open elevated command prompt Run the below command netsh interface set interface name="Local Area Connection" admin=DISABLED That’s all you need to do. Now you may open ‘Network connections’ and confirm that the connection is disabled. You can also [...]

Do you want to change the look of Windows command prompt by changing background color? Windows command prompt has default color settings of black background and white foreground(text). This post explains you how to to change background/foreground colors using ‘color’ command. ‘Color’ command uses below codes to represent various colors. 0 = Black 8 = [...]

Check if WiFi is connected

If your have a WiFi connection, how do you find out if your computer is connected to WiFi or not? The command netsh interface is used to find your WiFi connection status from command prompt. Execute the below command to know WiFi connection status netsh interface show interface | findstr /C:"Wireless" /C:"Name" Example on my [...]

Learn the run command for active directory users and computers console. In this console, domain admins can manage domain users/groups and computers that are part of the domain. Execute the command dsa.msc to open active directory console from Run window. Open Active directory console from command prompt The command dsa.msc is used to open active [...]

Learn how to check VPN connection status on your Windows system from command prompt.  Netsh command is used to find connection status of different networks, including the VPN. Run the below command to find the VPN status c:\>netsh interface show interface An example run on my Windows 7 computer when I am connected to VPN. [...]

Windows automatically shares certain folders over the network, examples being C drive, C:\Windows & IPC$. Learn how to disable these administrative shares from command prompt. Execute the below net share command to delete the system/hidden shares. net share sharedFolder /delete So to delete each of the system shares, we can run a separate command net [...]

Do you need to find DNS address of a website from command prompt? Learn how to use Windows command nslookup to find DNS addresses. Run below command to find DNS address. nslookup DomainName An example command below that finds DNS address for this website. C:\>nslookup www.windows-commandline.com Server: UnKnown Address: 192.168.0.1 Non-authoritative answer: Name: www.windows-commandline.com Addresses: [...]

Set password to never expire

Learn how to configure a user account so that the password never expires. This can be done from Windows command prompt as well as in “local user accounts” console. Set password to never expire from CMD Run the following steps to disable password expiry from command line. Open elevated admin command prompt Run the command. [...]

Check IP address from CMD

Ipconfig command is used to find the IP address of a system from command line. Run the command ipconfig to print IP addresses for all network adapters installed on the system. c:\>ipconfig Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : IPv4 Address. . . . . . . . . . [...]

This post explains how to delete files using Powershell command ‘Remove-Item’. Delete file from PowerShell We can delete a file using remove-item command as below. Open powershell prompt and execute the command. remove-item file-path Example: PS C:\> Remove-Item C:\test\testFile.txt PS C:\> Delete multiple files We can delete as many files as we want with single [...]