Any alternative beside CF Administrator scheduled task?

My scheduled tasks unable to run on CF9 but when I browse in IE it's working fine.
I believe CF9 scheduled task very sensitive on the code as I tried to remarks on some coding its working fine.
When I removed the remarks it unable to process.
Any help on this? Is there any other way to run a schedule without using CF Administrator?
Best regards,
Eric

Eric, is there any chance that the page you're running successfully in IE works because you were prompted at some point for a web server username/password? The browser will cache that for subsequent requests. If the page requires such security, you must specify it in the scheduled task definition.
There is also available logging of scheduled tasks (on the Logging Settings page in the CF Admin), which creates a new log in the \logs directory (also accessible from the CF Admin Log Files page), which may give you more insight into what's not working.
Finally, yes, you could always an alternative to CF's scheduled tasks, in the Windows scheduled task feature (available in all versions of Windows). The problem is how to execute a CFML page. There used to be a cfml.exe program in the \bin (prior to CF 6) that allowed you to execute CFML pages from the command line. That's no longer offered.
But you could call the pages using a command-line equivalent of a browser. One such solution is wget. I did a blog entry on this several years ago when I worked with BlueDragon, but the concept applies just as well to CF:
http://bluedragon.blog-city.com/executing_cfml_from_the_command_line_or_where_did_cfmlexe_ go.htm
Others may have still other suggestions.
But really, see first if you can in fact get it to work as a CF scheduled task. There's usually an explanation and a solution. Hope that helps.
/charlie
Providing CF troubleshooting services at carehart.org/consulting
[email protected]

Similar Messages

  • KM Scheduler Task Cache issue

    We have created couple of custom schedulers in Enterprise Portal. These schedulers are worked fine in our QA and DEV environment. But when we move the same transport to Production the scheduleru2019s tasks are not showing up in KM scheduler list. But after restarting J2EE couple of times it's showing up in KM scheduler task. This is the behavior we are seeing whenever we move the scheduler to production.
    Here are the some technical details about the scheduler,
    We have created one Portal Development component and 10 Scheduler Tasks under this component. All the tasks are not created in a single release. Initially when we develop we used to have 2 scheduler tasks under this component, when we move this transport to production we didn't faced any issue. Even after adding 4 to 5 scheduler task we didn't had any issues. After adding more than 6 to 7 whenever we add one we are getting the same issue.
    Question: 1 - Is there any limit to for adding Scheduler task in one Portal Component?
    This time we have restarted our server more than 5 times but scheduler not showed up. We ask our manger to logon to the portal server who never navigated to KM screen, we ask her to navigate and she did. For her schedulers are showed up. After she navigated to the KM screen everybody is able to see the scheduler. This is not the first time it happens like this, the same situation happen for the previous release also. In previous release we ask our Technical Architect to login to see KM schedulers. After his login everybody is able to see the schedulers.
    After doing all these is what I obverse is, it seems KM scheduler has some server level cache for the user and it's giving old screen whenever we are trying to login and see. After the transport, the cache is not getting updated with the new version.
    We guess it might be something we need to do with cache.
    Is there any idea why the system is behaving like this.

    Hi,
    I am facing similar issue. How did you resolve it?
    Regards,
    Apurva

  • Office 2013 C2R Update Scheduled Task does not work

    Hi all.
    I am having difficulty getting network deployed updates to work correctly. I installed and older version of Office 2013 with the ODT from a network share and set the update path. I then downloaded an update via ODT.
    The issue is the scheduled task does not update office. If I trigger or manually run from a command prompt "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection modeargs reschedulemode tasktrigger
    scheduledtask updateuitype background” from Task Scheduler nothing seems to happen. Monitoring Task Manager it looks like integratedoffice is called albeit very briefly.
    But, if I run "C:\Program Files\Microsoft Office 15\ClientX64\integratedoffice.exe RUNMODE RERUNMODE modetorun updatedetection background” from a command prompt Office updates, but if I edit the Scheduled Task to above Office does not update if the
    task is triggered.
    As Office can update if the right command is given it would appear that my config.xml etc is correct. Any ideas on why the Scheduled Task does not work?
    Cheers
    Jakes

    What permissions are set on the location of the updates ? C2R currently needs permissions granted for machine accounts as it runs under that context. This will change at some point that C2R gets updated.

  • Exception Thrown When a Scheduled Task Runs for Many Hours

    In the Oracle documentation here (http://download.oracle.com/docs/cd/E10391_01/doc.910/e10367/toc.htm#CACGBDAD) it states that the below exception can get thrown when a scheduled task runs for many hours (on OAS) and can be ignored:
    Primary Server went down going to get a fresh object elsewhere in the cluster.
    com.evermind.server.rmi.RMIConnectionException: LRU connection
    Just want to find out from other users that get this error (If there is any), have you found the scheduled task actually completes, then the error is thrown or what?
    I just don't feel comfortable that one of our tasks is completing properly due to this exception occuring and causing the task to stop midway through processing...

    Hi,
    I've had trouble with scheduling PowerShell scripts in the past as well. You can try running your script in the SYSTEM context by launching a cmd prompt this way, just to verify that the issue isn't related to the account itself:
    http://myitforum.com/cs2/blogs/jmarcum/archive/2010/08/25/150872.aspx
    This method does require PSExec, there's a link to the tool in the post if you don't already have it on hand.
    You can also start PowerShell as SYSTEM and play around if you need to:
    http://blogs.technet.com/b/ben_parker/archive/2010/10/28/how-do-i-run-powershell-exe-command-prompt-as-the-localsystem-account-on-windows-7.aspx?Redirected=true
    Not the best answer, but hopefully it helps shed a little light on the issue.
    Good luck.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Alternatives to PowerShell automation of Excel (Scheduled Task) in a Windows Server 2012 R2 world

    I have a handful of PowerShell scripts that ran as Scheduled Tasks on an old Windows 2008 SP2 server, which output reports as Excel workbooks with multiple worksheets, via a COM object. After migrating these scripts to a new Windows 2012 R2 server,
    these scripts no longer function. The Server 2008 system was running Office 2007, and the new Server 2012 R2 server has Office 2013 installed.
    What is everyone using on their Server 2012 R2 systems to automate generation of multi-sheet reports in Excel via PowerShell and Scheduled Tasks?
    I know that Microsoft has said that automating Office applications server-side in non-interactive mode, but it has worked in the past, until now. (https://support.microsoft.com/kb/257757)
    I've tried the OpenXML PowerTools for PowerShell (https://powertools.codeplex.com/), but Export-OpenXMLSpreadsheet will only export a single worksheet, and they don't support adding worksheets to existing files
    (am I missing something?). I understand the OpenXML PowerTools can be extended in C#, but I don't C#. The PowerShell cmdlets were released in Jan 2012, but don't look to have been updated since then (updates have been the core C# code).
    I've seen recommendations to add C:\Windows\(System32 or SysWOW64)\config\systemprofile\Desktop, but this hasn't worked on Server 2012.
    Has anyone been able to get Excel 2013 to cooperate on Server 2012 R2, or come up with a suitable alternative? I'd rather not start running these scripts from my workstation.
    EDIT:
    I'm not necessarily looking for an Excel answer, since there are OpenXML ways of doing things now without the Excel application.
    Here are some of the errors I'm getting when approaching this from different directions. When I use:
    $excel = New-Object -comobject Excel.Application$workbook = $excel.Workbooks.Add()
    Results in error:
    Exception calling "Add" with "0" argument(s): "Microsoft Excel cannot open or
    save any more documents because there is not enough available memory or disk
    space.
    • To make more memory available, close workbooks or programs you no longer
    need.
    • To free disk space, delete files you no longer need from the disk you are
    saving to."
    At C:\path\to\script.ps1:21 char:2
    + $workbook = $excel.Workbooks.Add()
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation
    The server is definitely not lacking for resources.
    I can copy a blank XLSX file and use .Open($xlFile) instead of .Add(), but then when I go to open a CSV file to copy/paste the content to a worksheet, I get this one:
    Exception calling "Open" with "1" argument(s): "The server threw an exception.
    (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"
    At C:\path\to\script.ps1:65 char:2
    + $tempcsv = $excel.Workbooks.Open($CSVFile)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation
    Things that I've tried so far, with no success:
    I created C:\Windows\System32\config\systemprofile\Desktop and C:\Windows\SysWOW64\config\systemprofile\Desktop as suggested here:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/0751119d-84d5-4a77-8240-1c4802f97375/powershell-scheduled-tasks-wont-start-excel?forum=winserverpowershell
    Add Local Launch and Local Activation permissions to the Microsoft Excel Application DCOM Config, Grant "Read & Execute, List folder contents, Read" permissions on the \config\systemprofile\Desktop folder. Grant "Modify, Read & Execute,
    List Folder Content, Read, Write" permissions for the account on the following folders:
    \config\systemprofile\AppData\Roaming\Microsoft
    \config\systemprofile\AppData\Local\Microsoft
    as suggested here:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/aede572b-4c1f-4729-bc9d-899fed5fad02/run-powershell-script-as-scheduled-task-that-uses-excel-com-object?forum=winserverpowershell
    @ jrv - I will try posting a similar question in the Excel 2013 forum, but since I'm looking for a scripting solution to produce an OpenXML spreadsheet, and not something that necessarily uses the Excel application (though such a solution would not be turned
    away), I thought this the more appropriate venue.
    (to reiterate from OP) I have seen and acknowledge Microsoft's statements regarding the unsupported nature of automating Office applications in non-interactive environments, but the truth of the matter is, supported or not, it worked in the past (Server
    2008), it's what I inherited from my predecessor, and I know I'm not the only one who has been using Excel in this way. I'm only asking fellow scripters, some of whom must also be using Excel in this "unsupported" fashion, how they are automating
    creation of their spreadsheet reports after moving to Server 2012. A different system modification to make the Excel comObject continue working as before? Direct manipulation of the OpenXML document? Other solutions that may or may not require launching the
    Excel application?

    #1 - Ask in Excel 2013 forum.
    #2 - Microsoft has repeatedlynoted that this is NOT a supported configuration for Office products.
    #3 - What errors are you getting?
    #4 - What have you done to debug this:
    #5 - No one can be of much help unless you post a very simple example of how this fails.
    ¯\_(ツ)_/¯

  • Scheduled Tasks - Administrator Best Practices

    Hi all,
    I've gotten assistance this week with a couple scripts and scheduling them as tasks. I actually have well over a dozen running on our Exchange server using a special user with a complex password. This user is not used for logging into any machine, but it
    is a member of 'Administrators' group and can be used for tasks requiring elevated privileges.
    What I am interested in learning is what the best practice is for running scheduled tasks. We have several, such as querying AD for members of select OUs or users who meet certain criteria. We also have automated emails regarding certain mailbox metrics,
    etc. You get the idea.
    Despite the complex credentials, this account is still discoverable and could be used in nefarious ways. Is it possible be running tasks on Server 2008 R2 (2012 possibly) without administrator credentials? Are there certain restrictions for the tasks (like
    is a scheduled reboot allowed by a standard account, but not querying Active Directory?).
    I also have noticed a checkbox with 'Run with  highest privileges' and do not fully understand what this means.
    When I try to run the task as a regular user (no remote permissions) and it says 'Logon failure: the user has not been granted the requested logon type as this computer.'
    In short, can I safely remove our special user account from 'Administrators' and place into regular users without breaking all of our tasks?

    Hi KSI-IT,
    Firstly, based on my research, if you want to run the task scheduler with a user account, the user account must have the corresponding permission, in other words, you can also manually run the script with the user account.
    1.  For the error you posted 'Logon failure: the user has not been granted the requested logon type as this computer', please make sure the task account has "logon as a batch job" privilege.
    To add the privilege of the account, please go to
    [Local Security policy\Local Policies\User Rights Assignment]
    -Log on as a batch job.
    Add the domain\username account and any others you may need and retry.
    2.  For the setting 'Run with  highest privileges', this means that it runs with the highest privileges available to that user. This is different from the context menu's 'Run As Admin'.
    It generates the highest privilege token for the specific user, however, it cannot run as a different user, for a standard user with no elevated permissions, 'Run with highest privileges' does not do anything.
    Reference from:
    What
    effect does "run with highest priviledges" in task scheduler have on powershell scripts?
    I hope this helps.

  • Custom Schedule Tasks (Administration WorkList)

    Hi All,
    Is possible create a custom schedule tasks? for example create a interface where I alter the period that execute the job?
    Thanks
    Ivo

    Hello,
    I don't think so you can do it dynamically through an interface.
    But there is another approach to this.
    Have a Process defined that has
    1) a CO of type Service-External service, that reads an R/3 table through an RFC call. You maintain the period parameters in this table
    2) a alternative/decision/process control block that checks for the period.
    if true ,then proceed else loop back to 1)
    3)a CO of type Process Control-Initiate Process (Using Predefined Template) that points to the process  that you wanna start.
    This is just a draft. You can make it look really good.
    Cheers,
    Mandrake!

  • Issues with Backup-GPO Scheduled Task as a non-admin account

    I'm having an issue trying to get a daily backup of domain GPO's from a non-administrative account. I'm using Powershell 2.0, the Backup-GPO cmdlet runs fine as a standard user, but when I run the same cmdlet with the same user, but with a scheduled task,
    the backup does not produce valid output. The command I run is:
    [batch file called by scheduled task]
    powershell.exe d:\loj\psps.ps1
    [psps.ps1]
    import-module grouppolicy
    backup-gpo -all -path d:\loj
    The specific problem is, all other files created by the backup are created successfully except the 'gpreport.xml' file found directly under the folder identified by the backup ID. All of the subdirectories under DomainSysvol\GPO contain xml files with the
    appropriate data, and the Backup.xml and bkupInfo.xml files are also created normally. The manifest.xml file is also created normally in the root directory.
    The gpreport.xml file however is malformed. It contains only two bytes of data, FF FE.
    The reason this is a problem is that the xml in the gpreport file can be used to restore whether the GPO is 'enforced' and also contains link data. Using this when restoring the GPO's makes the process a lot less painful.
    Running the batch file while logged in interactively as the user removes the problem, without making them an administrator.
    I've been using a test domain to investigate this, I tried adding the user in question to every local group except administrators, gave it full control to the destination folder for backups, the powershell executable, batch and ps1 files. Resultant set of
    policy access has been granted (rsop.msc run-as the user tested fine). The scheduled task stores credentials (needs to run when the user is not already logged in) and runs with the highest privileges.
    The only possibly related error I could find in the logs was this:
    This error goes away if enough group memberships are added to the account or alternatively if this string is added to the security descriptor for the LanManServer service: (A;;GA;;;S-1-5-21-1191697313-1384311512-914143962-35706), which just adds
    generic all to this account by referencing the SID. However, despite the fact that the error is no longer raised, the issue with the gpreport.xml file remains.
    Does anyone have any ideas on why this is happening? At this point my best guess is something UAC related, since the gpreport.xml file is created like normal if the user is made an administrator on the local machine (I'd rather not do that in production).

    Hi Fergubru,
    Thanks for your posting.
    To troubleshoot Task scheduled that a task ran, but the program that should have been executed did not run correctly.
    As AZ said above, some programs require elevated privileges to run correctly.  If a task is running a program that requires elevated privileges, ensure that the task runs with the highest privileges. You can set a task to run with the highest privileges
    by changing the task's security options on the General tab of the Task Properties dialog box.
    If a task program does not run correctly, check the history of the task for errors. For more information, see
    View Task Properties and History.
    For the Event ID 4656, this is an Audit log, This event will be Audit Success or Audit Failure depending on whether the user account under which the account is running has the requested permissions or not. 
    For more detailed information about Event ID 4656, please refer to this article:
    http://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4656
    I hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • KM Scheduler Task

    Hello All,
    We have a scenario where I have scheduled a task written a Java program (System Administration > System Configuration> Knowledge Management --> Global services --> Scheduler Task --> Program (I am able to see the program )).
    But for some reason  I doubt if the scheduler is running .  I have assigned the schedule , BUT NOT THE CM SYSTEM , we have two CM systems here , How do I come to know which one to select ?
    Regards,
    Ronniee.

    Hello,
    Looking at the default trace I am getting the following errors.
    Could not find the command java class for alias xxx . Check whether the archive containing the mapped java class is deployed.
    xxx  = <search_from_here>
               <lock_mass>
               <link_details>
               <new_folder>.
    Any Idea what might be the resolution for the same .
    On the portal level, I have gone to System administration --> System Confguration --> Content Management -->User Interface --> UI Commands , I can see "search_from_here" , "lock_mass" , "link_details" , "new_folder" commands , but how are these commands related ?. How can I resolve the given problem related to the scheduler task.
    Regards,
    Ronniee

  • KM Scheduler Task is not running...

    Dear All,
    I have created a KM Scheduler Task using the NDWS Wizard. I followed prakash's blog (http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1515). My doubt is where exactly the attributes are created? and can any one guide how to create the attributes in .cc.xml file. And how does public void run( String id, Properties properties ) it works?
    The application was successfully deployed. I am able to see my task under System Administration->System Configuration->Knowledge Management->Configuration->Content Management->Global Services->Scheduler Tasks.  but I think it is not running. Can any one give some clue on this. As i'm not finding any thing uder Kmcontent>Documents.
    Do i need to configure anything to run KM scheduler Task?
    Thanks and Regards,
    JAGAN.
    Edited by: Jagan456533 on Jan 19, 2011 11:10 AM

    Hi Jagan,
    The status "0" for your task in "Component Monitor" is fine.
    Navigate to System Administration> System Configuration>Service Configuration. You can see here Applications and Portal runtime.
    Open Applications--> and you Task. Right click on your task folder and say Administrate. Here you check whether your task has been stopped, running. Make sure its running. ( Try refresh, if its already running ).
    In you task folder, you will see "Service Folder"  under this, you will see "RFServiceWrapper", right click on it and say configure, make sure the values are like shown below:
    Name : http://sapportals.com/xmlns/cm/sch
    Value: Value1
    Also make sure in your portalapp.xml, the values are same:
    RFServiceWrapper
    service-config
    className= com.sap.netweaver.rf.wrapper.RFServiceWrapper
    startup= true
    service-profile
    Name= = http://sapportals.com/xmlns/sch
    Prof= Value1
    You see tha the same name is used "Value1" in RFServiceWrapper both in portalapp.xml and in Service Configuration.
    You can use any other name but the it should be same in both the places.
    Make all these changes, and then restart your task in Service configuration again. Any changes in portalappl.xml, restart is necessary.
    Kind Regards,
    Poornima

  • KM Scheduler Task Error on SP16

    Hi All,
    I am trying to create a KM Scheduler Task. However while starting the task it gives me this error.
    [code]Configuration Error:  Failed to load task com.wyeth.clinicaltrials.jobs.PubstratFeed[/code]
    This is the error that is shown on the component Monitor under System Administration->Monitring->Knowledege Management->Component Monitor.
    If I click on the properties under this task it throws the following nullpointerexception
    [code]java.lang.NullPointerException
            at com.sapportals.wcm.service.scheduler.SchedulerEntry.getDescription(SchedulerEntry.java:357)
            at com.sapportals.wcm.service.scheduler.crt.SchedulerEntryProxy.getDescription(SchedulerEntryProxy.java:102)
            at com.sapportals.wcm.repository.manager.crt.CrtPropertyManager.getProperties(CrtPropertyManager.java:340)
            at com.sapportals.wcm.repository.ResourceImpl.internalGetProperties(ResourceImpl.java:3620)
            at com.sapportals.wcm.repository.ResourceImpl.getProperties(ResourceImpl.java:1209)
            at com.sapportals.wcm.control.edit.PropertiesControl.initialize(PropertiesControl.java:1058)
            at com.sapportals.wdf.stack.Control.initializeImpl(Control.java:449)
            at com.sapportals.wdf.stack.Pane.initialize(Pane.java:510)
            at com.sapportals.wdf.stack.PaneStack.initialize(PaneStack.java:509)
            at com.sapportals.wdf.stack.Pane.initialize(Pane.java:504)
            at com.sapportals.wdf.stack.PaneStack.initialize(PaneStack.java:509)
            at com.sapportals.wdf.stack.Pane.initialize(Pane.java:504)
            at com.sapportals.wdf.stack.PaneStack.initialize(PaneStack.java:509)
            at com.sapportals.wdf.WdfCompositeController.doInitialization(WdfCompositeController.java:279)
            at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:659)
            at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
            at com.sapportals.htmlb.Container.preRender(Container.java:120)
            at com.sapportals.htmlb.Container.preRender(Container.java:120)
            at com.sapportals.htmlb.Container.preRender(Container.java:120)
            at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:414)
            at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:237)
            at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:130)
            at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
            at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
            at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:73)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
            at java.security.AccessController.doPrivileged(AccessController.java:204)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:180)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)[/code]
    I am using the SP16 Developer studio to create the scheduler task. There is nothing in the scheduler task just a log message. Still this fails. Is this a bug or I am missing something here.
    I would really appreciate any help in this regards.
    Thanks
    Ankur

    Hi,
    just a guess - do you have your Description field filled in your CM configuration for task? From the trace it seems it could not read the property DESCRIPTION from the Cm configuration.
    Just check it...
    Romano

  • Exchange 2010 GAL Export script working from EMS but not as a scheduled task

    I have been asked to get a script together to export the GAL on an Exchange 2010 server and then email it to a manager. I have been playing it with days, and have pruned it to the very minimum to at least try and get it working before improving it. At the
    moment I have the text as below:
    Del c:\GALexport.csv
    Get-Recipient -ResultSize unlimited | where {$_.HiddenFromAddressListsEnabled -eq $false} | Select DisplayName,PrimarySMTPAddress,sAMAccountName,alias | Export-Csv "c:\GALexport.csv"
    This works just fine in Exchange Management Shell and deletes the previous report before creating a new one. However, when I set it up as a scheulded task, it does nothing.
    The task is set up as follows:
    Action - Start a Program
    Program/ Script C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe
    Add arguments -version 2.0 -NonInteractive -WindowStyle Hidden -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; d:\Scripts\GalExportReport.ps1"
    This is set to run under my administrator account with the highest privileges and I have the logon as batch right.
    Unfortunately, when I run it as a scheduled task, nothing happens. The last run result is (0x0) and in the history it says 'task completed', but no report is produced. Can anyone advise please?

    Does it delete the c:\GALexport.csv file? If not, then its not even executing the ps1 script...
    - Open cmd prompt and run below command to confirm that there isn't any typo or any other small error...
    C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -version
    2.0 -NonInteractive -WindowStyle Hidden -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; d:\Scripts\GalExportReport.ps1"
    - If above works then something wrong with task scheduler configuration...
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Windows Server Backup scheduled task run successfully but backup do not start (not running) on Windows Server 2012

    Hi,
    A backup job has been setup on Windows Server 2012 (Platform: Win32NT; ServicePack: ; Version: 6.2.9200.0; VersionString : Microsoft Windows NT 6.2.9200.0) via Windows Backup Software UI (Local Backup 1.0).
    It is appearing as a scheduled task "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup" belonging to user 'nt authority\system' in task scheduler.
    The problem is that the Backup job never start despite the scheduled task running and completing successfully (when run automatically or manually)!
    Would you be able to explain why and assist in resolving that issue?
    Here is what we know:
    When the backup is run manually via the Windows Backup Software UI, it works fine.
    When the backup is run via command line (as set in schedule task) in a cmd command prompt (as local/domain 'administrator' or as 'nt authority\system' which is possible by running command prompt via 'PsExec.exe -i -s cmd'), something like "%windir%\System32\wbadmin.exe
    start backup -templateId:{f11eb3aa-74e7-4ff4-a57b-d8d567ee3f77} -quiet", it works fine.
    If you manually run the preset scheduled task while logged in as administrator, the task run and complete successfully but the backup job does not start.
    Idem if you schedule task is run automatically at scheduled time.
    The schedule task run and complete successfully but the backup job does not start.
    It is confirmed by running the following in a command prompt as 'nt authority\system':
    schtasks /run /tn "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup"
    SUCCESS: Attempted to run the scheduled task "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup".
    Despite success result, the Backup job does not start running...
    No errors or warning appears anywhere in Event Logs (Microsoft > Windows > Backup or Task Scheduler) nor in the scheduled task History tab. The schedule task complete successfully but no Backup job is run...
    If scheduled task automatically set by Windows Backup software is duplicated (copied) and set manually it runs fine as 'administrator' and as 'nt authority\system' (subject that 'nt authority\system' is added to the 'Backup Operators' AD group).
    Here is an export of the current pre-set schedule task, is there any settings that need to be changed to make it works?
    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Author>MYDOMAIN\SERVER1</Author>
        <SecurityDescriptor>D:AR(A;OICI;GA;;;BA)(A;OICI;GR;;;BO)</SecurityDescriptor>
      </RegistrationInfo>
      <Triggers>
        <CalendarTrigger id="Trigger 1">
          <StartBoundary>2014-07-14T21:00:00</StartBoundary>
          <Enabled>true</Enabled>
          <ScheduleByDay>
            <DaysInterval>1</DaysInterval>
          </ScheduleByDay>
        </CalendarTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <UserId>S-1-5-18</UserId>
          <RunLevel>HighestAvailable</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>true</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>false</StopOnIdleEnd>
          <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <Exec>
          <Command>%windir%\System32\wbadmin.exe</Command>
          <Arguments>start backup -templateId:{f11eb3aa-74e7-4ff4-a57b-d8d567ee3f77} -quiet</Arguments>
        </Exec>
      </Actions>
    </Task>
    Thank you in advance for your feedback.

    Once again, the issue is not to run the backup manually from the command line but to have it run via the scheduled task setup by the Windows Backup software.
    By default, the schedule task is to be run as NT Authority\System, and when run under this account, the backup does not start (even though account is member of Backup Operators) and job can manually be run via elevated command prompt. This is not a normal
    behavior and constitute a major bug in Windows Server 2012.
    From my understanding the NT Authority\System account is a built-in account from Windows that should by default be part of the Administrators group (built-in) even though it does not explicitly appears like it in AD by default.
    This account shall have by default Administrators rights and Backup Operators rights (via the Administrators group) without being explicitly added to those groups (http://msdn.microsoft.com/en-gb/library/windows/desktop/ms684190%28v=vs.85%29.aspx). By design
    it is supposed to be the most powerful account which has unrestricted access to all local system resources. If that is not the case (as it seems) then this would constitute a major bug in Windows Server 2012 edition.
    As said previously and as you confirmed, currently by default NT Authority\System on Windows 2012 server cannot start backup manually via an elevated command prompt unless it is manually added to Backup Operators (or Administrators) group. But wouldn't that
    constitute a bug of Windows Server 2012?
    Our server has not yet been restarted since I added NT Authority\System account to the Administrators group explicitly manually so I cannot yet confirmed it would sort the issue. Indeed it is heavily in use so cannot easily be restarted. Will confirm when
    done.
    We also have an additional problem where after a while of last reboot, part of the Exchange ECP can no longer be properly loaded in the web browser due to compilation error (compilation is done via NT Authority\System account which seems to no longer have
    sufficient right to compile .NET code). What is strange is that it works at first and then stop working at some point... I am hopeful that adding NT Authority\System to the Administrators group would sort this issue as well but once again, that shall not be
    needed!!!
    Could a Windows Server 2012 update introduced some security policy changes or else that prevent NT Authority\System to have full power?

  • CcmEval Scheduled task not being created with "Access Denied" error 0x80070005 only on XP machines

    Before coming on here I checked out http://social.technet.microsoft.com/Forums/en-US/ddbfe6c3-ee54-4b2a-a3a7-a6515d974f76/client-check-failed-on-xpserver-2003-systems-onlyccmeval-is-not-being-scheduled?forum=configmanagerdeployment (GPO
    to allow scheduled tasks by users) and another thread about a hotfix that seems to be pre-XP SP3 and pre-CM 2012 R2.
    That said, I'm having an issue many seem to have, but I can't find the answer. From what I understand SCCM uses the user context to create the CcmEval task, but in XP users cannot set a task to run as any other user (ie SYSTEM in this instance) so what is
    the workaround? I can't just give users Administrator permissions to install the client.
    The exact log entries are:
    <![LOG[Client evaluation task doesn't exist.]LOG]!><time="19:05:43.548+360" date="12-14-2013" component="CcmEvalTask" context="" type="2" thread="4356" file="ccmevalcheck.cpp:705">
    <![LOG[Client evaluation task is not found or is disabled or is not compliant, perform remediation]LOG]!><time="19:05:43.548+360" date="12-14-2013" component="CcmEvalTask" context="" type="2"
    thread="4356" file="ccmevalcheck.cpp:341">
    <![LOG[Attempting to recreate client evaluation task.]LOG]!><time="19:05:43.548+360" date="12-14-2013" component="CcmEvalTask" context="" type="1" thread="4356" file="ccmevalcheck.cpp:833">
    <![LOG[Task scheduler 2.0 is not supported, peform task registration with 1.0 API.]LOG]!><time="19:05:43.548+360" date="12-14-2013" component="CcmEvalTask" context="" type="1" thread="4356"
    file="ccmevaltask.cpp:345">
    <![LOG[Failed to delete task Configuration Manager Health Evaluation (0x80070002).]LOG]!><time="19:05:43.548+360" date="12-14-2013" component="CcmEvalTask" context="" type="2" thread="4356"
    file="ccmevaltask.cpp:379">
    <![LOG[Failed to create task item (0x80070005).]LOG]!><time="19:05:43.548+360" date="12-14-2013" component="CcmEvalTask" context="" type="3" thread="4356" file="ccmevaltask.cpp:387">
    <![LOG[Failed to create client evaluation task.]LOG]!><time="19:05:43.548+360" date="12-14-2013" component="CcmEvalTask" context="" type="2" thread="4356" file="ccmevalcheck.cpp:850">
    The bolded section is what's telling me it's Access Denied, and manual creation of any program task set to run as SYSTEM tells me the same- users cannot do this; only admins can.
    What can I do?

    So after sifting through some RSOP results and GPO objects I found a policy that wasn't necessarily prohibiting creation of them. (Not where you think it would be - under
    Administrative Templates > Windows Components > Task Scheduler > "Prohibit New Task Creation" -
    this was set to allow them) but this one I found was a File Permissions policy that set SYSTEM permissions to READ and EXECUTE.
    I've changed this to FULL CONTROL for SYSTEM. I'm unable to get on the machines to examine everything closely, but from what I can see at least one of them has remediated themselves and now has a successful client check in the console. Hopefully the rest
    of them will come around as GP updates itself and the client does an evaluation to remediate the Scheduled Task.
    Hopefully this helps someone in the future as well.

  • Scheduled Task will run on Windows 7, but will not run on Server 2008 R2

    So I have a scheduled task that uses nircmd to take a screenshot and then email it to a few company emails each night.  With our old Exchange 2003 server, everything works prefectly on the 2008 R2 server (using SMTP).  But since we upgraded to
    Exchange 2010 it no longer seems to work (at least it never sends the email anymore).
    What confuses me more is that this exact task (I exported it) runs perfectly fine on a Windows 7 Pro computer, even using the new Exchange 2010 SMTP address.
    Both machines are logged in as the same user.  I can even login as the domain administrator on each machine and still have the same issue.  Only the Windows 7 Pro machine will successful run the task.  To restate it, the Server 2008 R2 server
    will run the task successfully if I use the old Exchange 2003 SMTP address.
    Thanks for any advice!

    Hi joshz451z,
    Would you please let us know current situation of this issue? Did you refer to Dave's suggestion and check that relevant logs? If any update, please feel free to let us know.
    Best regards,
    Justin Gu
    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]

Maybe you are looking for

  • Installing NW CE7.1 and EP 7.0 on one machine

    Hello All, i have a question i am trying to install NW CE 7.1 and NW EP 7.0 on one windows 2003 ser machine but both are with different DBs EP with MSSQL 2005 server and CE with SAPDB. EP is based upon JDK 1.4 while NW CE 7.1 is based upon JDK 1.5. I

  • The operation has timed out

    Hello Forum, I was running a report that was built on report builder at some point an error message of the operation has timed out will come up. I have set the time out to 0 values and more than 600 seconds too. On SQL the report ran within 6 minute.

  • Crstal Reports: "Failed to retrieve data from the database"

    Running a report in crystal report from SAP 8.81 using the following parameters: CardCode, GroupCode, Date gives the following error: "Failed to retrieve data from the database" "Conversion failed when to converting the nvarchar value to data type in

  • Skype Contact Online Message in Windows Ray

    I would like to capture when my contacts come online. Is there anywhere this information is stored? I do see the message pop up in the Wiindows tray, but I must be on my system in order to see. Is this information stored in a file somewhere? I want t

  • Aperture images make for small PDF at "Best" setting?

    I am creating tear sheets and I was saving them as different size PDS via the File/Export/pdf/best If I use images from my iPhoto library, added through the media browser the "Best" PDF is between 10 and 20MB, as I would expect. If I replace the imag