Commands
Curated shell and tool commands for Linux, Windows, Python, Git, Django, SQL, and Nginx – searchable, filterable, and copyable with one click.
29 Commands found
No commands found. Try a different search or filter.
-
Windows PowerShell
Calculate a file's SHA-256 hash
Hash example.zip without modifying it. Replace the path and compare the result with a trusted reference.
Get-FileHash -Algorithm SHA256 -LiteralPath .\example.zip -
Windows PowerShell
Inspect a script's Authenticode signature
Inspect the signature status of example.ps1 on Windows without executing it. A valid signature is not a safety guarantee.
Get-AuthenticodeSignature -LiteralPath .\example.ps1 -
Windows PowerShell
List all available PowerShell modules
Shows every PowerShell module installed on the system that can be imported, without actually loading them. Useful for checking whether a required module is present.
Get-Module -ListAvailable -
Windows PowerShell
List installed Windows hotfixes
Shows the installed Windows updates (hotfixes) with their KB identifier and installation date. Get-HotFix is a thin wrapper around the Win32_QuickFixEngineering WMI class, which, per Microsoft's own documentation, returns only updates supplied through Component Based Servicing (CBS); updates installed via the Windows Installer (MSI) or delivered through the Windows Update site are not returned by this class, so this list is not a complete update history on modern Windows. For the full history, use the Settings app under Windows Update > Update history.
Get-HotFix -
Windows PowerShell
List listening TCP ports with owning processes
Shows TCP ports in the listening state together with the numeric process ID (OwningProcess) of the process that opened each one. Part of the built-in NetTCPIP module (Windows 8/Server 2012 or later). Use Get-Process with that ID to look up the process name.
Get-NetTCPConnection -State Listen -
Windows PowerShell
List local user accounts
Shows the local user accounts on this computer, including whether each one is enabled. Requires the LocalAccounts module (built into Windows 10/11 and Windows Server 2016 or later) and is not available on domain controllers.
Get-LocalUser -
Windows PowerShell
List members of the local Administrators group
Shows which users and groups have been added to the local Administrators group, identified by its well-known SID (S-1-5-32-544) so the command works regardless of the system's display language, unlike specifying the localized group name. Requires the LocalAccounts module and is not available on domain controllers.
Get-LocalGroupMember -SID 'S-1-5-32-544' -
Windows PowerShell
List PowerShell drives
Shows all PowerShell drives, including filesystem drive letters and provider drives such as Env: and HKLM:, along with free space where applicable.
Get-PSDrive -
Windows PowerShell
List running processes
Lists the processes currently running on the local computer, including process ID and resource usage.
Get-Process -
Windows PowerShell
List scheduled tasks
Shows all scheduled tasks defined on the system along with their current state (ready, running, or disabled). Part of the built-in ScheduledTasks module (Windows 8/Server 2012 or later).
Get-ScheduledTask -
Windows PowerShell
List volumes, drive letters, and free space
Shows all storage volumes with their drive letter, file system type, health status, and free space. Part of the built-in Storage module (Windows 8/Server 2012 or later).
Get-Volume -
Windows PowerShell
List Windows services
Lists Windows services on the local computer along with their current status (running, stopped, etc.).
Get-Service -
Windows PowerShell
Query DNS records for a domain
Looks up the DNS records for the given domain and shows the resolved IP addresses. Part of the built-in DnsClient module (Windows 8/Server 2012 or later).
Resolve-DnsName example.com -
Windows PowerShell
Read operating-system details through CIM
Read the local Windows operating-system instance, including version and last boot time. No remote session is requested.
Get-CimInstance -ClassName Win32_OperatingSystem -
Windows PowerShell
Show a PowerShell command's syntax
Show the available parameter sets for Get-Process without running that command.
Get-Command -Name Get-Process -Syntax -
Windows PowerShell
Show detailed system and OS information
Displays detailed information about the operating system, BIOS, and hardware. Available in Windows PowerShell 5.1 and PowerShell on Windows 10, 11, and Windows Server 2016 or later; the first run can take a few seconds.
Get-ComputerInfo -
Windows PowerShell
Show error-level entries from the System event log
Filters the Windows System event log to the 20 most recent entries at the Error level. Reading some logs may require administrative permissions depending on system configuration.
Get-WinEvent -FilterHashtable @{LogName='System'; Level=2} -MaxEvents 20 -
Windows PowerShell
Show IP addresses assigned to network interfaces
Lists the IPv4 and IPv6 addresses currently assigned to each network interface. Part of the built-in NetTCPIP module (Windows 8/Server 2012 or later).
Get-NetIPAddress -
Windows PowerShell
Show last and next run times for scheduled tasks
Lists every scheduled task together with its last run time, last result, and next scheduled run time. This is a pipeline of two cmdlets (Get-ScheduledTask, Get-ScheduledTaskInfo), not a single command. Part of the built-in ScheduledTasks module (Windows 8/Server 2012 or later).
Get-ScheduledTask | Get-ScheduledTaskInfo -
Windows PowerShell
Show network adapter status
Lists network adapters with their link speed and connection status (up or down). Part of the built-in NetAdapter module (Windows 8/Server 2012 or later).
Get-NetAdapter -
Windows PowerShell
Show NTFS permissions for a path
Displays the owner and access control list (NTFS permissions) for the given file or folder path, here the root of the C: drive.
Get-Acl C:\ -
Windows PowerShell
Show physical disk inventory and health
Lists the physical disks attached to the system with their media type, size, and health status. Part of the built-in Storage module (Windows 8/Server 2012 or later).
Get-PhysicalDisk -
Windows PowerShell
Show the current user's identity and privileges
Prints the current user name, group memberships, and assigned privileges. This is the built-in whoami.exe tool, not a PowerShell cmdlet, but works identically in every PowerShell session.
whoami /all -
Windows PowerShell
Show the IP routing table
Displays the system's current IP routing table, including the default route. Part of the built-in NetTCPIP module (Windows 8/Server 2012 or later).
Get-NetRoute -
Windows PowerShell
Show the most recent System event log entries
Displays the 20 most recent entries from the Windows System event log. Reading some logs may require administrative permissions depending on system configuration.
Get-WinEvent -LogName System -MaxEvents 20 -
Windows PowerShell
Show the PowerShell script execution policy
Lists the script execution policy configured at each scope (process, user, machine). This setting is a safety feature that helps prevent scripts from running unintentionally; it is not a security boundary and can be overridden, for example with -ExecutionPolicy Bypass.
Get-ExecutionPolicy -List -
Windows PowerShell
Show the PowerShell version and edition
Prints the PowerShell version, edition (Desktop or Core), and compatible .NET version. Useful for confirming whether a script is running under Windows PowerShell 5.1 or PowerShell 7.
$PSVersionTable -
Windows PowerShell
Show the ten largest files in the user profile
Searches the current user's profile folder recursively and lists the ten largest files by size. This is a pipeline of three cmdlets (Get-ChildItem, Sort-Object, Select-Object), not a single command, and may take a moment on profiles with many files.
Get-ChildItem -Path $env:USERPROFILE -Recurse -File -ErrorAction SilentlyContinue | Sort-Object Length -Descending | Select-Object -First 10 FullName, Length -
Windows PowerShell
Test connectivity to a host and port
Checks whether a TCP connection to the given host and port succeeds, and reports basic route information. Part of the built-in NetTCPIP module (Windows 8/Server 2012 or later).
Test-NetConnection -ComputerName example.com -Port 443