0

How To Get Azure VM IP Addresses Using PowerShell

Curious as to what IPs are used by your Azure VMs?  This may seem a simple question, but it was not until last year that Azure allowed you to set static IPs on VMs.  Prior to this it was a first come first served basis.  The net result was that you powered VMs on in a set order to preserve the IP assignment scheme that you wanted.

The first usable IP address on the Azure VM subnet is the .4 address… Read the rest “How To Get Azure VM IP Addresses Using PowerShell”

0

Which Azure Disk Is Not Attached

Over time a typical Azure subscription will create, delete and manage multiple virtual machines.  When removing an Azure VM there is the option to retain the disk.

In a large environment with lots of disks and VMs, how can we easily see what disks are not currently in use?

 

Azure Portal

The portal can show the disks that are attached and not attached.

Azure - Using Portal To See Which Disks Are Not Attached or In Use

This is good for a few disks, though if … Read the rest “Which Azure Disk Is Not Attached”

0

Retrieving Packets Received Discarded Perfmon Counter From Multiple Servers–Updated February 2015

On the Retrieving Packets Received Discarded Perfmon Counter From Multiple Servers post, Tim commented that he had found the script very useful when troubleshooting discarded packets on Exchange 2013 DAG servers.  Using PowerShell  it is very easy to extend the search to discover which other servers are impacted by the packets received discarded issue. 

Since the initial version of t… Read the rest “Retrieving Packets Received Discarded Perfmon Counter From Multiple Servers–Updated February 2015”

0

PowerShell – CannotConvertArgumentNoMessage Where Object Error

PowerShell – CannotConvertArgumentNoMessage

This is an interesting tale from a customer who was trying to get a list of Outlook clients that were connecting to their Exchange 2010 servers.  They wanted to validate the Outlook versions that were connecting, due to Exchange 2013 requirements and also that Outlook 2010 must have SP2 installed at this time.

A quick search of the interwebs turned up a script, and they though all was golden at tha… Read the rest “PowerShell – CannotConvertArgumentNoMessage Where Object Error”

0

PowerShell Quotes – To Expand Or Not Expand, That Is The Question

Abraham Lincoln made the famous quote that it is impossible to verify the accuracy of information on the Internet.  Well, OK he didn't but it was a semi-funny intro on the subject  of quotes…..

There are two different types quotes that we can use in PowerShell.:

  • Single quotes  -->     ‘
  • Double quotes –>      &ldq
Read the rest “PowerShell Quotes – To Expand Or Not Expand, That Is The Question”
0

Remove Multiple Management Role Entries In Office 365

Exchange Online in Office 365 has a very similar RBAC implementation to the on-premises installations of Exchange.  After previously bumping to an issue with Exchange Online (EXO), and then twice again in the last fortnight this bubbled to the top of the publishing pile.

In this environment, a custom Management Role was created called Level1-HelpDesk.  This is a copy from the Mail Recipients built-… Read the rest “Remove Multiple Management Role Entries In Office 365”

1

Using Exchange PowerShell Remoting With Integrated Scripting Environment–ISE

One item that is very prevalent is people directly loading the Exchange PowerShell snapin into the Integrated Scripting Environment (ISE).  This is not supported from the Exchange point of view, as Exchange requires that Remote PowerShell  be used with Exchange 2010 and 2013.

Let’s look at how this should be done.

 

Choosing The Correct Profile

As discussed in the previous post on Read the rest “Using Exchange PowerShell Remoting With Integrated Scripting Environment–ISE”

0

Creating PowerShell Profile For Integrated Scripting Environment – ISE

PowerShell Profile For Integrated Scripting Environment

In this post we will look at some of the mechanics behind creating a profile file which will customise the start-up behaviour of the Integrated Scripting Environment (ISE).  This will also serve as a precursor to additional posts on tweaking ISE for Exchange purposes.  The catalyst for writing this was twofold.  Firstly, an administrator was having issues trying to get ISE to process a profile scr… Read the rest “Creating PowerShell Profile For Integrated Scripting Environment – ISE”

1

PowerShell Script To Get Exchange 2010 Active CAS Connections

Purpose of this script is to report on  particular performance monitor counters for Outlook RPC Client Access, OWA and Exchange ActiveSync on multiple servers.  This was required as during the course of the year there have been a few issues where the third party load balancer device was not really doing equitable load balancing.  In some cases 60% of the user load of 50,000 mailboxes was directed … Read the rest “PowerShell Script To Get Exchange 2010 Active CAS Connections”

1

Set AdminSessionADSettings ViewEntireForest To True By Default

In Exchange 2010 the Set-AdServerSettings  cmdlet is used to manage the AD environment in the current Exchange Management Shell (EMS) session.  In Exchange 2007 there was a variable called AdminSessionADSettings  for the same purpose.  Exchange admins normally use the Set-AdServerSettings cmdlet to change a session’s view scope, so that they can see objects in multip… Read the rest “Set AdminSessionADSettings ViewEntireForest To True By Default”