0

PowerShell Input Output Escapades

After using various types, architectures and generations of computers over the years there is always the habit of “you go to what you know!”  In other words once you figure out a solution to an issue, you then use that repeatedly in the future as you know the process/steps involved.  This adroitly describes me when it comes to doing certain command line tasks.  If I were being a bit… Read the rest “PowerShell Input Output Escapades”

0

How To Rename DAG Network Using PowerShell

Rename DAG Network

Quick post for a Friday!

A customer had an “interesting” issue where the DAG networks were not being displayed inside the Exchange Management Console.  The underlying reason is because the implemented firewalls between Exchange servers, and then restricted network traffic between Exchange and the DCs.  This is not a supported situation.  For details on the firewall restricting traffic aspect please… Read the rest “How To Rename DAG Network Using PowerShell”

1

Retrieving Packets Received Discarded Perfmon Counter From Multiple Servers

Whilst working on a customer’s Exchange 2010 DAG issue, I wrote a quick script to quickly grab some performance monitor counters from all of their Exchange servers.  The issue that we were investigating was related to discarded packets when the VM was running on a certain hypervisor host.  The customer had moved their Exchange VMs to a new host and after doing so they were experiencing cluster iss… Read the rest “Retrieving Packets Received Discarded Perfmon Counter From Multiple Servers”

0

PowerShell Pipeline Perversion

Every so often I see folks run into issues with scripts/one-liners that they obtained from a blog or crafted themselves.  One common issue is when they think the command is perfect and then when they go to dump the output to a file, the content is mince**

Imagine your surprise when you open up the output file expecting pristine data, and it starts with:

#TYPE Microsoft.PowerShell.Commands.Interna

Read the rest “PowerShell Pipeline Perversion”
1

Exchange Scripting Agent – The Power Of Script

Exchange Scripting Agent Integration

Exchange 2010 introduced a very interesting feature – the Scripting Agent.  The intent for this component is to provide extensibility to the base management tools and ensure consistency for the execution of cmdlets in the environment.  The feature is not enabled by default and you must manually enable it if you want to leverage the Scripting Agent.

If you are looking for a way to  set default optio… Read the rest “Exchange Scripting Agent – The Power Of Script”

0

Exchange 2013 Tip Of The Day – 76 To 93

The other Exchange 2013 tips of the day posts can be found here:

Exchange 2013 Tip Of The Day – 1   To 25

Exchange 2013 Tip Of The Day – 26 To 50

Exchange 2013 Tip Of The Day – 51 To 75

To obtain the listing below, the following command was used:

$Int = 76;While ($Int -le 100){Get-Tip $Int;  Write-Host; $Int+=1}

 

Tip of the day #76:

To get a list of all parameters available for a cmdlet, type:

(Get-… Read the rest “Exchange 2013 Tip Of The Day – 76 To 93”

0

Exchange 2013 Tip Of The Day – 51 To 75

The other Exchange 2013 tips of the day posts can be found here:

Exchange 2013 Tip Of The Day – 1   To 25

Exchange 2013 Tip Of The Day – 26 To 50

Exchange 2013 Tip of The Day – 76 To 93

 

To obtain the listing below, the following command was used:

$Int = 51;While ($Int -le 75){Get-Tip $Int;  Write-Host; $Int+=1}

 

 

Tip of the day #51:

Want to know what permissions an Active D… Read the rest “Exchange 2013 Tip Of The Day – 51 To 75”

0

Exchange 2013 Tip Of The Day – 26 To 50

The other Exchange 2013 tips of the day posts can be found here:

Exchange 2013 Tip Of The Day – 1   To 25

Exchange 2013 Tip Of The Day – 51 To 75

Exchange 2013 Tip of The Day – 76 To 93

To obtain the listing below, the following command was used:

$Int = 26;While ($Int -le 50){Get-Tip $Int;  Write-Host; $Int+=1}

 

Tip of the day #26:

Forget a property name? Not a problem because you can use wildcard charact… Read the rest “Exchange 2013 Tip Of The Day – 26 To 50”

0

Exchange 2013 Tip Of The Day – 1 To 25

The Exchange Management Shell helps us discover the amazing capabilities of PowerShell.  One way it does this is by displaying a tip of the day so that we are introduced to concepts and topics that inevitably will come in handy one day!

The other Exchange 2013 tips of the day posts can be found here:

Exchange 2013 Tip Of The Day – 26 To 50

Exchange 2013 Tip Of The Day – 51 To 75

Exchange 2013 Tip of TRead the rest “Exchange 2013 Tip Of The Day – 1 To 25”

3

Exchange PowerShell Filtering Examples

When writing Exchange PowerShell scripts it is very useful to target specific machines to either query or set their properties.  Thus the ability to generate a query that effectively targets the correct machines is a very good thing to have!

The reason I'm posting this is that I see a lot of people manually specify a list of servers, and then iterate through the list which typically looks like this:… Read the rest “Exchange PowerShell Filtering Examples”