Can W2k3 service start a desktop app under current user?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Can W2k3 service start a desktop app under current user?

Post by gdyvig » Wed Jan 07, 2009 5:43 pm

We have a WINWORD macro that acts like a "server" on a w2k3 server. Our network people would like it to run as a Windows Interactive Service so they can stop/pause/restart it with their normal monitoring software. The winword macro displays 2 dialogs which a Macro Scheduler executable interacts. I setup both the winword and macro scheduler macroes to run as interactive services using srvany.exe as described in your blog instuctions.

Both interactive services run properly when the they are installed on a Windows XP machine, but not on our W2K server. On both machines the regedit entry in the CurrentControlSet for NOINTERACTIVESERVICES is set to 0, meaning interactive services are allowed. On the W2K3 machine the services start but cannot interact with the desktop. All my research indicates this is a bad thing to attempt because of security vulnerabilities and because the next MicroSoft patch could break the services.

Is there a way a Windows service can start a desktop application under the credentials of the currently logged on user where the desktop is already displayed?

Or can I do the reverse, have a Macro Scheduler executable on the desktop taking instructions for a non-interactive windows service?

Thanks,
Gale

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts