run the exe as another user?

Topics: Archive - General
Jan 9, 2015 at 6:31 PM
can this be done? say i would like to copy the content of the toolkit to a location is it possible to run this as a specific user?
Jan 12, 2015 at 1:47 AM
There is a function in the latest beta version of the toolkit which uses scheduled tasks to run an exe as another user. Check that out. You can also use this function which uses token stealing to run an exe as another user:
Jan 12, 2015 at 5:54 PM
thanks it is funny I decided to use the scheduled task approach before reading your reply. I was able to import a scheduled task and run the powershell app toolkit with my functions in it beautifully thru sccm. I did find one issue however. It seems if a user is not part of the administrator group my scheduled task does not get run. Anyone run across this or have any suggestions? We have pretty tight policies so I cannot store passwords either it seems.
Jan 13, 2015 at 8:11 AM
Yeah, it will only work for local admins if you need to do anything that requires admin rights.