Category: Scripting

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 …

Scripting

Powershell alias

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           …

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 …