VMware User Environment Manager Condition Logic
One of my customers is using UEM and wants to set up a default printer per user group, but only set that default printer if the user hasn't already got one configured. Setting up a default printer as a User Environment policy is trivial, but the conditions to preserve existing settings were interesting. We determined that, if the current default printer contains either the words "Microsoft" or "Webex", then we'd consider it to be unset and would correct it, otherwise we'd leave it alone. Of course, we also need to detect that the computer is in the correct room group, too, so what's that logic look like? I wrote it out in PowerShell style pseudo-code like this: If ((DefaultPrinter -match "Microsoft" -or DefaultPrinter -match "WebEx") -and ComputerGroup -eq "RoomA"){Set Default Printer}. My first challenge came from the fact that, while UEM Conditions do offer logical AND and OR, they do not offer parenthesis. Wh