Quick Powershell ShortCut

Shortcut
If you are using the where command
Get-Mailbox * | Where-Object {$_.EmailAddress -like "*something.com"}
you can use a question mark
Get-Mailbox * | ? {$_.EmailAddress -like "*something.com"}

Some others I often use:

    Format-List = FL
    Format-Table = FT
    Get-Item = gi
    Export-CSV = epcsv
    Import-PSSession = ipsn
    Add-PsSnapIn = asnp

More detailed list here: https://ss64.com/ps/

Bookmark the permalink.

Comments are closed.