Automatically run a program as administrator on limited user's desktop

entryman

New member
Local time
9:52 PM
Messages
19
I am using Windows 7 x64. I have several programs I would like to start automatically with administrator privileges on a limited user desktop. In task scheduler I can schedule a start as administrator at each logon of the limited user. The problem is when I do this it starts in session 0. In other words, the GUI of the program is not on the user's desktop.

I can change the task scheduler entry to use Sysinternals' psexec -i -h options to put the program on whatever user account is using the console desktop, which happens to be my limited user. However I am concerned this could be exploited. For example, if the limited user logs on remotely task scheduler will still run psexec which will still put the administrator process on the console desktop. Should another user be logged in they would have administrator privileges (I think).

psexec allows one to specify the session number via -i but does not have a way to say start in xxx user's session.

Does anyone know what I'm talking about or a way to solve the problem? Thanks
 

My Computer My Computer

OS
Windows 7 Ultimate x64

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top