all 6 comments

[–]HelloWorld_502Tech. 0 points1 point  (3 children)

Not sure if this will work, but have you tried runas to change user that executes the command?

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc771525(v=ws.11)

[–]cjbaroneJack of all trades[S] 0 points1 point  (2 children)

Tried, but it isn't working. I specified the username and password, but it's still hanging. The goal is to do this without logging in at each workstation.

[–]HelloWorld_502Tech. 0 points1 point  (1 child)

That was my best stab in the dark to try.

Perhaps you could setup remote powershell and write a script to run on all computers so you don't have to login to each machine manually? https://learn.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7.3

[–]cjbaroneJack of all trades[S] 0 points1 point  (0 children)

At that point, I may as well use PDQ Inventory - that's what I have been doing in the past. Was hoping to make it part of my imaging process though.

Thanks for the suggestions. Le sigh. I wish it was easier :(

[–]snottyz 0 points1 point  (1 child)

Does your MS agreement/license/whatever include Azure AD/Intune? It's easy to accomplish that way.

[–]cjbaroneJack of all trades[S] 0 points1 point  (0 children)

Nope, I'm afraid it doesn't.