Forum Discussion
kcelmer
Apr 15, 2025Brass Contributor
Get-MgDeviceAppManagementManagedAppPolicy -ManagedAppPolicyID. How to get the ID?
Hello! I am trying to copy an Intune App Protection Policy so I can edit it and apply it to a different group of users. I've cobbled together the below script from other examples but it doesn't wor...
Ahmed_Masoud97
Apr 15, 2025Iron Contributor
Managed Policy ID you can find it when you go to the policy it self then in Overview> check the URL you will find the policy ID.
Best,
Ahmed Masoud
- kcelmerApr 15, 2025Brass Contributor
Thank you! Found it. Unfortunately it now errors out on Line 7 with
"New-MgDeviceAppManagementMobileAppConfiguration: C:\Users\kcelmer\OneDrive - National Resident Matching Program\Documents\PowerShell Scripts\Copy Intune App Protection Policy.ps1:7:49
Line |
7 | New-MgDeviceAppManagementMobileAppConfiguration -Data $newPolicy
| ~~~~~
| A parameter cannot be found that matches parameter name 'Data'."Apparently -Data is not a valid parameter. AI generated scripts....