MSEndpointMgr / IntuneWin32App

Provides a set of functions to manage all aspects of Win32 apps in Microsoft Intune.
MIT License
340 stars 88 forks source link

Cannot use same group in different Intent types when creating AppAssignment #140

Open crcobb opened 7 months ago

crcobb commented 7 months ago

If you want to add the same Group to different intents for an application you receive a warning that a win32 app assignment exists. Looking at the code the intent isn't taken into account when testing the group. Add-IntuneWin32AppAssignmentGroup -ID $Win32App -Include -GroupID $GroupID -Intent required -Verbose -Notification showReboot Add-IntuneWin32AppAssignmentAllUsers -ID $WIn32App -Intent uninstall -Notification showReboot -Verbose Add-IntuneWin32AppAssignmentGroup -ID $Win32App -Exclude -GroupID $GroupID -Intent uninstall -Verbose

NickolajA commented 6 months ago

Forgive me if I don't recall the specific resulting scenario here, but setting the same group as required and available, I think that's essentially just evaluated as required by Intune. It's been some time since I tested that, so my memory may betray me here.

MichaelGerman commented 5 months ago

I already opend the issue #85 regarding this case