Skip to content

RehanSaeed/PowerShell-Cheat-Sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

PowerShell Cheat Sheet

A cheat sheet for PowerShell and Windows commands.

Help

Get-Help Foo-Bar          # Get help on the 'Foo-Bar' command.
Get-Help Foo-Bar -Full    # Get full help on the 'Foo-Bar' command.
Get-Help Foo-Bar -Online  # Get help on the 'Foo-Bar' command in a browser.
Get-Command *foo*         # Get all commands containing 'foo'.
Get-Command -Module Foo   # Get all commands from module 'Foo'.

Modules

Get-Module -ListAvailable # List all modules.
Find-Module *foo*         # Find all modules containing 'foo'.
Install-Module Foo        # Install module 'foo'.
Uninstall-Module Foo      # Uninstall module 'foo'.
Update-Module Foo         # Update module 'foo'.

Variables

$LastExitCode             # The exit code from the last exited process.
$PSVersionTable           # PowerShell and OS version.

File System

pwd                       # Get the current directory path.

Networking

netstat -aon | findstr "5000"   # Find process ID using port.

About

A cheat sheet for PowerShell and Windows commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published