Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rehansaeed/powershell-cheat-sheet
- Owner: RehanSaeed
- License: mit
- Created: 2020-08-27T08:53:53.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-05T10:31:39.000Z (almost 4 years ago)
- Last Synced: 2024-10-06T09:45:38.624Z (about 1 month ago)
- Topics: cheat-sheet, powershell, powershell-modules, windows
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.
```