Window Commands
1. System Information Commands
syteminfo - systeminfo is a Windows command-line utility that displays a detailed summary of your
computer's hardware and operating system configuration.
hostname - The hostname command-line utility, available on Windows and Linux, simply displays the
name of the machine you're currently using.
echo %username% - echo %username% is a command used in Windows to display the name of the
currently logged-in user. It works by printing the value of the %username% environment variable.
echo %computername% - echo %computername% is a Windows command that displays the name of
the computer you're currently using. It prints the value of the %computername% environment
variable, which is a unique label assigned to a machine on a network.
ver- ver is a Windows command that displays the version number of the operating system.
set - set is a command used in Windows Command Prompt that displays, sets, or removes
environment variables.
ipconfig - ipconfig is a Windows command-line tool that displays your computer's network
configuration, including IP addresses, subnet masks, and default gateways. It is commonly used for
troubleshooting network connectivity issues.
ipconfig /all - ipconfig /all is a Windows command-line utility that provides a detailed and complete
view of your computer's network configuration for all network adapters. It gives you a lot more
information than the basic ipconfig command
2. Network Configuration and Troubleshooting Commands
ping 8.8.8.8 - ping 8.8.8.8 is a command-line utility that sends small packets of data to the IP address
8.8.8.8 to test network connectivity.
ping google.com - ping google.com is a command-line tool that tests network connectivity to the
website google.com by sending small data packets. It's used to check if your computer can reach
Google's servers on the internet.
tracert - tracert (traceroute) is a Windows command-line utility that maps the path a packet takes to
reach a destination, such as google.com. It shows you every router (or "hop") the data passes
through on its way from your computer to the target server.
nslookup google.com is a command-line tool that performs a DNS (Domain Name System) lookup
for the domain name google.com. It queries a DNS server to find the IP address associated with that
domain.
netstat - netstat (network statistics) is a command-line tool that displays active network connections,
listening ports, and other network-related information on a computer. It's a fundamental utility for
network troubleshooting and security analysis, helping you see what's happening on your machine's
network.
net view - net view is a Windows command-line utility used to display a list of computers, resources,
and shared folders available on the network. It's a quick way to discover other machines and shared
resources in your workgroup or domain.
net use - net use is a Windows command-line utility used to connect to, disconnect from, and view
shared resources (like folders and printers) on a network. It's a key tool for managing network drives
from the command line.
route print is a Windows command-line utility that displays the computer's IP routing table. The
routing table is a set of rules that determines where network traffic is sent. It's an essential tool for
understanding how your computer forwards data to different networks.
3. Process and Service Management Commands
Get-ComputeInfo : It provides a structured object with comprehensive information about the
system.
Get-CimInstance Win32_ComputerSystem is a PowerShell command that retrieves detailed
information about the physical computer system. It gives you a structured object with data about the
machine's hardware and its role on a network.
Get-CimInstance Win32_OperatingSystem : Get-CimInstance Win32_OperatingSystem is a
PowerShell command that retrieves detailed information about the operating system installed on a
computer. It's a more modern and powerful way to get system details compared to older commands.
Get-CimInstance Win32_Bios is a PowerShell command that retrieves detailed information about the
BIOS (Basic Input/Output System) or UEFI firmware of a computer. It returns a structured object
with key details about the system's firmware.
Get-CimInstance Win32_Processor is a PowerShell command that retrieves detailed information
about the processors (CPUs) installed in a computer. It returns a structured object that's useful for
system inventory and performance monitoring.
Get-Date is a fundamental PowerShell cmdlet that retrieves the current date and time. It returns a
DateTime object, which is a powerful and flexible data type.
Get-TimeZone is a PowerShell cmdlet that retrieves information about the current time zone set on
the system.
Get-NetIPConfiguration : Get-NetIPConfiguration is a PowerShell cmdlet that displays the IP network
configuration of your computer. It is the modern and recommended replacement for the older
ipconfig command.
Get-NetRoute : Get-NetRoute is a PowerShell cmdlet that displays the IP routing table of a computer.
It's the modern replacement for the older route print command, providing a more structured and
script-friendly way to view your machine's routing information.
Get-DnsClientServerAddress is a PowerShell cmdlet that retrieves the DNS server addresses
configured for a computer's network adapters. It provides a simple and reliable way to check which
DNS servers your system is using.
Get-NetAdapter is a PowerShell cmdlet that retrieves information about the network adapters
(physical and virtual) installed on a computer. It's the modern and recommended way to get network
interface details.
Get-NetTcpConnection is a PowerShell cmdlet that displays a list of active TCP network connections
on a computer. It is the modern and object-oriented replacement for the legacy netstat command.
Get-Process is a fundamental PowerShell cmdlet that displays a list of all processes currently running
on a computer. It's the equivalent of the tasklist command or the "Processes" tab in Task Manager,
but it returns a structured object that's ideal for scripting and automation.
Get-Service is a fundamental PowerShell cmdlet that displays a list of all services installed on a
computer. It's the PowerShell equivalent of the services console (services.msc) and provides a quick
way to view service status, names, and display names.