Recommended for enterprise. Deploy via Microsoft Intune using a custom OMA-URI policy.
| Field | Value |
|---|---|
| Name | AssignedAccess Configuration |
| OMA-URI | ./Vendor/MSFT/AssignedAccess/Configuration |
| Data type | String |
| Value | (Paste your XML) |
For standalone devices or testing. Must be run as SYSTEM context.
Download the script using the Download Deploy Script button, then run:
psexec -i -s powershell.exe -ExecutionPolicy Bypass -File "C:\path\to\Apply-AssignedAccess.ps1"
Run in SYSTEM context (via psexec -i -s powershell.exe):
$xml = Get-Content -Path "C:\path\to\config.xml" -Raw
$bridge = Get-CimInstance -Namespace "root\cimv2\mdm\dmmap" -ClassName "MDM_AssignedAccess"
Set-CimInstance -CimInstance $bridge -Property @{Configuration = $xml}
For bulk deployment during OOBE or to existing devices.