Archive for the ‘Scripting’ Category

Retrieve a list of all powershell cmdlets

Posted: 9th January 2010 by neil in Powershell, Scripting

If you want a list of all powershell cmdlets run this command. I have exported it to a text file   Get-Command | Format-List

Powershell alias

Posted: 9th January 2010 by neil in Scripting

CommandType     Name                                                Definition ———–     —-                                                ———- Alias           %                                                   ForEach-Object Alias           ?                                                   Where-Object Alias           ac                                                  Add-Content Alias           asnp                                                Add-PSSnapIn Alias           cat                                                 Get-Content Alias           cd                                                  Set-Location Alias           chdir                                               Set-Location Alias           clc                                                 Clear-Content Alias           clear                                               Clear-Host Alias           clhy                                                Clear-History Alias           cli                                                 Clear-Item Alias           clp                                                 Clear-ItemProperty Alias           cls                                                 Clear-Host Alias           clv                                                 Clear-Variable Alias           compare                                             Compare-Object Alias           copy                                                Copy-Item Alias           [...]

To view Exchange Administrators with powershell we can use the get-exchangeadministrator commandlet. This will tell me the current exchange administrator groups in the domain. Example below is: [PS] C:\Windows\system32>get-exchangeadministrator | format-list Identity : EXCHANGELAB.LOCAL/Users/Administrator Scope    : Organization wide Role     : OrgAdmin Identity : EXCHANGELAB.LOCAL/Microsoft Exchange Security Groups/Exchange Organi            zation Administrators Scope    : Organization wide [...]