Powershell Studio , 4.2.99
64 bit
Operating system: windows 8.1
32 or 64 bit OS: 64bit
I am trying to compile a script so that it runs elevated. It works with a service on the computers. If I don't provide alternate credentials and run the executable as an administrator it work. If I provide alternate credentials, provide credentials of an administrator account I get an error - The requested operation require elevation.
Any Ideas on how I get the script to run elevated with alternate credentials?
Thanks
Run exeutable as elevatd
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Run exeutable as elevatd
In order to run the elevated executable with alternate credentials you will need to use a startup executable that requires elevation (use elevation manifest) that simply runs the packager.exe (that contains the alternate credentials). Unfortunately this is restriction imposed by Windows' split token security in Windows 8.1 and up. It prevents an unprivileged user from switching users and providing elevating in one step.
David
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.