1) Setup to run via platform scripts (Intune > Devices > Windows > Scripts and Remediations > Platform scripts 2) Run this script using the logged on credentails > no 3) Enforce script signature check > no 4) Run script in 64 bit PowerShell Host > yes