Category: Powershell

Powershell, Scripting

Learn PowerShell in a month of Lunches–Chapter 3 answers

1 Can you find any cmdlets capable of converting other cmdlets’ output into HTML? ConvertTo-Html 2 Are there any cmdlets that can redirect output into a file, or to a printer? Out-File  & Out-Printer 3 How many cmdlets are available for working with processes? Get-Process                       Cmdlet    Gets the processes that are running on the local …

Powershell, Scripting

Get-Hotfix–Retrieve hotfix information using Powershell

Recently I wanted to verify that I had a certain hotfix installed on my server. I thought i could see if there was a nice and easy way in Powershell to do this and there was. The cmdlet get-hotfix will retrieve the information you need. PS C:\Users\Administrator> Get-HotFix Source        Description      HotFixID      InstalledBy          InstalledOn ——        ———–      …

Powershell

Test user ‘extest_b648a1a700f64’ isn’t accessible when running test-owaconnectivity

I was recently playing about in Exchange 2010 in preparation for my exam in a few days time and I noticed i was getting an error when i ran the test-owaconnectivity commandlet. I error message i was recieving was: WARNING: Test user ‘extest_b648a1a700f64’ isn’t accessible, so this cmdlet won’t be able to test Client Access …

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 …