≡ Menu

If your computer has a WiFi connection, how do we know if it's connected or disconnected? 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 Windows 7 computer C:\>netsh [...]

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. The command dsa.msc is used to open active directory from command prompt too.

Add user to domain group

If you are a domain admin, you may want to add new members to a domain/active directory group from command line. Execute the below steps to add users to domain group. Open command prompt Run the below command net group groupName userName /ADD /DOMAIN Example: To add a user named 'dave' to the domain group "Domain [...]

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: Non-authoritative answer: Name: www.windows-commandline.com Addresses: [...]

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. Run the following steps to disable password expiry from command line. Open elevated admin command prompt Run the command. WMIC USERACCOUNT WHERE Name='username' SET PasswordExpires=FALSE Example: [...]

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. . . . . . . . . . [...]

Learn Run command for remote desktop. Remote desktop(RDP) client is used to connect to remote Windows machine that is running RDP server. Run the command mstsc to open remote desktop Just open Run from start menu and type mstsc in the text box next to open and press enter. This command mstsc can be executed from [...]

Learn the command to open disk management console from Run/command prompt. In disk management console, we can create/delete partitions and format drives. Execute the command diskmgmt.msc to open disk management console from Run. Same command can be used from CMD as well. c:> diskmgmt.msc