Showing posts with label microsoft. Show all posts
Showing posts with label microsoft. Show all posts

08 February 2024

Wildcards cannot be used as the first character. - Filtering Dynamic Distro Groups by domain

 Ran into this annoying one.


The client asked me to create dynamic distribution groups and filter by domain. They have several companies under their umbrella.


So I created the first group. We'll call it SamusDental. 



$filter = "(WindowsLiveID -eq '*@samusdental.com')"


$get-recipient -identity "All Users - SamusDental" -RecipientFilter $filter



Name RecipientType
Annie.Lemon UserMailbox
Marcus.Lime UserMailbox
Stephanie.Cherry UserMailbox
JoAnne.Orange UserMailbox

Good.. Results. Let's set that as the DDG.



set-dynamicdistributiongroup -identity "All Users - SamusDental" -recipientfilter $filter



Write-ErrorMessage : |Microsoft.Exchange.Management.Tasks.RecipientTaskException|Wildcards cannot be used as the first character. Please revise the filter criteria.



Wut.. But it just worked in the get-recipient..


So I ran it several more times, testing @*samusdental.com.. no. *samusdental.com.. no. @samusdental.com.. no.


Nothing worked. If I set up the filter without the wildcard, no results were pulled, but if I set it up WITH the wildcard, and it pulled results, the set-ddg would not take the filter.


Finally found the solution:



$filter = "(RecipientTypeDetails -eq 'UserMailbox') -and (WindowsLiveID -eq '*@samusdental.com')"



For some reason having the RecipientTypeDetails property first, and then the wildcard on the domain second, worked fine.


Thanks, Microsoft.

Read more...

20 September 2019

Hey, Microsoft! When did you move to Texas?

I don't know about you, but it annoys me that when Microsoft replaces a piece of software with a different piece of software, they make it BIGGER.

The two most recent examples I have are the snipping tool, and the switch from Skype to Teams.



That is each block minimized to their smallest window size. The New Snip & Sketch is twice as large. Then we look at Skype v. Teams.



that is the smallest the teams window will go. i don't know about skype, because it's no longer on my pc, but that skype window above is about right. pretty sure i can make it smaller. Anyway, there it is. almost twice as large. 

Hey, Microsoft. I love your stuff, but not everything has to be sized for a tablet.

Thanks,

Soulie

Read more...

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP