Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Using variables in new-addresslist -recipientfilter

$
0
0

Hi everyone

I have setup Exchange for using in multitenancy mode. Now I am trying to automate the creation of new tenants using a script.

My Problem is the following command:
New-AddressList -Name MyList -RecipientFilter {((CustomAttribute1 -eq $OU) -and (ObjectClass -eq 'User'))}

Where $OU is a variable which contains the company name, but that doesn't work. I also tried '$OU' instead, no success.
Is there a way to use variables within the -RecipientFilter?

Regards
Peter


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>