PS script for setting users to their respective Intune devices as Primary users
Question
Hi All,
Can someone please help with a PS script for setting users to their respective Intune devices as Primary users? By default, we have a few Intune machines with Null Primary users, and we wanted to fill it with Primary users by importing from the CSV file.
Posted by Shiva Gopinath Manam in HTMD FB Group
Answers ( 3 )
Replied by Ludo Robben
Have a nice day, guys.
Replied by Shiva Gopinath Manam
Ludo Robben Yesterday, I Tried this, but my requirement is to update the Primary User entity from Null Value to some user. Tried modifying the CSV file, but no luck. But yes, it really made some progress.
Replied by Kannan Natarajan Sai Balaji
Shiva Gopinath Manam, What are you stuck with?
Replied by Adam Brown
I am also trying to do this, I was hoping to have a remediation script that could run each hour and update the primary user based on who was logged in at the time. But no luck so far
Replied by VS KR
Hi Gopi
Even though I’m looking for some script to change the primary user,
Please let me know if you get any answers
Replied by Chris Armstrong
It would be nice to automate something like this.
Replied by Liam Baker
Chat GPT
Replied by Shiva Gopinath Manam
Liam Baker already tried, thanks
Replied by Kannan Natarajan Sai Balaji
Liam Baker chapGPT sucks for any tool based scripting and many a times it invents its own Powershell commands and you end up trying to fix that non-existing cmdlets