I have a Powershell script that opens another program and my overall goal is to run these under a currentuser account, rather than a system account. For now I have the following.
The below works well however, it opens a “user account control” popup which I’m trying to avoid. Any suggestions would be greatly appreciated.
The only options I’ve found that both execute as the user, and run elevated, require you to supply the user’s password.
It is possible to run as LocalSystem, elevated, while providing an interface to the logged-on user; this is dangerous from a security perspective because a graphical installer might provide a way for the user to elevate their privilege, so that should be used with care.