How can I run scheduled tasks in the background when they run as the currently logged-on user?

A. Scheduled tasks usually run under the SYSTEM context and run in the background. However, if you change a service to run as a user account and that account is currently logged on to the machine, the scheduled task will run in the foreground. To change this behavior, perform the following steps:

  1. Start a registry editor (e.g., regedit.exe).
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.
  3. Double-click Shell (which is explorer.exe).
  4. Modify this value to '<c:\windows>\Explorer.exe,' (don't type the quotes but do type the comma) where <c:\windows> is your local machine's system root.
  5. Click OK.

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering System Center 2012

During over 6 hours of training you can join John Savill from your computer as he will walk you through the key components and capabilities of System Center 2012, what’s involved in using the components, and the benefit they can bring to your environment.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.