2012 Task Scheduler Batch Fails

Hello,
I hope someone can help me out with this.  I've tried multiple ways of trying to run a batch from task scheduler but no matter what I do it fails.  Now, this has worked perfectly fine in Windows 2008 R2, and prior, but it's just Windows Server
2012 R2 that's now giving me a problem.   If I run this batch from a command line, no problem but from task scheduler it gives me error "2147942667", which is "The directory name is invalid". 
Task runs as Administrator and the actions are Program/Script: build.bat   Start in: M:\Work\Source\   I've also set the Program/Script to the whole path M:\Work\Source\build.bat and the Start in to M:\Work\Source\ but it's the same error.
There are NO quotes, which I know was a problem for many in Windows 2008.  This "M" drive is a mapped network drive to an NFS share and all permissions are correct.   Like I previously stated, other Windows Servers (2003 and 2008)
have no problems executing this batch, it's just Windows 2012 (Std) R2.
Any help is GREATLY appreciated, otherwise I have an expensive piece of metal here doing nothing.  ;)
Thanks!
Drew

Have you tried a shortcut to the batch file? Or iexpress packaging into an executable? I would expect these (especially the latter) to work in a scheduled task. (Although iexpress isn't always feasible.)
Or you could try:
cmd -c <FullPathToFile>
This might work as well, as you are asking cmd, not schtsks (or whatever program does) to process it and locate both the file and file association.
It is not my fault if your computer combusts. If this helped, press the /\ arrow over ↖there. If it answers the question, click Propose as Answer ↓there. If you asked the question in the first place, click Mark as answer ↓below.

Similar Messages

  • Task scheduler service fails to run after windows update

    OS: W2008R2x64
    We noticed that our daily tasks are not running anymore since the last windows updates few days ago. When running the task scheduler mmc, we get the following:
    Looking further, the service did not seems to be running. If we try to start the service we get the follow message:
    "The Task Scheduler service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
    Now we noticed that did problem started after following updates, though not all machines are infected!!:
    Cumulative Security Update for Internet Explorer 9 for Windows Server 2008 R2 x64 Edition (KB2925418)
    Security Update for Windows Server 2008 R2 x64 Edition (KB2930275)
    Windows Malicious Software Removal Tool x64 - March 2014 (KB890830)
    Update for Windows Server 2008 R2 x64 Edition (KB2929733)

    Hi,
    Here is a similar thread for your reference, please go through it and troubleshoot the issue:
    http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/task-scheduler-wont-start/11394a52-d7de-496b-880b-733123579b9b
    Regards,
    Yan Li
    Regards, Yan Li

  • Windows task scheduler to run batch file running a java program

    I have created a batch file that runs my SendEmail program. The batch file is in the same directory as the java program. The only line in the batch file is
    java SendEmail
    This works fine from the command prompt but from the windows task scheduler it fails to function. Any help on how I can overcome this problem will be greatly appreciated.
    THanks

    Looks okay. The classpath is set, too, I guess? Btw, try running javaw instead of java. I may err, but I think it can show a console, so you can watch any error messages.

  • Task Scheduler Success on 2008 R2 but failure on 2012 R2

    Hi
    I have currently got an issue with a Scheduled Task. It does not appear to run and returns a Last Run Result of (0x1).
    So I went back to basics and created a simple task and compared between 2008 R2 and 2012 R2. On 2008 R2 the task completes and returns (0x0), on 2012 R2 the task returns (0x1).
    The Service Account that runs the task is a member of the Administrators Group on both servers.
    The task is to run a batch file that outputs the content of C:\ to a file called list.txt.
    @ECHO OFF
    DIR C:\ > C:\Temp\list.txt
    Options that are selected are as follows:
    Service Account set to Domain Account (Password is correct);
    Run whether user is logged on or not;
    Run with highest privileges;
    No Trigger set (task is run by right clicking);
    Action is Start a program (Program/script = TestScheduleTest.cmd, Start in optional = C:\Temp);
    Start the task only if the computer is on AC power;
    Stop if the computer swtiches to battery power;
    Allow task to be run on demand;
    Stop the task if it runs longer than 3 days;
    If the running task does not end when requested, for it to stop.
    Any ideas why on a 2012 R2 this would fail?
    Regards

    I would recommend referring to that: https://social.technet.microsoft.com/Forums/windowsserver/en-US/57c65328-d8c8-4e13-9b51-e017ae6c298c/task-scheduler-returns-0x1-code-when-run-whehter-user-is-logged-on-or-not-options-selected?forum=winserverManagement
    Mainly check that the account you use to run the scheduled task has the required privileges to run it (You can running the script with
    runas option in CMD and check if you get errors). Also, it might be possible that the batch file requires a privilege elevation.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Running a .cmd file at startup using Task Scheduler on Windows 2012 R2 server

    Hello,
    I've recently tried to get a simple .cmd file running at server startup on my Windows 2012 R2 server.
    The .cmd (test.cmd) file contains the following:
    C:
    cd C:\SomeFolder\
    call Some.exe file "Argument1" "Argument2"
    I've ensured that the local administrator user [someuser01] has full control of the C:\SomeFolder
    I've also ensured that someuser01 is part of Log on as Batch Job
    in Local Security Policy
    To try running it as startup, I tried using Task Scheduler.
    General Tab: I set the user (local administrator account [someuser01] ) and ticked the options
    Run whether logged on or not, Do not Store Password, Run with Highest Privileges
    Triggers: At System Startup, Ticked Enabled
    Actions: Start a Program. Program/Script: test.cmd, Add arguments: [Blank], Start in: C:\SomeFolder
    Conditions: Unticked all conditions
    Settings: Ticked only the following --> Allow task to be run on demand, If the running task does not end...force to stop
    Then I clicked OK and was prompted for someuser01's credentials.
    I then restarted the server.
    Upon logging in as administrator, I checked the task scheduler, and I found that the task did not run (Last Run Time: Never)
    I've been able to run it manually (click Run on the task in Task scheduler) without any problems.
    I just cannot get it to run at startup as I've instructed Task Scheduler to do.
    Any ideas on what might be causing this problem?
    Thanks.

    Hello Dave Patrick,
    I've also tried this approach and I came across this error after I try to enter someuser01's credentials:
    An error has occured for the task sometask01. Error message: The following error was reported: A specified logon session does not exist. It may already have been terminated..
    After doing some research, this new error is caused by a setting in Local Security:
    Local Security Policy --> Security Options --> Network Access: Do not allow storage of passwords and credentials for network authentication --> Enabled
    Unfortunately, I cannot disable this Security Policy due to our company's internal restrictions.
    Just to clarify, the reason that the task does not run at startup is because of a logon failure because the password was not stored for
    someuser01 ?
    However, I cannot allow storage of the password because of our our company's internal restrictions.
    Is there a possible workaround for this..?
    Thanks!

  • Not able to push batch script for installing IIS all features using SCCM 2012 task sequence

    Hey Guys, I am working for this from a long time but not able to make it work, I am using following batch script for installing IIS  using SCCM 2012 task sequence:
    Dism.exe /online /Enable-Feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:IIS-ApplicationDevelopment /FeatureName:IIS-Security /FeatureName:IIS RequestFiltering /FeatureName:IIS-NetFxExtensibility
    /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-NetFxEnvironment /FeatureName:WAS-ConfigurationAPI /FeatureName:NetFx3 /FeatureName:WCF-HTTP-Activation /FeatureName:WCF-NonHTTP-Activation /FeatureName:IIS-WebServerManagementTools
    /FeatureName:IIS-ManagementConsole /FeatureName:IIS-ManagementScriptingTools  /FeatureName:IISIIS6ManagementCompatibility /FeatureName:IIS-ManagementService /FeatureName:IIS-Metabase /FeatureName:IIS-WMICompatibility
    When I run this script as admin by right click on it and select "run as a administrator" the script works fine but when I pushed the script as a software package or a step in OSD task sequence, nothing happens. I also tried
    run command line option but no luck. Please help me with this.
    Thanks,
    VST

    1. When I used "run command line" option I found following errors in smsts.log:
    Remediation failed. Code 8027000C TSManager 1/2/2014 2:32:12 PM 2720 (0x0AA0)
    Remediation failed with error code 8027000C TSManager 1/2/2014 2:32:12 PM 2720 (0x0AA0)
    Remediation failed. Code 8027000C TSManager 1/2/2014 2:34:16 PM 2092 (0x082C)
    Remediation failed with error code 8027000C TSManager 1/2/2014 2:34:16 PM 2092 (0x082C)
    Failed to run the action: Run Command Line.
    Unknown error (Error: 800F080C; Source: Unknown) TSManager 1/2/2014 2:34:32 PM 2092 (0x082C)
    Failed to delete directory 'C:\_SMSTaskSequence' TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    SetNamedSecurityInfo() failed. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    SetObjectOwner() failed. 0x80070005. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Package. Error code 0x80070002 TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RegQueryValueExW failed for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    GetTsRegValue() failed. 0x80070002. TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    ReleaseRequest failed with error code 0x80004005 TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    RegQueryValueExW failed for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram OSDSetupHook 1/2/2014 2:34:35 PM 360 (0x0168)
    GetTsRegValue() failed. 0x80070002. OSDSetupHook 1/2/2014 2:34:35 PM 360 (0x0168)
    2. We are not using MDT in our environment so I ant use add features and roles option.
    3. The script is running fine when we run it manually.

  • Batch/Powershell file wont run via Task Scheduler

    Hello,
    I'm having trouble getting my Powershell file to run from Task Schedule during logoff. In short, I'm trying to upload my NTUSER.DAT (roaming profile) to my profiles folder on the file server. Dynamic VLAN switching does not support roaming profiles thus
    I have to use a script to solve this issue.
    My powershell script is as follows:
    start-sleep -s 15
    Set-Content -Path "C:\Temp\log.txt" -Value "Hello World"
    $FileServer = 10.10.5.5
    $FQDN = "$Env:UserDomain"
    $User = Get-WmiObject -Class Win32_NetworkLoginProfile | Sort-Object -Property LastLogon -Descending | Select-Object -Property * -First 1 | Where-Object {$_.LastLogon -match "(\d{14})"} | Foreach-Object { New-Object PSObject -Property @{ Name=$_.Name.TrimStart("$FQDN\") }} | Select -ExpandProperty Name
    copy-item -path C:\Users\$User\NTUSER.DAT -destination \\$FileServer\Profiles$\$user.V2\ -force
    copy-item -path C:\Users\$User\NTUSER.DAT -destination \\$FileServer\Profiles$\$user.V3\ -force
    I have a task schedule to run as Domain Admin when event ID 4647 occurs (logoff). It is set to run with the Highest Privileges checked, also I have enabled to run weather the user is logged in or no. The Domain Admin account also has access to ever file,
    both at source and destination. Set-ExecutionPolicy is set to unrestricted. The way I call the powershell script in Task Scheduler is:
    Action: Start a program
    Program/Script: C:\temp\launch.bat
    The launch.bat contains the following:
    Powershell.exe -executionpolicy unrestricted -File "CALL C:\temp\powershell.ps1"
    The task is triggered each time when the user logs off, I have confirmed this in the logs. But the NTUSER.DAT file fails to copy over to the network, in fact the log.txt file isn't even generated. I have confirmed my code to work, it's just the task scheduler
    part calling the code where I think it fails.
    Can you guys point me in the right direction here? I know I'm close, but not sure what I'm missing. 

    Jrv,
    Yes in my testing the task schedule is unreliable, I don't have any info on how long the profile is locked, thus I can't copy the profile to the server when the OS still has it locked.
    What do you propose I change my vlan configuration to?
    Thanks.
    What you are trying to do cannot be done.  That is why it is not being done.  If you set up roaming profiles and redirected folders this would happen automatically.  It would also happen very quickly.  THat is because Windows posts cahnges
    to teh roamed image as they happen.  Only changes are copied. Items in teh registry which are only valid during logon (Dynamic Entries) are nver copied so updates that are not needed are not posted.  It is these updates thaat can keep the registry
    locked for a very long time.
    If you scan your network you will likely find hives thaat are loaded with no one logged in.  WIndows 7 and later have a utility that forces and unload after a few minutes.  It posts the reson for the forced unload to the event log.
    As for the VLAN it is likely not configured correctly.  THe profile must be on a server that is available on the same net ID as the PC.  YOu may also have to allow the switch to suspend if you are using per-user conenctions.  Contact the VLAN
    vendor and tell them about issues with Roamed profiles.  THey will walk you through the setup.  THe most common issue is thaat the switch specifies 1Gb and the server is set to 100Mb and the switch is not set to match the speed.  THisis a simplpe
    configuration error done by a tech who does not have much experience with VLANs.  THey tend to think that setting everything to 1Gb or some other maximum will work but it won't.  It can also be caused by a files server with a 1Gb card that is a pront
    spooler spooling to a 100 or 10Mb older printer. This disrupts the card and the VLAN cannot attach to it until the spooler is dona nd the card can switch.  It can also be caused by a bad card or a bad switch.
    Then VLAN vendors techs are usually very good at troubleshooting this kind of issue.  Remote VLAN logging and diagnostics can also pick out the issue.
    ¯\_(ツ)_/¯

  • How to schedule the Batch file to run from task scheduler

    Hello Everyone,
    I have a batch file which kills the wscript.exe process, I am doing this manually, I need to schedule this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers,  i.e if the wscript.exe process count in task
    manager reaches to 30,  the task schedular should execute this batch file,
    Is there a way to do so.
    dibu

    Hi,
    àI need to schedule
    this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers.
    As I know, it will not help you to achieve this target via Scheduled Task. When configure Scheduled Task, there
    seems no Trigger option that help you specify this condition (process counts reaches to specific numbers) to trigger the batch file.
    You could consider that improve this batch file. Adding the
    Check function to the script will be a better option. For script issue, you can post it in the
    Official Scripting Guys Forum. I believe we will get a better assistance there.
    If any update, please feel free to let me know.
    Best regards,
    Justin Gu

  • SCCM 2012 - Task Seq - Install Lenovo AMT software - Failing with 2147500037 (80004005)

    Hi there
    Wondering is anyone has had any issues installing Intel Management Engine 10.0 software via a SCCM 2012 task sequence?
    We have a number of older laptops which we build via a Windows 7 task sequence from SCCM 2012. As part of the install each laptop gets the appropriate version of the Intel ME software. All well and good.
    We now have a new model to build (Lenovo T440) and for some reason the latest available version of Intel ME 10.0 software keeps failing in the task sequence with a 2147500037 (80004005) error.
    This can mean different things but often means a permissions issue. Not sure what the permissions issue could be.
    This software is installed at the same stage as previous versions of the same software are installed for older laptop models. Same install command too, SetupME.exe -s as per the document which comes with the software (in previous versions it is Setup.exe
    not SetupME.exe but don't imagine the different file name is the problem).
    I will try an older version but really we want to keep up with the latest available versions.
    Anyone had problems installing this Intel ME v10.0 software via a SCCM 2012 task sequence?
    Best regards
    John

    Does the install provide any logging? Does execmgr.log show any other info?
    Per the readme, it should be setup.exe.
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/girc15ww.txt
    Unattended Install
    This is for system administrators' use only.
    1. Refer to the Manual Install section, and download and extract the file.
    2. In the step 11 of the Installing files section, uncheck the checkbox next
    to "Install ..... now", and then select Finish to cancel installation.
    3. At the command line, execute Setup.exe with the -s option.
    Example: [Path where the files were extracted]\Setup -s
    Daniel Ratliff | http://www.PotentEngineer.com

  • Lenonvo T440 with Intel SSD SC2BF240A4L - failing to install apps via SCCM 2012 task sequence

    Hi there
    Wondering if anyone else has encountered this issue with a T440 with Intel SSD hard disk.
    Our firm purchased two Lenovo T440 laptops. One has a magnetic hard disk, the other a SSD hard disk. Here are the models:
    SSD hard disk:           Intel SSDSC2BF240A4L
    Magnetic hard disk:   500Gb 7200rpm HTS725050A7E635
    We deploy our Windows 7 build via a SCCM 2012 task sequence.
    Building the T440 with the magnetic hard disk was trouble free. I built it repeatedly, and encountered no errors; our core applications installed successfully every time and the task sequence completed successfully every time.
    All well and good.
    Building the T440 with the Intel SSD hard disk has been frustrating. When I run the task sequence on this machine, 8 times out of 10 the task sequence will fail, either stopping abruplty at installing Oracle Single-Sign On or Appsense agents. When the task sequence fails it is ALWAYS at one of these two apps. 
    Frustratingly, sometimes the task sequence will complete successfully on this T440.
    Given we successfully deploy this task sequence to a variety of different hardware from different vendors, including other Lenovo laptops, I can only guess the Intel SSD hard disk is the culprit. 
    Has anyone encountred anything like this? I've went through the smsts.log file and other SCCM log files and can find nothing obvious. That this ONLY happens on the T440 with the SSD suggests to me the issues lies in that direction.
    I'll swap disks in either T440 to see if the other T440 fails also with the SSD aboard, to see what happens.
    Meantime if anyone has any information about this issue I'd be grateful if you coud share.
    Thanks
    CT

    Does the install provide any logging? Does execmgr.log show any other info?
    Per the readme, it should be setup.exe.
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/girc15ww.txt
    Unattended Install
    This is for system administrators' use only.
    1. Refer to the Manual Install section, and download and extract the file.
    2. In the step 11 of the Installing files section, uncheck the checkbox next
    to "Install ..... now", and then select Finish to cancel installation.
    3. At the command line, execute Setup.exe with the -s option.
    Example: [Path where the files were extracted]\Setup -s
    Daniel Ratliff | http://www.PotentEngineer.com

  • DirectAccess multisite on Server 2012 R2: 'The remote access configuration task (raconfigtask) in Windows Task Scheduler cannot be disabled"

    Dear all,
    I'm an experiencing an issue when configuring 2012 R2 DirectAccess multisite.
    The initial configuration of the first site in a multisite setup works fine, however when i try to add ANY other server on another site, i see the below screenshot, the full text of which is: "The remote access configuration task (raconfigtask) in Windows
    Task Scheduler cannot be disabled" while the entry point is added.
    THere are no logged events on the remote server, but on the controlling server i see this in the event log:
    Log Name:      Microsoft-Windows-TaskScheduler/Operational
    Source:        Microsoft-Windows-TaskScheduler
    Date:          10/15/2014 12:55:58 AM
    Event ID:      140
    Task Category: Task registration updated
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      WWCLORAS01.apco.net
    Description:
    User "S-1-5-18"  updated Task Scheduler task "\Microsoft\Windows\RemoteAccess\RaConfigTask"
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{DE7B24EA-73C8-4A09-985D-5BDADCFA9017}" />
        <EventID>140</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>140</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-15T07:55:58.432317300Z" />
        <EventRecordID>1738</EventRecordID>
        <Correlation ActivityID="{D4236B4E-E841-0003-E5BA-23D441E8CF01}" />
        <Execution ProcessID="840" ThreadID="3852" />
        <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
        <Computer>WWCLORAS01.apco.net</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData Name="TaskUpdated">
        <Data Name="TaskName">\Microsoft\Windows\RemoteAccess\RaConfigTask</Data>
        <Data Name="UserName">S-1-5-18</Data>
      </EventData>
    </Event>Log Name:      Microsoft-Windows-TaskScheduler/Operational
    Source:        Microsoft-Windows-TaskScheduler
    Date:          10/15/2014 12:55:58 AM
    Event ID:      140
    Task Category: Task registration updated
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      WWCLORAS01.apco.net
    Description:
    User "S-1-5-18"  updated Task Scheduler task "\Microsoft\Windows\RemoteAccess\RaConfigTask"
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{DE7B24EA-73C8-4A09-985D-5BDADCFA9017}" />
        <EventID>140</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>140</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-15T07:55:58.432317300Z" />
        <EventRecordID>1738</EventRecordID>
        <Correlation ActivityID="{D4236B4E-E841-0003-E5BA-23D441E8CF01}" />
        <Execution ProcessID="840" ThreadID="3852" />
        <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
        <Computer>WWCLORAS01.apco.net</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData Name="TaskUpdated">
        <Data Name="TaskName">\Microsoft\Windows\RemoteAccess\RaConfigTask</Data>
        <Data Name="UserName">S-1-5-18</Data>
      </EventData>
    </Event>
    And this in the taskscheduler:
    Log Name:      Microsoft-Windows-TaskScheduler/Operational
    Source:        Microsoft-Windows-TaskScheduler
    Date:          10/15/2014 12:55:58 AM
    Event ID:      140
    Task Category: Task registration updated
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      WWCLORAS01.apco.net
    Description:
    User "S-1-5-18"  updated Task Scheduler task "\Microsoft\Windows\RemoteAccess\RaConfigTask"
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{DE7B24EA-73C8-4A09-985D-5BDADCFA9017}" />
        <EventID>140</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>140</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-15T07:55:58.432317300Z" />
        <EventRecordID>1738</EventRecordID>
        <Correlation ActivityID="{D4236B4E-E841-0003-E5BA-23D441E8CF01}" />
        <Execution ProcessID="840" ThreadID="3852" />
        <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
        <Computer>WWCLORAS01.apco.net</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData Name="TaskUpdated">
        <Data Name="TaskName">\Microsoft\Windows\RemoteAccess\RaConfigTask</Data>
        <Data Name="UserName">S-1-5-18</Data>
      </EventData>
    </Event>
    Any ideas what might be causing this? All servers are in the same domain, firewalls don't seem to be dropping anything, SCCM client is installed, but thats it.
    Appreciate any feedback.
    Jim

    Dear all,
    I'm an experiencing an issue when configuring 2012 R2 DirectAccess multisite.
    The initial configuration of the first site in a multisite setup works fine, however when i try to add ANY other server on another site, i see the below screenshot, the full text of which is: "The remote access configuration task (raconfigtask) in Windows
    Task Scheduler cannot be disabled" while the entry point is added.
    THere are no logged events on the remote server, but on the controlling server i see this in the event log:
    Log Name:      Microsoft-Windows-TaskScheduler/Operational
    Source:        Microsoft-Windows-TaskScheduler
    Date:          10/15/2014 12:55:58 AM
    Event ID:      140
    Task Category: Task registration updated
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      WWCLORAS01.apco.net
    Description:
    User "S-1-5-18"  updated Task Scheduler task "\Microsoft\Windows\RemoteAccess\RaConfigTask"
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{DE7B24EA-73C8-4A09-985D-5BDADCFA9017}" />
        <EventID>140</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>140</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-15T07:55:58.432317300Z" />
        <EventRecordID>1738</EventRecordID>
        <Correlation ActivityID="{D4236B4E-E841-0003-E5BA-23D441E8CF01}" />
        <Execution ProcessID="840" ThreadID="3852" />
        <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
        <Computer>WWCLORAS01.apco.net</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData Name="TaskUpdated">
        <Data Name="TaskName">\Microsoft\Windows\RemoteAccess\RaConfigTask</Data>
        <Data Name="UserName">S-1-5-18</Data>
      </EventData>
    </Event>Log Name:      Microsoft-Windows-TaskScheduler/Operational
    Source:        Microsoft-Windows-TaskScheduler
    Date:          10/15/2014 12:55:58 AM
    Event ID:      140
    Task Category: Task registration updated
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      WWCLORAS01.apco.net
    Description:
    User "S-1-5-18"  updated Task Scheduler task "\Microsoft\Windows\RemoteAccess\RaConfigTask"
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{DE7B24EA-73C8-4A09-985D-5BDADCFA9017}" />
        <EventID>140</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>140</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-15T07:55:58.432317300Z" />
        <EventRecordID>1738</EventRecordID>
        <Correlation ActivityID="{D4236B4E-E841-0003-E5BA-23D441E8CF01}" />
        <Execution ProcessID="840" ThreadID="3852" />
        <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
        <Computer>WWCLORAS01.apco.net</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData Name="TaskUpdated">
        <Data Name="TaskName">\Microsoft\Windows\RemoteAccess\RaConfigTask</Data>
        <Data Name="UserName">S-1-5-18</Data>
      </EventData>
    </Event>
    And this in the taskscheduler:
    Log Name:      Microsoft-Windows-TaskScheduler/Operational
    Source:        Microsoft-Windows-TaskScheduler
    Date:          10/15/2014 12:55:58 AM
    Event ID:      140
    Task Category: Task registration updated
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      WWCLORAS01.apco.net
    Description:
    User "S-1-5-18"  updated Task Scheduler task "\Microsoft\Windows\RemoteAccess\RaConfigTask"
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{DE7B24EA-73C8-4A09-985D-5BDADCFA9017}" />
        <EventID>140</EventID>
        <Version>0</Version>
        <Level>4</Level>
        <Task>140</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-15T07:55:58.432317300Z" />
        <EventRecordID>1738</EventRecordID>
        <Correlation ActivityID="{D4236B4E-E841-0003-E5BA-23D441E8CF01}" />
        <Execution ProcessID="840" ThreadID="3852" />
        <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
        <Computer>WWCLORAS01.apco.net</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData Name="TaskUpdated">
        <Data Name="TaskName">\Microsoft\Windows\RemoteAccess\RaConfigTask</Data>
        <Data Name="UserName">S-1-5-18</Data>
      </EventData>
    </Event>
    Any ideas what might be causing this? All servers are in the same domain, firewalls don't seem to be dropping anything, SCCM client is installed, but thats it.
    Appreciate any feedback.
    Jim

  • Server 2008 - Task Scheduler - Send an E-mail fails

    When ever we set an action to send an E-mail in the Server 2008 Task Scheduler GUI, we get a "Task failed" result of
    "Cannot modify or delete an object that was not added using the COM+ Admin SDK (0x8004020D)  once the task gets to that step.
    I have tried creating tasks that do nothing but try and send an email using the new functionality of the Task Manager and it fails with the exact same error, So I have narrowed it down to the email action being the culprit.  As soon as I remove it from the other tasks, everything works as planned.
    Is there a fix for this?  Is there a permission I need to set somewhere?  It seems that some people have tried running the task as the "Network Service" and it works, but I have had no such luck yet.
     

     
    Hi,
    If a task attempts to send an e-mail, but the e-mail doesn't get sent correctly, first make sure that the settings for the e-mail action on the task are set correctly. The e-mail action must have a valid value for the SMTP server, To, and From settings. For more information about these settings, please refer to the following article:
    Actions
    http://technet.microsoft.com/en-us/library/cc722129.aspx
    Make sure the SMTP server that sends the e-mail is setup correctly. E-mail is sent using NTLM authentication for Windows SMTP servers, which means that the security credentials used for running the task must also have privileges on the SMTP server to send e-mail. If the SMTP server is a non-Windows based server, then the e-mail will be sent if the server allows anonymous access.
    For information about setting up the SMTP server, please see the following article:
    SMTP Server Setup
    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e4cf06f5-9a36-474b-ba78-3f287a2b88f2.mspx?mfr=true
    And for information about managing SMTP server settings, please see the following article:
    SMTP Administration
    http://technet.microsoft.com/en-us/library/cc758258.aspx
    Hope it helps.
    Tim Quan - MSFT

  • Issue with Task Scheduler on win 2012 R2

    Hi All,
    I am running a powershell script on windows server 2012 R2. It runs fine when i run it with powershell.
    And when i create task and choose option " Run only when the user is logged in" it works fine.
    But the issue is when i select "Run whether is the user is logged in or not" And with highest privilege it doesn't work.
    Tried solution:
    created a folder (or two on a 64bit-windows):
    (32Bit, always)
    C:\Windows\System32\config\systemprofile\Dektop
    (64Bit)
    C:\Windows\SysWOW64\config\systemprofile\Desktop
    as the powershell creates a excel and saves it in the some folder.
    not sure what is causing it.
    Any help on this will be appreciated.

    Hi,
    From the
    Task Security Context article, we can get following description.
    You can specify that a task should run even if the account under which the task is scheduled to run is
    not logged on when the task is triggered. To do this, select the radio button labeled Run whether user is logged on or not. If this radio button is selected, tasks will not run interactively. To make a task run interactively, select the Run only when user
    is logged on radio button.
    Just a confirmation, did your PowerShell script involve any operation of mapped drive? If involved, please
    use the full UNC path and monitor the result. Please refer to following similar thread and check if can help you.
    Task
    Scheduler Problem (run whether user is logged on or not)
    Meanwhile, please open this scheduled task’s Properties and navigate to History tab, then check if find some
    relevant events.
    View Task Properties and History
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu

  • 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.

  • Windows Task Scheduler executing old triggers even after recreating the task

    I had this task working perfectly until I changed the schedule. After I changed the scheduled time 5 minutes earlier, I noticed that in the history, it still triggers the old schedule. I tried restarting the server, deleting the task and recreating it even
    without a trigger and it's still executing the task with the old trigger. The attached screenshot shows that the task doesn't have a trigger but as you can see in the history it's still trying to execute the task. How does the Windows Task Scheduler work?
    Is there a file or database that I can purge the old task?
    I also tried applying this hotfix but it didn't seem to fix the issue: 
    http://support.microsoft.com/kb/2461249
    NOTE: This is Windows 2008 R2 and the Error message in the history is: Task Scheduler failed to start "<the
    name of my task>" task for user "<the
    user>". Additional Data: Error Value: 2147750689.

    Since batch job can be run manually without error, cmd.exe is not the problem.
    I researched and found that the problem may be due to exhausted desktop heap and the solution is to increase the value.
    Please try this step:
    1. restart the server first and test again (a simple solution that may work)
    2. if the first attempt fail, take a full backup first and attempt to increase desktop heap
         http://www.symantec.com/business/support/index?page=content&id=TECH48099
    Yes THAT WAS THE SOLUTION FOR THE ISSUE. !!
    Now its working perfect!!
    Why now its working and not before? Because after made the changes to the registry,
    RESTART IS NECESSARY to apply the changes and I have done it yesterday night (this server is working 24x7, so its hard to find a moment to restart it). 
    Thanks for all to help me with this issue!!! I really,really ,really ,really  apreciate !!! 
    THANKS !!!!!

Maybe you are looking for

  • How can I get my instant message icon to open? Seems to be stuck.

    I wrote several instant messages this morning on my AirMac. No problem. Went back to read and respond to new IM, but IM icon will not open. If the IM comes in when I am on the computer, I can read it in the upper right hand corner of my MacBook Air b

  • Mailclient memory usage

    Hi! I've been developing a supposedly lightweight email client for my own use, to learn java better. The problem is that when I run it, it is not exactly as lightweight as I'd like. It sucks up 20-30MB of memory, which I think is quite much, as at th

  • Trace or debug the IP module

    Hi, I develop a ethernet device driver with streams and dlpi. I don't know when I send a message upstream which module will receive this message. Is there any possibility to trace or debug a streams connection between a ethernet device-module an the

  • Cant select button in dvd menu

    I have made a dvd menu in dvd studio pro 2, i can select the buttons with the control in the simulator, but then when i have burnt the dvd and try to do the same on my tv with the real remote control, I cant select the buttons. Is there something und

  • Still trying to reinstall photoshop 10

    Subarshan Thiagaraian advised me to 1) go to adobe.com 2) "download your electronic copy of the installation files"  How do I do that, have looked for over an hr and all the options and do not see one that allows me to " download your electronic copy