I have a powershell instance that has admin rights.
In it I run the following command:
start-process MyProgram.exe
Powershell then tries to run MyProgram with admin privileges (because Powershell has them itself). I don't want this to happen, I want MyProgram to not have admin rights, as if I ran this command in a PowerShell instance without admin rights. How can I accomplish this?
Duplicate with How to run exe with/without elevated privileges from PowerShell
However, I wasn't able to find a solution over there which uses the start-process
commandlet, which makes it more difficult / impossible to open a file with an .exe as start-process MyProgram.exe -file MyFile.txt
would do.