Run an app as admin without giving admin rights to the user or the any admin credentials?
Hello, We have an old app that needs to be run by an end user on a server. I googled it and got two results - neither of which ran the app as an admin - they ran it as a regular user. In powershell type set __COMPAT_LAYER=RUNASINVOKER && "C:\Path\To\YourApp.exe" (changed the path and executable) Or Create a batch file cmd /min /c "set __COMPAT_LAYER=RUNASINVOKER && start "" "%1"" run the exe from that bat. it is an old app that uses I think a db2 DB. When I run the app with admin rights it prompts for the user login, if I run the app without it opens the interface for the app but doesn't prompt for a username or PW or know where the database is and the app doesn't let you put that in. EDIT
…