Category: Scripting

Azure, Powershell

Missing required metadata properties error when running New-OnPremiseHybridWorker

Hey folks.  Just a quick post around an into an issue today whilst having a play with Azure Automation.  One of the capabilities of Azure Automation is the ability to configure the Hybrid Runbook Worker feature. This allows you to configure Azure Automation with your on premise infrastructure which is pretty cool. One of the …

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           …