Task Scheduler wont run when set to "Run whether user is logged on or not"

Hi
I have two 2008 R2 servers with the same task and pretty much the same powershell script the schedule is running.  The powershell just runs a daily snapshot of the server.  One server it runs fine with  "Run whether user is logged on
or not" selected.  But when selected on the second server it won't run.  I mean, the schedule says its run, but the poweshell doesn't launch and do its job.  Everything is the same on each server apart from what is being snapshotted. 
Even the location of where the snapshot is going is the same.  Same domain account, same password.  When I change it to "Run only....." it runs fine.  But the server may not be logged in all the time, so I need it to run whatever.
Any help would be greatly appreciated.
Thanks
Matt 

I'd check in the windows system and application event logs. Also check the task log.
Event Viewer\Applications\Microsoft\Windows\TaskScheduler\Operational
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Similar Messages

  • [Forum FAQ] Group Policy Preferences Scheduled Tasks Item not working when the option Run whether user is logged on or not is selected

    Scenario:
    We use one of the following Group Policy Preferences Scheduled Tasks item to deploy a task to clients:
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    Computer Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Scheduled Task (At least Windows 7)
    User Configuration -> Control Panel Settings -> Scheduled Tasks -> New -> Immediate Task (At least Windows 7)
    (Note that on some platforms, "At least Windows 7" is replaced with "Windows Vista and later.")
    After designating a user account to run the task, we select “Run whether user is logged on or not” option, and “The Do not store password…”
    check box is automatically grayed out (See Figure 1).
    Figure 1
    After finishing configuring the task item, on a client, we run command
    gpupdate/force to forcefully update group policy. However, on the client, when we check if the task is listed in Task Scheduler snap-in, the task is not displayed, and when we run
    gpresult/h report.html to collect group policy result for troubleshooting, we see an error as similar as shown in the following figure (Figure 2).
    Figure 2
    Cause:
    To make the scheduled task run whether the user is logged on or not, we need to store the password of the designated user account. However, for the content of the scheduled
    task item is stored in Sysvol where it’s not safe to store passwords, this function has been deprecated.
    Workaround:
    We can run the task with system account
    NT Authority\System, or we can use specific user accounts to run the task when the given user is logged on. (See Figure 3)
    Figure 3
    Reference:
    MS14-025: Vulnerability in Group Policy Preferences could allow elevation of privilege: May 13, 2014
    http://support.microsoft.com/kb/2962486
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hello Everyone,
    Succeeded !!!!!!!
    Even i was struggling with this same Problem to execute a batch via Window scheduler and set the setting to "Run whether the user is logged in or not".
    I tried many time but the batch runs with " Run
    whether user is logged on" and not with "Run
    whether user is logged on or not".
    what i discovered is that there was one mapped drive
    path in my batch file which was not the complete path like y:/AR.qvw actually what i did i changed that map path to the complete path like \\servnamename\d$\AR.qvw and the batch executed successfully with the setting "Run
    whether user is logged on or not"
    The
    conclusion is that check the dependency of the script on external resources because when you check this option "Run
    whether user is logged on or not" It actually conflicts. This my discovery.
    If
    you have any question write me on [email protected]
    Thanks
    & Regards,
    Arun

  • Task Scheduler Security Option - Run if user is logged in or not

    using Windows Server 208 R2 Terminal Server - Running .NET 4.0 programs
    We are running .NET 4.0 Windows Forms programs using Task Scheduler with the Security Option - Run whether user is logged in or not.
    When the Task Scheduler starts these jobs they either not not run or they fail.
    Questions:
    1. What shell is used by Task Scheduler with the setting "run whether user is logged in or not" ?
    2. Is there some way to detect this shell or environment in a .NET program?
    I am trying to determine if I can modify the .NET programs so they will run in this shell with no errors.
    Thank you
    MisterT99

    Hi Mister,
    In addition, Since you need to launch a GUI application through Task Scheduler, so this task also need to run interactively.
    However, if the item "Run whether user is logged on or not" is selected, tasks will not run interactively, so we need to select the "Run only when user is logged".
    I recommend you can change the item "Change user or group" in security option and add a group, which will make sure your application will run interactively for all users in the group when the users logon.
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Task Scheduler - Bad login when using the correct password

    Greetings,
    I have been working an issue with Task Scheduler for a while now. I have done the forum rumble as well and looked at most if not all the posts to no avail. So here is my setup is on Server 2008 R2 SP1:
    I have a service accounts, we are looking to automate a basic file compile of data then a file copy. Nothing fancy however it is nothing I can share. I have all unc paths in the file so there is no odd drive latter mapping going on. The BAT file executes
    without issue from a cmd prompt without issue nor error.
    When I put it into Task Scheduler however things do not go so well. I have checked permissions: the account is a local admin to the system, it has the right to logon as a batch and service as well as create global objects. The account
    has rights to the directories explicitly applied as well as in groups it is a part of. I can execute the task when running the console as the account, I can run the task when I relax a policy for Network access: store passwords, to allow the task
    to run when the users is logged in or out. However when I run the task and check don't store the password it fails with the error that it is a bad logon user name and password are incorrect.
    I swapped the target account to the local Admin GROUP and it works but this is not ideal for tracking and security reasons. I created a new group and gave it rights locally as above and add the account to it but that failed.
    At this point having hit just about everything I can find to include path for Start In option, Run as highest privilege, changing to UNC, and explicit permissions I am not finding a light at the end of this tunnel.
    I have a feeling there is something simple or maybe it is something I am not aware of. I had read a few places of a possible corrupt store for the password cache for Task Scheduler but I did not see that anything else on it beyond mention.
    Any help ANYONE can provide on this would be greatly appreciated.

    As you maybe looking for an update I did find a workaround but not a solution.
    I went in and disabled the local storage of password block in the local system registry. This allowed the task to store the password for the task and work. We next ran GPUPDATE to reset the change but, DID NOT change the task itself and it worked.
    So what does this mean?
    From my perspective, we are seeing an issue or bug where the hand off of the account information to the S4U/system is dropping the account credentials and not storing the information as needed/required to run the task with the Do Not Store setting in
    place. This narrows down things tremendously and I am going to proceed back to isolated testing on this issue. Meaning I am going to take the box back to square one and move it up progressively to see if I am missing a setting here or there to allow/disallow
    the use of Do not Store Password for scheduled tasks.
    I am not sure there is a MSMasters program for Task Scheduler but I think I should be able to apply for it now.
    As always if you have an idea for me to try PLEASE POST IT. I will give it a whirl and report back in.

  • Task Scheduler doesn't work for restarting the server but event log says successful.

    Hi All,
         I have created a scheduler task to run every weekend to restart the Windows Server 2008 R2 Standard(64 Bit OS). The task everything has been successfully created. I check manually if it actually restarts but it doesn't but on the event
    logs of the Task Scheduler it says restarted successfully and returns status code 0. But it doesn't seem to work.
    Thanks in advance.

    Hi Prasad Venkatesan,
    Can you tell more detailed information about how do you set this scheduled task?
    To create a scheduler of restarting at specific time, please also try these steps:
    Press WinKey+R > type taskschd.msc and press Enter (it will launch Task Scheduler)
    Left click from the right pane on the Task Scheduler Library > open Action from the top menu > New Folder... > name it MyTasks
    > click OK
    Left click on the MyTasks > choose Action from menu > Create Basic Task... (it will open task wizard)
    You can enter the Name , for example "Restart", and press Next
    In Trigger section you can specify when you want to run your task, for example:
    Select Daily , and press Next
    Now you can specify the day, the hour and set to recur every day, after that press Next
    In Action section you can choose what you want to run, for example restart your system, to do this:
    choose Start a program , and press Next
    in the Program/script field type shutdown /r , and press Next
    please press Finish
    Then check if it can work.
    Best Regards,
    Anna

  • Unable to receive an email by task scheduler on audit failure in windows server 2008 r2 security log

    Deal All,
    I am sorry in advance if i would be on wrong forum, i have created a task on Server 2008 r2 Domain controller that when an audit failure event triggered in windows security log then an email should reach on my email ID, but unfortunately, nothing happen
    on audit failure.i receive no email from task scheduler.
    kindly suggest me to resolve the issue. I have created Email task on  event ID 4771.
    Thanks.
    Zeeshan Ibrahim Network Administrator

    Hi Zeeshan,
    I have found a hotfix against the same error messages, though it applies to Windows Vista and Windows Server 2008, I am not sure if it will work on your machine.
    Please refer to this KB article below:
    Duplicate triggers are generated incorrectly in scheduled tasks in Windows Vista or in Windows Server 2008
    http://support.microsoft.com/kb/2617046
    Please feel free to let us know if this hotfix couldn’t help you fix this issue.
    Best Regards,
    Amy Wang

  • Why does NiVisaServer.exe is running when Labview is running??

    I am running two identical test setups for some system testing.  The PC configuration and test cases are same on both the setups. I am using  Labview version 8.5 . I observe the setup running with NiVisaServer.exe is slow as compared to the other setup. The same file is not running in the other setup.  My question is , does NiVisaServer.exe slow down the Labview execution?? Why does NiVisaServer.exe is not running in the other tester eventough both are identical??

    More than likely it might have been accidentally set to start up when the PC starts. See attached screenshot for where this is configured in MAX.
    Attachments:
    VISA Server.png ‏85 KB

  • Creative Cloud will only "run" when started in "Run as Administrator"

    For some reason, sometime in the past month Creative Cloud will not give me access when started from any of the normal methods; the Task bar Shortcut, the Start Menu shortcut, or even directly from double clicking on "Creative Cloud.exe." It starts in the background but does not appear on the monitor. This is confirmed with Task Manager. I have found that if I use Task Manager to "End Task," I can start the program (from any of the above methods) by choosing "Run as Administrator" and it appears on the monitor and I have complete access.
    Today, I updated to the newest version and the situation remains the same (except, that before I did not have to "end Task" in Task Manager prior to "Run as Administrator.)
    What is causing this and how do I fix it?

    I tried every solution I found online suggesting deletion of apps, fresh installs, deletion of folders, permission changes, etc. I finally had an hour long chat session with an Adobe tech who had me do much of the same thing again, only to have the issue remain.
    Here was the end solution which worked for me:
    1. Create a new Admin account
    2. Log out of your computer, and then back in under the new admin account
    3. use the Creative Cloud uninstaller app to uninstall CC desktop. (Doing this prompted an alert message telling me I couldn't do this because some CC apps required it. So, I deleted the 2 CC apps I had installed, Lightroom and Photoshop)
    4. After the uninstall completes, install a new copy of CC desktop. (Once I did this, it opened and ran correctly.)
    5. Log out and log back in under your usual account.
    6. If CC desktop doesn't start on its own, double click the application itself to start up.
    After completing step #6, CC desktop started up on its own. I re-downloaded Photoshop and Lightroom through CC and all is working normally so far.

  • Keyboard wont work when setting up a new admin account

    I cant remember the admin password so I tricked the computer into thinking ir was a new setup so i could create a new admin account. I did:
    A cmd + s at startup then typed
    Mount -uw /
    Rm /var/db/.applesetupdone
    Shutdown -h now
    I did not transfer data or create a new id
    I tried to enter my wifi info and new account name but the keyboard now will not work! It makes a sound when I try to press any key. i cannot finish setup, I am stuck. The caps lock will turn on so I know the keyboard works. Please help!!

    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    Reset Password 10.7, 10.8...
    http://reviews.cnet.com/8301-13727_7-20087723-263/how-to-run-the-password-reset- utility-in-os-x-10.7-lion/
    Then Reset your Keychain...
    http://support.apple.com/kb/TS1544
    http://www.macyourself.com/2009/08/03/how-to-reset-your-mac-os-x-password-withou t-an-installer-disc/
    Bdaqua - does this require a disk, bc I dont have any. Will it affect my other data from my prior accounts? Thank you.

  • Scheduled report fails when set to print

    Error Message:
    Invalid printer specified. ~ce1b6881fc74f0d52.rpt
    There is, indeed a default printer on the server and I can print to it manually from the BOE server.  It shows in the choices of printers in the default settings.  It does reside in the Crystal Reports Configuration Printer list.  There is nothing in the 'printer connection' field.  The report itself has 'no printer' selected.  In the default settings I select the printer installed on the server and in Crystal Reports Configuration, Printer List..
    Perhaps I'm just not hitting the right combination of choices?
    The printer is set up with a tcp/ip port.
    Could sure use some help . . . .thanks
    Oh this is Business Objects Enterprise 4.0 SP 9 and Crystal Reports 2011.

    Since this question has more to do with the BO server configuration, you will probably get a better answer for this question in the BI Platform space here:  http://scn.sap.com/community/bi-platform.
    -Dell

  • Officejet 6400 when setting up network error message reads wireless radio is not functioning

    printer wont work wireless. Running windows 7  printer stopped printing wireless still works if using a usb cable installed software and re installed new software from the web my disk was old when running network setup comes up with a error message that the wireless radio is not functioning

    I have a C309a that all of a sudden stopped communicating
    The wireless radio is not functioning. Contact HP support
    Wireless on  PASS
    Wireless working  FAIL
    USB communication works
    Is there a reset or is the wireless trashed?

  • Using Caching Service when the Server Sleeps or Users have logged out?

    When the Mac Mini Server logs out all users, the OS X Server 3 should still be running to my belief.  Thus the Caching Service of the OS X Server 3 should still be running.  However, in a number of cases, I found that the time taken for an app download after the first time uses the same time for download.  So, I guess the Caching Service is not performing at all when there is no Logged-in user.
    I further wonder why there is a Sleep Button at the User Log-in Screen and no wonder that the Server will not be providing Services (e.g. Caching Service) when the Server is in Sleep Mode.  Will the Server 3 be providing Caching Service while the Mac Mini Server has enter Sleep mode and it's just my configuration problem?

    Here is an explanation of how caching server works.
    http://nbalonso.com/os-x-server-caching/
    In summary:
    Your server periodically talks to apple.  Compares notes.  Verifies it is authentic.  Gets a certificate from apple to prove it is authentic.
    If your device asks for something (contacts apple), Apple says that you have a local caching server, and responds with the info telling your device to try your local server first.  (includes certificate info, so your device is confident the local server that responds is actually authorized to do so).
    If that goes well, then fine.  If not, then you device falls back to getting the info from Apple's servers.
    If your server is asleep, then this process won't work.  Your server is supposed to phone home to apple (hourly?) to keep proving it is authorized to server updates, and to update Aple's record that it is authorized to serve updates for your private network IP address.

  • I get proxy authentication box during installation and when  i provide the proxy user and pass, it do not accept it and i can not go on whit the installation? any solution for that?

    i need a solution for a proxy authentication error

    Alyafeim please request your I.T. department review the Adobe Creative Cloud Service Access Documentation for IT section of http://www.adobe.com/devnet/creativesuite/enterprisedeployment.html

  • Workflow does not start when PowerShell Script is run from Task Scheduler

    I have a PS script that updates an item in a SP2010 list so that a workflow will be started.  When I run the PS script manually from the PS window on the server it resides, the script runs flawlessly.  If I set a scheduled task on the same server
    to run the script with the same credentials as are being used in the PS window, the script runs, updated the info on the list, but DOES NOT start the workflow.  As we know, SPD workflows cannot be started by anonymous or system accounts.  It is as
    if the task scheduler adds a bit of information that makes the SP2010 list think the information was updated by one of these accounts even though the field in the list for the item being updated shows the correct account.
    HELP!!!
    D

    Hi,
    The issue might be related to the script or schedule task settings your configured. You’d better check the settings.
    For example, which option do you set to run the scheduled task? You may select “Run whether user is logged on or not” instead of “run only when user is logged on” as shown in this article:
    http://blog.pointbeyond.com/2010/04/23/run-powershell-script-using-windows-server-2008-task-scheduler/
    Hope it helps.
    Best Regards,
    Sally Tang

  • Task Scheduler won't run batch file automatically

    So, I have a folder filled with the program and the necessary resource files needed in order for it to function. When I start the batch file manually, (double-clicking) it functions as necessary. However, when i schedule it as a task, it either says it "the
    program has stopped working" "a file is missing" (although the file is indeed on the system and in the folder) or it starts the program but it opens it in cmd and opens up a text box with the directory of the folder. Also, I'm running a windows
    8.1 with a x64-bit OS.
    Any help would be greatly appreciated.

    Senor Vega,
    It sounds like it might be a permissions type issue keeping your file from running properly. 
    Check to see what type of user account it is set to run under. 
    It may be that it needs to run under an account with administrative privileges, which you would need to ensure that you have “Run with highest privileges” selected. 
    If you are running the task from a standard user account, make sure you select “Run whether user is logged on or not” and select a user from the administrators group.
    Also check the permissions of the batch file itself to make sure those are set properly.
    Hope this helps!
    Mike
    Windows Outreach Team – IT Pro
    Windows for IT Pros on TechNet

Maybe you are looking for

  • What is the current schedule for 6.1.2 and will it fix the Exchange transaction log issue in 6.1?

    Just spent the entire night with virtually no sleep with our firm's group of IT engineers trying to keep our Exchange system online due to massive transaction log growth. Confirmed the issue related to 6.1 calendar bug with Activesync. The workaround

  • How to reduce the width of  Search field

    HI All,     W e have a requirement to reduce the width of search help  Screen  for Bank Key  in  ESS Bank Information .Kindly please guide me how to change the width of the Search Screen. Regards Alexi

  • "show in explorer" is very slow

    I am running win 7 on  a workstation. The windows  indexing function is running properly.  If I enter a filename into the windows search box it is found instantly.  But when I am in LR CC and I select the option to show the file in Explorer, LR begin

  • BAPI_SALESORDER_CANGE - Set BATCH per line

    Hi, I'm trying to use BAPI_SALESORDER_CHANGE to update the items with a batch, but I am unable to do so because I do not know which values I have to set. I have tried to set the following values without success: ORDER_HEADER-SALESDOCUMENT = '00000003

  • Regarding BPM Errors

    Hello, What kind of errors we can expect from the BPM configuration and execution time. Thank you