Re: WinSCP launched by script running as admin, but should not run as admin: "RunAsInvoker" not working?
I do not think that
What it does is that when the app is marked to request Administrator privileges on start, it does not grant them.
But it does not relinquish Administrator privileges if the calling process already has them.
And WinSCP is not marked to request Administrator privileges anyway.
This is not really a WinSCP question, but possible solutions are (in general):
RunAsInvoker
does what you want.
What it does is that when the app is marked to request Administrator privileges on start, it does not grant them.
But it does not relinquish Administrator privileges if the calling process already has them.
And WinSCP is not marked to request Administrator privileges anyway.
This is not really a WinSCP question, but possible solutions are (in general):
- If the intended account does not have administrator privileges, explicitly run WinSCP with that account:
runas /user:StandardUsername "WinSCP.exe"
- Run WinSCP via ad hoc temporary task scheduler task without Administrator privileges.
- Run WinSCP via
explorer
process:explorer WinSCP.exe