Skip to content

Commit

Permalink
Fix Powershell notes
Browse files Browse the repository at this point in the history
  • Loading branch information
YoussF committed Apr 28, 2022
1 parent 3b626ce commit 716fced
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Powershell/Powershell.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Powershell

```powershell
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Expand Down Expand Up @@ -224,4 +225,5 @@ Remove-PSDrive -Name xyz # Delete a PSDrive
Get-Process | Group-Object -Property Name # Group objects by property name
Get-Process | Sort-Object -Property Id # Sort objects by a given property name
Get-Process | Where-Object -FilterScript { $PSItem.Name -match '^c' } # Filter objects based on a property matching a value
gps | where Name -match '^c' # Abbreviated form of the previous statement
gps | where Name -match '^c' # Abbreviated form of the previous statement
```

0 comments on commit 716fced

Please sign in to comment.