[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Scheduled Tasks launching apps under svchost using rundll32.exe

Asked by ShineOn in Windows 2003 Server, Microsoft Windows Operating Systems, Access Coding/Macros

Tags: Windows Server 2003 R2, Scheduled Tasks, MS-Access, Rundll32

A curious issue has popped up on my Windows 2003 R2 SP2 server.  First some background:

There are many legacy MS-Access 2003 "applications" I must support.  These applications not only update databases, they also do file operations and other "automation" processes.

These applications are scheduled using the good-old Scheduled Tasks app.  The way the scheduled tasks are set up is using the link to MS-Access in the start menu. with the .MDB file for each app as an argument, as follows (with sensitive info using generic terms):

Run:  "C:\Documents And Settings\All Users\Start Menu\Programs\Microsoft Office\Microsoft Office Access 2003.lnk" M:\Automated\AccessApp1.mdb
Start In: "C:\Documents And Settings\All Users\ Start Menu\Programs\Microsoft Office"
Run As: <doman>\<user>

Note that the location of the MDB is on a mapped drive on another server.

Apparently it's necessary to have the scheduled task using the start menu link instead of the actual EXE file for some oddball reason I haven't had the time or energy to research.  This is the way they were when I inherited them.

That said, normally they will run in the foreground, and if you watch with Process Explorer, they'll be underneath the Windows Explorer instance where all the other foreground apps run.  

On rare occasions when someone not knowing better did not log in the server with the user ID so the foreground was established, the apps would try to run under svchost, but would get nowhere because they rely on mapped drives, which are unavailable if you don't have the desktop active, but that's not the case here.

This past weekend, every day, they all instantiated under svchost running under rundll32.exe, ran to completion, but left the task hanging there.  The server was logged in as normally, but this odd thing happened.  Nothing in the event logs indicate anything out of the ordinary.  All of the instances were still sitting there Monday, yet were complete.

The command line for the svchost rundll instances look like the following (from the "command line" field of Process Explorer):

RUNDLL32.EXE Shell32.dll, ShellExec_RunDLL ?0x400?"C:\Documents And Settings\All Users\Programs\Microsoft Office\Microsoft Office Access 2003.lnk" M:\Automated\AccessApp1.mdb

The Question: What might cause this to happen?
[+][-]05/19/08 04:46 PM, ID: 21602463Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/20/08 05:50 AM, ID: 21605615Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/20/08 09:27 AM, ID: 21607786Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/20/08 09:34 AM, ID: 21607863Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/26/08 09:45 PM, ID: 21649396Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/02/08 08:08 PM, ID: 21697325Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/03/08 05:23 AM, ID: 21699575Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/09/08 09:59 PM, ID: 21748585Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/29/08 07:09 PM, ID: 22117103Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Windows 2003 Server, Microsoft Windows Operating Systems, Access Coding/Macros
Tags: Windows Server 2003 R2, Scheduled Tasks, MS-Access, Rundll32
Sign Up Now!
Solution Provided By: ShineOn
Participating Experts: 3
Solution Grade: B
 
 
Loading Advertisement...
20091111-EE-VQP-89 / EE_QW_EXPERT_20070906