Zero Hour Sleep
27Apr/102

Exclude hidden mailboxes from a Dynamic Distribution Group

Another interesting finding I made thanks to an Expert Exchange question I was involved with.

The question sounded pretty simply

I can create new dynamic distribution groups using powershell and the Exchange Console, but I cannot figure out how to filter the hidden mailboxes so they are not added.

I logically started by trying to use the msExchHideFromAddressLists attribute trying to get the list of mailboxes where it is set to false using the following powershell script to create the Dynamic Distribution List

New-DynamicDistributionGroup -Name "test" -OrganizationalUnit 'mydomain/Distribution Groups' -RecipientContainer mydomain -RecipientFilter { recipienttype -eq 'usermailbox' -and HiddenfromAddresslistsEnabled -eq $false}

But I was surprised to noticed it didn't work! It was actually returning only mailboxes the ones hidden from the address lists. There was something wrong in my OPATH query but wasn't able to find out what up front...

To double check I was not missing something I tried creating another DDG with the same command as above just with HiddenfromAddresslistsEnabled -eq $true and both groups where giving exactly the same results! Here is the full powershell command I used to create test1

New-DynamicDistributionGroup -Name "test1" -OrganizationalUnit 'mydomain/Distribution Groups' -RecipientContainer mydomain -RecipientFilter { recipienttype -eq 'usermailbox' -and HiddenfromAddresslistsEnabled -eq $true}

That was pretty weird !

20Apr/100

Exchange 2010 mmc fails with “An error caused a change in the current set of domain controllers” after demotion of a Domain Controller

After demoting one of your Domain Controllers you might be faced with the following error when using the Exchange 2010 Management Console.

An error caused a change in the current set of domain controllers

This error might appear at different places in you Exchange 2010 Management Console and under different error messages that all have the sentence above in common. However using the Exchange Management Shell works flawlessly.

As weird as it might sound manually specifying a Domain Controller for the Exchange Server to use did not solve the problem, however during my troubleshooting I tried to log on as another user and the error was miraculously gone.

14Apr/104

How to run Exchange .ps1 script as scheduled task

There are many reasons why one would like to run an Exchange powershell .ps1 script as a scheduled task.

In this post I will share with you how to achieve this on both Microsoft Exchange 2007 and Exchange 2010.

Obviously you should start by creating your .ps1 script for this article we will assume the script location is c:\pcs\YourScript.ps1

7Apr/100

ISA/TMG installation fails with Unable to Connect to configuration Storage Server

While installing ISA or TMG Enterprise Edition the installation might fail with the following error

Setup failed to connect to the specified configuration storage server computer. This may be because the local computer needs to be added to the Replicate configuration storage server computer set. Error code = 0x8007203a

On TMG the error will look like this

2Apr/109

You get “Iashlpr initialization failed” error after installing DHCP on Windows 2008R2

After installing DHCP server on windows 2008 R2, you notice that your system event log will be filled with Errors Event ID: 1070 “Iashlpr initialization failed: The DHCP service was unable to access path specified for the audit log. So DHCP server cannot talk to NPS server. It could be that IAS service is not started.”

Event ID: 1070
Source: DHCP-Server

Iashlpr initialization failed: The DHCP service was unable to access path specified for the audit log. So DHCP server cannot talk to NPS server

At first I have ignored this error since it wasn’t affecting my DHCP Server behavior, everything was working fine, and clients were obtaining proper IP addresses and network settings.
Until I had to configure WPAD entry in order to enable TMG Firewall Client to automatically detect the TMG server. TMG clients were failing to automatically detect the TMG Server, I start troubleshooting the issue, I tried everything add/remove the WPAD entry, changing the WPAD value, etc… but all my trials were unsuccessful.