@Allan Stark, Thanks for posting in Q&A. From your description, I know the user can run the script manually successfully. For the user in the script, could you let us know if this is a local user or an Azure AD user?
For the map, it will map on current logging user. So I think we need to choose log on credential and assign it to the user group when deploy it via Intune.
As it seems not working, please check the following information:
- Please check what is the status of the device in the PowerShell script deployment. And see what is the user shows in the portal?
- Please look into Agentexecution log to see if there's any error.
- Follow the steps in the following link to do troubleshooting to see if there's more finding.
Note: Non-Microsoft link, just for the reference.
Hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.