Handy Command Prompt Tricks

Modified on Tue, Mar 17 at 1:12 AM

Open Command Prompt to run any of these commands:


To find a computer's service tag: wmic bios get serialnumber


To find a computer's MAC address: getmac /S [IP address or computer name] 


To view your account's OU path in Active Directory: whoami /fqdn


To see WiFi signal strength: netsh wlan show interfaces  


To show currently visible WiFi networks: netsh wlan show networks mode=bssid


To show all currently visible networks: netsh wlan show networks


To manually connect to a WiFi network: netsh wlan connect ssid=YOUR-WIFI-SSID name=PROFILE-NAME 


To run a detailed WLAN report: netsh wlan show wlanreport

To find current ARP table entries (the IPs and MACs of nearby computers on the network): arp -a


To show IP/city/geolocation: curl ipinfo.io (not precise, but about a 10 mile radius)


To show a list of all connected devices: pnputil /enum-devices /connected


To show a list of all currently running apps/processes: tasklist


To launch app to delete user profiles: SystemPropertiesAdvanced.exe


To enable/disable hibernation: Powercfg /h on

                                                  Powercfg /h off


To determine CPU uptime (i.e. last time the user rebooted their computer): systeminfo | find "System Boot Time"

OR: net stats workstation 


To do a robocopy of files: robocopy [source path] [destination path] [parameters]

See details here: https://fmhc.freshdesk.com/a/solutions/articles/47001198205  



Add more here!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article