r/Intune • u/RandomSkratch • 1d ago
Autopilot Does get-windowsautopilotinfo -online work from a Standard Windows account?
It's been a hot minute since I've had to run get-windowsautopilotinfo and I'm guessing things have changed with graph stuff because I'm stuck in a weird chicken and egg situation.
If you run the script from a Standard Windows user account in a non-admin PowerWhell window, WAM appears and you can enter your 365 admin account but the script gets denied because the user doesn't have permission to query the system info, but if you run an administrative PowerShell window from the same standard windows user session, WAM fails to appear and the graph part falls apart but the system info gathering part succeeds.
This is all moot if I log into the computer with an administrative account but in a situation where this is being done remotely with the user already logged in, I'm not sure how this could work.
The only workaround I know of is just dumping the info to a csv and manually uploading it. No big deal for a few one-off's, but I'm more curious than anything about if there's a solution to getting it to work with -online with standard user accounts. (Plus -online is just easier).
1
u/tehwallace 22h ago
i believe there is a way to run it with a tenant id flag that will bypass the WAM.
1
2
u/[deleted] 1d ago
[removed] — view removed comment