Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rehansaeed/powershell-cheat-sheet

A cheat sheet for PowerShell and Windows commands.
https://github.com/rehansaeed/powershell-cheat-sheet

cheat-sheet powershell powershell-modules windows

Last synced: 21 days ago
JSON representation

A cheat sheet for PowerShell and Windows commands.

Awesome Lists containing this project

README

        

# PowerShell Cheat Sheet

A cheat sheet for PowerShell and Windows commands.

## Help

```powershell
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

```powershell
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

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

## File System

```powershell
pwd # Get the current directory path.
```

## Networking

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