Just a tip if you have large Exchange environment and Get-VirtualDirectory cmdlets take a long time.
You can follow KB2896472 and use the AdPropertiesOnly switch with the cmdlet which returs the virtual directory properties that are stored in Active Directory Domain Services and not in the Internet Information Services (IIS) metabase.
It works really nice.
[PS] C:\>Measure-Command -Expression {Get-WebServicesVirtualDirectory} | ft -a Milliseconds Milliseconds ------------ 264 [PS] C:\>Measure-Command -Expression {Get-WebServicesVirtualDirectory -ADPropertiesOnly} | ft -a Milliseconds Milliseconds ------------ 74
Advertisements