Archive for the ‘Powershell’ Category

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 [...]

If you want to retrieve information about an exchange server you can use the GET-EXCHANGESERVER commandlet. This will retrieve information like the computer name, OU location, site name etc etc. The syntax of the command is: SYNTAX     Get-ExchangeServer [-Identity <ServerIdParameter>] [-DomainController <Fqdn     >] [-Status <SwitchParameter>] [<CommonParameters>]     Get-ExchangeServer -Domain <Fqdn> [-DomainController <Fqdn>] [-Status [...]

Retrieve time zone information through Powershell

Posted: 27th November 2009 by neil in Powershell

For this we can use get-wmiobject to query WMI: get-wmiobject -class win32_timezone | format-list Bias      : 0 SettingID : Caption   : (GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London