. . In the left pane, click Devices and then click All Devices. In addition, if youre running a script with credentials, you can insert the current logged username and domain in Credential variable (which will leave you to input only the password) for usage during whole script. . . Changing the primary user is currently not possible on co-managed devices. appearing without any Scope Tag) based on the Domain portion of the SMTP Address taken from the devices associated users UPN (User Principal Name) who enrolled the device. . The script I use is only for automating the creation of active directory user accounts. Which can be helpful in domain environment. If you click on Change Primary User all that is left to do is select the new Primary User and click on Select. yahoo. 2. nl -AddLicenses "myintunecloudINTUNEA". Thanks, Dilan. Get-IntuneManagedDevice.