Category: Scripting

Powershell

Managing Exchange Administrators with Powershell

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 …

Powershell

Retrieve information about an Exchange 2007 Server

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 …

Scripting

IP Information Powershell script

If you want an easy Powershell script to recieve IP Information for some workstations then this nice and simple powershell script should work nicely. It takes input from a file containing a list of the hosts and displays it in a nice output format $ComputerName = @{l="ComputerName";e={$_.__Server}} get-wmiobject -query "Select * FROM Win32_NetworkAdapterConfiguration WHERE IpEnabled=’TRUE’" …