Sample_Assign.ps1
Remove-Module -Name IntuneWin32App -Force # Import module Import-Module -Name F:\GoogleDrive\Scripts\PowerShell\Intune\Modules\IntuneWin32App\IntuneWin32App.psd1 # Get a specific Win32 app by it's display name $Win32App = Get-IntuneWin32App -TenantName "configmgrse.onmicrosoft.com" -DisplayName "7-zip" -Verbose # Add assignment for a specific Azure AD group $GroupID = "4d8fc014-8584-42a7-9f98-8a20803f6370" Add-IntuneWin32AppAssignment -TenantName "configmgrse.onmicrosoft.com" -DisplayName $Win32App.displayName -Target "Group" -GroupID $GroupID -Intent "available" -Notification "showAll" -Verbose Add-IntuneWin32AppAssignment -TenantName "configmgrse.onmicrosoft.com" -DisplayName $Win32App.displayName -Target "AllUsers" -Intent "available" -Notification "showAll" -Verbose |