Hello,
we try to create new management scopes with
New-ManagementScope -Name domain.com -RecipientRestrictionFilter {(CustomAttribute6 -eq 'domain.com')}
If we want to use a variable instead of domain.com
New-ManagementScope -Name $domainname -RecipientRestrictionFilter {(CustomAttribute6 -eq '$domainname')}
The variable in the statement '$domainname' is not expanded.
Does anyone have a clue?
Thanks,
Thomas