I need some help on using the best way to do something.
I’m working on a script. The script will be launched using a non admin user. The script will run some cmdlets (Microsoft Configuration Manager). I need to run them using another user. What would be the best solution to do it? The CM cmdlets don’t provide the option to specify the user to use. From what I read, using invoke-command is not possible neither since it require to provide another computername and localhost won’t work.
Thanks for your help