Accessing application-config property in Task scheduler

Hello All,
Is it possible to access either a application-config property or a service-config property defined in the portalapp.xml file for a portal SCHEDULER TASK? I want to set some properties in the portalapp.xml and get them at runtime.
Thanks,
Asheesh

Hello Detlev,
In the Init method of the RFServiceWrapper I put the following code:
String val1 = mm_serviceContext.getServiceProfile().getProperty("ServTest");
String val2 = mm_serviceContext.getServiceProfile().getProperty("test");
but I don't seem to get the property values defined in the portalapp.xml Here is the portalapp.xml which I have:
<?xml version="1.0" encoding="utf-8"?>
<application>
  <application-config>
    <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
    <property name="test" value="AppTest"/>
  </application-config>
  <components/>
  <services>
    <service name="RFServiceWrapper">
      <service-config>
        <property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/>
        <property name="startup" value="true"/>
        <property name="ServTest" value="ServTest"/>
      </service-config>
    </service>
  </services>
</application>
Any ideas on what might be wrong?
Thanks,
Asheesh

Similar Messages

  • Get Application config property in Task scheduler

    Hi,
    I want access to application-config property in Task scheduler.
    At init method of RFServiceWrapper I can do something like this (mm_serviceContext.getServiceConfig().getProperty("XPTO") and than make public getters for the property.
    My problem is when I wont access that values. I Think I have to make something like PortalRuntime.getRuntimeResources().getService(????).getXPTO…
    What should I put in the call of getService?
    Best Regards,
    Pedro

    Hi Pedro,
    You should call like this:
    RFServiceWrapper service = (RFServiceWrapper)PortalRuntime.getRuntimeResources().getService(RFServiceWrapper.KEY);
    service.getXPTO...
    And ofcourse your KEY should be unique and look some thing like this:
    public static final String KEY = "YourApplicationName.YourServiceName";
    YourApplicationName = <b>YourParFileName</b>
    YourServiceName = As declared in your <b>portalapp.xml</b>
    Greetings,
    Praveen Gudapati
    p.s Points are always welcome for helpful answers
    Message was edited by:
            Praveen Gudapati

  • Printing from excel by task scheduler

    I have an *.xslx file that imports data from Access daily.My Access is trigger automatically by task scheduler and my excel would refresh its data  from this access and presenting it as Charts.I would like to print these as pdf automaticallyby task
    scheduler. can anyone advise me?
    Tks

    Hi,
    We may accomplish it through the script and enable in in task schedule.
    Here is a thread which use the script to run the task automatically.
    How can I print Excel spreadsheet files automatically?
    http://superuser.com/questions/332963/how-can-i-print-excel-spreadsheet-files-automatically
    Please note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    For further help how to write and use the script, I recommend you go to Script forum for further help.
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    Regards,
    Ada Liu
    TechNet Community Support

  • 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

  • KM Task Scheduler: How to create custom/editable properties?

    Dear All,
    I created a KM Scheduler Task using the NDWS Wizard.
    The application was successfully deployed and the task runs fine. However, I would like to define some custom properties that could be edited by using the portal, like the standard ones such as Priority, CM Systems, etc.
    Is that possible?
    I already tried to add it in the portalapp.xml, and also in the auto generated files that are in data and meta folders (..co.xml), but the new properties have not appeared in the screen.
    Thanks in advance,
    Marco

    Hi Romano,
    Thanks for the input.
    Do you know in which of the .co.xml files should be added? There is one in "data" and another in "meta" folders.
    The one in "data" folder (actually in one of the subfolders of "data folder") has the following content:
    <?xml version="1.0"  encoding="UTF-8" ?>
    <Configurable configclass="domain.task">
    <property name="name" value="domain.task" />
    <property name="active" value="true" />
    <property name="description" value="Task Test" />
    </Configurable>
    I added in this file a new property but no result.
    The one in meta folder (also in a subfolder of it) has the following:
    <ConfigClass name="domain.task"  extends="SchedulerTask">
    <attribute name="class" type="class" constant="domain.task"/>
    </ConfigClass>
    In this one when I tried to add a new property the task simple does not show, maybe I am not using the correct syntax.
    Do you know in which of these files I should put the custom property and using which syntax?
    Thanks in advance,
    Marco

  • 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.
    ¯\_(ツ)_/¯

  • Windows 2008 R2 - Poor performance of Task Scheduler with script

    Hello,
    I have some reports to make (using macro on an access database) every day. When I launch the command line on interactive mode (cmd windows) the process msaccess use 20% of processing and Excel use 2%. All working fine.
    When I launch from the Task Scheduled, msaccess and excel use 0%. Command line and the account are the same.
    I try to change the priority to realtime -> same result
    I try to use a psexec -i (for interactive mode) -> same result
    I put the account to the service group (log on as a service) -> same result (Processor scheduling adjusted for Background Services)
    Any idea ?
    Thx for your help

    You should be able to use CreatObject method of VBScript. I'd ask them over here.
    Visual Basic for Applications forum on MSDN
    Office Access forums on Microsoft Answers
    Also
    How to use command-line switches in Microsoft Access
    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.

  • Task Scheduler UI crashes upon launch

    Hello,
    Last week, a customer called to report that her workstation was not booting. Long story short: There was a problem with the hard drive. I cloned the drive to a new disk and that brought the system back up. 
    While looking for damage after the clone, I noticed that the Task Scheduler UI does not launch. Specifically, if you open "Task Scheduler" from the Start menu, nothing appears. If you access the Task Schedule from Computer Management, Computer
    Management closes unexpected. (The same thing happens when you add-in the Task Scheduler to a new MMC.)
    To be sure, this problem could pre-date the hard drive problem. I really don't know.
    I have no reason to believe that task scheduling isn't working. The service runs and I've scheduled a task from the command line successfully. But, admittedly, the loss of user-friendliness is kind of a big deal to the end user. 
    The only evidence I've been able to track down so far is that with each crash, the Application Log shows
    EventID 1023: 
    .NET Runtime version 2.0.50727.5477 - Fatal Execution Engine Error (000007FEF80C54F6) (80131506)
    What I've tried:
    1. I've run the dotnet repair tool from Microsoft which found problems with 4.5 and repaired them.
    2. I ran SFC which reported it found problems and fixed them.
    3. I've tried known-good copies of Tasksched.msc.
    4. I've cleared out both the Tasks folder and the cache in the registry to see if a particular entry was causing the crash. No difference. 
    What am I missing?
    Cheers,
    m

    Hi,
    What’s the result after you run this repair tool?
    Microsoft .NET Framework Repair Tool
    http://www.microsoft.com/en-us/download/details.aspx?id=30135
    check if you can apply this hotfix:
    FIX: The top of the call stack shows the mscorwks!WKS::gc_heap::mark_object_simple function after an exception occurs in a .NET Framework 2.0-based application
    http://support.microsoft.com/kb/974372
    Alex Zhao
    TechNet Community Support

  • Why won't this script run in task scheduler properly?

    Hello,
    I've created a script find all opened windows applications on the local computer.  The script creates an html outfile to report the opened windows and who is logged in. 
    When I run this script from the Powershell ISE or from Powershell command line it works fine.  When I schedule this script to run in windows Task Scheduler (either in Windows 7 or on Windows Server 2008) and I use 'Run only when user is logged in' the
    script again runs fine and reports in the html file the opened windows.
    But when I am logged into the server and I schedule this script to run in windows Task Scheduler (either in Windows 7 or on Windows Server 2008) and I use 'Run whether user is logged in or not' the script will run without error, it creates the html report,
    but it does not list the opened windows applications  That part of the report is missing.
    Why would this happen?  Do I need to change something in my script to make this script work whether or not someone is logged in?
    Here is the script:
    $a = "<style>"
    $a = $a + "BODY{background-color:peachpuff;}"
    $a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"
    $a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}"
    $a = $a + "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:PaleGoldenrod}"
    $a = $a + "</style>"
    get-wmiobject Win32_ComputerSystem | ConvertTo-HTML -head $a -body "<H2>Logged in UserID</H2>" -property username | Out-File C:\Powershell_Scripts\Test.htm ; Get-Process |where {$_.mainWindowTItle} |Select-Object name,mainwindowtitle | ConvertTo-HTML -head $a -body "<H2>Open Applications</H2>" | Out-File C:\Powershell_Scripts\Test.htm -Append
    Thank you.

    Its hard to get a full grasp of the errors from task scheduler.  Try rewriting the Action portion of the Scheduled Task in a cmd prompt (with or without the elevated credentials). When the cmd line runs, the cmd host will convert to a black
    powershell host and you will be able to read the errors.
    C:\> powershell.exe -command { update-help }
    or
    C:\> powershell.exe -noprofile -file c:\scripts\dosomething.ps1
    I solved a similar problem this week.  When I ran my script from within powershell, all the required modules are normally present and the script ran fine.  It was pretty clear which module I forgot to load at the beginning of the script once I could
    watch it from start to finish
    or, your script could dump the Error logs to a text file.
    $Error | select * | out-file c:\errors.txt
    Not the point.  Look at the task scheduler history first.  If the history is not enabled enable it. If it shows no error code then the script ran successfully but had an internal error.
    There is only one place that an error can occur. This will trap it and set the exit code which will be visible in the event history:
    $a=@'
    <style>
    BODY{
    background-color:peachpuff;
    TABLE{
    border-width: 1px;
    border-style: solid;
    border-color: black;
    border-collapse: collapse;
    TH{
    border-width: 1px;
    padding: 0px;
    border-style: solid;
    border-color: black;
    background-color:thistle;
    TD{
    border-width: 1px;
    padding: 0px;
    border-style: solid;
    border-color: black;
    background-color:PaleGoldenrod
    </style>
    Try{
    $username=get-wmiobject Win32_ComputerSystem |%{$_.username}
    $precontent="<H2>Logged in User: $username</H2><br/><H2>Open Applications</H2><br/>"
    $html=Get-Process |where {$_.mainWindowTItle} -ErorAction Stop|
    Select-Object name,mainwindowtitle |
    ConvertTo-HTML -cssuri c:\scripts\style.css -preContent $precontent -body "<body bgcolor='peachpuff'/>"
    $html | Out-File C:\Scripts\Test.htm -ErrorAction Stop
    Catch{
    exit 99
    This is really an exercise in how to manage background tasks.
    Using an error log is good assuming it is not the file system that you are having an issue with
    ¯\_(ツ)_/¯

  • Unable to access applications in workspace,shared services

    Hi ,
    I am Unable to access applications in workspace and shared services on EPM 11.1.1.3. It happened after normal shutdown/startup scripts were run.
    But when I reconfigure the Weblogic web server and run the services again I can access the applications.This is happening frequently now.
    Is this anything related to user profiles on the server as we are migrating these to other server.
    Can any one help me with this .
    Please find the Shared services log below:
    <22-Oct-2010 10:25:19 o'clock BST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    D:\bea\weblogic92\platform\lib\p13n\p13n-schemas.jar;D:\bea\weblogic92\platform\lib\p13n\p13n_common.jar;D:\bea\weblogic92\platform\lib\p13n\p13n_system.jar;D:\bea\weblogic92\platform\lib\wlp\netuix_common.jar;D:\bea\weblogic92\platform\lib\wlp\netuix_schemas.jar;D:\bea\weblogic92\platform\lib\wlp\netuix_system.jar;D:\bea\weblogic92\platform\lib\wlp\wsrp-common.jar>
    <22-Oct-2010 10:25:21 o'clock BST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.4.0-90_CR358515-94243-1.5.0_12-20080118-1154-windows-ia32 from BEA Systems, Inc.>
    <22-Oct-2010 10:25:25 o'clock BST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP3 Mon Mar 10 08:28:41 EDT 2008 1096261 >
    <22-Oct-2010 10:25:29 o'clock BST> <Emergency> <Management> <BEA-141151> <The admin server could not be reached at http://localhost:7001.>
    <22-Oct-2010 10:25:29 o'clock BST> <Info> <Configuration Management> <BEA-150018> <This server is being started in managed server independence mode in the absence of the admin server.>
    <22-Oct-2010 10:25:29 o'clock BST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : D:\bea\license.bea>
    <22-Oct-2010 10:25:29 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <22-Oct-2010 10:25:29 o'clock BST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <22-Oct-2010 10:25:30 o'clock BST> <Notice> <Log Management> <BEA-170019> <The server log file D:\Hyperion\deployments\WebLogic9\servers\SharedServices9\logs\SharedServices9.log is opened. All server side log events will be written to this file.>
    <22-Oct-2010 10:25:47 o'clock BST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <22-Oct-2010 10:25:57 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <22-Oct-2010 10:25:57 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    log dir isD:\Hyperion\logs\SharedServices9
    urlManifest zip:D:/Hyperion/deployments/temp/servers/SharedServices9/tmp/_WL_user/interop/tthmcu/war/WEB-INF/lib/interop-mmc.jar!/META-INF/MANIFEST.MF
    Shared Services Version: 11.1.1.3.24
    Shared Services Drop Number: 6
    Attempting to verify the database configuration
    Attempting to verify the database configuration
    Database configuration test passed.
    22 Oct 2010 10:26:38 - org.apache.slide.common.Domain - INFO - Auto-Initializing Domain
    22 Oct 2010 10:26:38 - org.apache.slide.common.Domain - INFO - Configuration found in classpath
    22 Oct 2010 10:26:38 - org.apache.slide.common.Domain - INFO - Domain configuration : {org.apache.slide.lock=true, org.apache.slide.versioncontrol=true, org.apache.slide.debug=false, org.apache.slide.search=true, org.apache.slide.security=true, org.apache.slide.urlEncoding=UTF-8, org.apache.slide.domain=D:/Hyperion/deployments/WebLogic9/SharedServices9/config/Domain.xml}
    configURL: file:///D:/Hyperion/deployments/WebLogic9/SharedServices9/config/CSS.xml
    Done initialize: com.hyperion.css.CSSAPIImpl@283baf
    connection pool registered:dbcpPool-org.apache.commons.pool.impl.GenericObjectPool@27efaa
    connection pool registered:dbcpPool-org.apache.commons.pool.impl.GenericObjectPool@454a3b
    CMSOfflineServlet Initialized
    Adding audit listener
    Shared Services Initialized Successfully
    <22-Oct-2010 10:26:56 o'clock BST> <Warning> <Log Management> <BEA-170011> <The LogBroadcaster on this server failed to broadcast log messages to the admin server. The Admin server may not be running. Message broadcasts to the admin server will be disabled.>
    <22-Oct-2010 10:26:56 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <22-Oct-2010 10:26:56 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <22-Oct-2010 10:26:57 o'clock BST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias hyperion from the jks keystore file D:\hyperion_SSL_Repository\hyperion.jks.>
    <22-Oct-2010 10:26:58 o'clock BST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file D:\bea\JROCKI~1\jre\lib\security\cacerts.>
    <22-Oct-2010 10:26:58 o'clock BST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 10.86.57.43:28443 for protocols iiops, t3s, ldaps, https.>
    <22-Oct-2010 10:26:58 o'clock BST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 10.87.248.108:28443 for protocols iiops, t3s, ldaps, https.>
    <22-Oct-2010 10:26:58 o'clock BST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[2]" is now listening on 127.0.0.1:28443 for protocols iiops, t3s, ldaps, https.>
    <22-Oct-2010 10:26:58 o'clock BST> <Warning> <Server> <BEA-002611> <Hostname "127.0.0.1", maps to multiple IP addresses: 10.86.57.43, 10.87.248.108, 127.0.0.1>
    <22-Oct-2010 10:26:58 o'clock BST> <Warning> <Server> <BEA-002611> <Hostname "LGWHYPWEB.uk.baa.com", maps to multiple IP addresses: 10.86.57.43, 10.87.248.108, 127.0.0.1>
    <22-Oct-2010 10:26:58 o'clock BST> <Notice> <WebLogicServer> <BEA-000358> <Started WebLogic Independent Managed Server "SharedServices9" for domain "WebLogic9" running in Production Mode>
    <22-Oct-2010 10:26:58 o'clock BST> <Warning> <Server> <BEA-002611> <Hostname "LGWWEB026.uk.baa.com", maps to multiple IP addresses: 10.86.57.43, 10.87.248.108, 127.0.0.1>
    <22-Oct-2010 10:26:58 o'clock BST> <Warning> <JMX> <BEA-149510> <Unable to establish JMX Connectivity with the Adminstration Server AdminServer at <JMXServiceURL:null>.>
    <22-Oct-2010 10:26:58 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <22-Oct-2010 10:26:58 o'clock BST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    <22-Oct-2010 10:27:08 o'clock BST> <Warning> <Security> <BEA-090475> <Plaintext data for protocol HTTP was received from peer LGWHYPWEB.uk.baa.com - 10.86.57.43 instead of an SSL handshake.>
    <22-Oct-2010 10:28:36 o'clock BST> <Warning> <Security> <BEA-090475> <Plaintext data for protocol HTTP was received from peer lgwdbs026.uk.baa.com - 10.86.41.33 instead of an SSL handshake.>
    22-Oct-2010 10:28:38, /files, HEAD, 401 "Unauthorized", 125 ms, %v
    22-Oct-2010 10:28:38, /files, HEAD, 200 "OK", 266 ms, %v
    22-Oct-2010 10:28:40, /files, HEAD, 401 "Unauthorized", 16 ms, %v
    22-Oct-2010 10:28:41, /files, HEAD, 200 "OK", 94 ms, %v
    22-Oct-2010 10:28:42, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:28:42, /files, HEAD, 200 "OK", 93 ms, %v
    22-Oct-2010 10:28:43, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:28:43, /files, HEAD, 200 "OK", 94 ms, %v
    22-Oct-2010 10:28:44, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:28:44, /files, HEAD, 200 "OK", 78 ms, %v
    22-Oct-2010 10:28:45, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:28:45, /files, HEAD, 200 "OK", 93 ms, %v
    22-Oct-2010 10:28:47, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:28:47, /files, HEAD, 200 "OK", 78 ms, %v
    22-Oct-2010 10:28:48, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:28:48, /files, HEAD, 200 "OK", 78 ms, %v
    <22-Oct-2010 10:29:40 o'clock BST> <Warning> <Security> <BEA-090475> <Plaintext data for protocol HTTP was received from peer lgwapp026.uk.baa.com - 10.86.51.104 instead of an SSL handshake.>
    <22-Oct-2010 10:30:16 o'clock BST> <Warning> <Security> <BEA-090475> <Plaintext data for protocol HTTP was received from peer lgwapp026.uk.baa.com - 10.86.51.104 instead of an SSL handshake.>
    <22-Oct-2010 10:32:25 o'clock BST> <Warning> <Security> <BEA-090475> <Plaintext data for protocol HTTP was received from peer LGWHYPWEB.uk.baa.com - 10.86.57.43 instead of an SSL handshake.>
    22-Oct-2010 10:32:43, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:32:43, /files, HEAD, 200 "OK", 78 ms, %v
    22-Oct-2010 10:32:44, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:32:44, /files, HEAD, 200 "OK", 63 ms, %v
    22-Oct-2010 10:32:45, /files, HEAD, 401 "Unauthorized", 0 ms, %v
    22-Oct-2010 10:32:45, /files, HEAD, 200 "OK", 63 ms, %v
    <22-Oct-2010 10:32:46 o'clock BST> <Warning> <Security> <BEA-090475> <Plaintext data for protocol HTTP was received from peer LGWHYPWEB.uk.baa.com - 10.86.57.43 instead of an SSL handshake.>
    <22-Oct-2010 10:34:00 o'clock BST> <Warning> <Security> <BEA-090475> <Plaintext data for protocol HTTP was received from peer LGWHYPWEB.uk.baa.com - 10.86.57.43 instead of an SSL handshake.>
    <22-Oct-2010 10:35:28 o'clock BST> <Warning> <Security> <BEA-090475> <Plaintext data for protocol HTTP was received from peer LGWHYPWEB.uk.baa.com - 10.86.57.43 instead of an SSL handshake.>
    log dir isD:\Hyperion\logs\SharedServices9
    urlManifest zip:D:/Hyperion/deployments/temp/servers/SharedServices9/tmp/_WL_user/interop/tthmcu/war/WEB-INF/lib/interop-mmc.jar!/META-INF/MANIFEST.MF
    Shared Services Version: 11.1.1.3.24
    Shared Services Drop Number: 6
    Populating Application Info
    Getting LCM callback info from Registry for product: HUB
    LCM Callback: https://LGWWEB026.uk.baa.com:28443/interop/framework/lcm/HSSMigration
    Populating Product Info
    Thanks in advance
    Edited by: 790426 on 25-Oct-2010 06:17

    You must first check if you have configured the web server to include the hfm/planning products.
    Then you can refer to the thread below:
    Not able to see Consolidation Administration
    The latter definitely applies to version 9.3.1, but it could be helpful.

  • KM Task Scheduler , retrieve IPortalComponentRequest request

    Hello,
    I would like to use KM Task Scheduler :
    public void run( String id, Properties properties ) {
         IPortalComponentRequest request;
         String location = request.getPublicResourcePath();
    It's normal, it doesn't work ! How can I use IPortalComponentRequest for my schedule task ?
    Thanks a lot
    Best regards,
    Aurélien

    Aurelien,
    ok then, place your xml file into any package of your project. For example:
    In package called "my.package.files" place file "myfile.xml"
    then wherever within your code (let's assume you have an class called MySchedullerTask) call next structure:
    URL url = MySchedullerTask.getClass().getClassLoader().getResource("my/package/files/myfile.xml");
    and then work with the file.
    Just one more note: non Java files are not build always into application PAR acrhive.
    To do so, you have to check in option:
    "Yes, I want the non java sources includet into the portal components jars"
    You will find this option in NWDS:
    Window -> Preferences -> SAP Enterprise Portal -> Application Development Studio.
    regards
    mz

  • Use a "Write" Event on a Specific Drive or to a Specific Folder to Trigger a Task in Task Scheduler

    I first posted this question on the Microsoft Community forum. It was suggested that I repost it here.
    I have a question!
    (Pleas forgive the long post...)
    What I am trying to do: (This is what I have not yet figured out!)
    I am trying to figure out how to trigger a task, in Windows Task Scheduler (WTS), whenever a "Disk Write" event occurs on a specified drive on the machine. - Or, more specifically, whenever a new file or folder is written or
    saved to a specified Folder, or a specific Disk Partition, or a specific Hard Disk on the machine - whichever is more relevant for the end goal.
    The overall goal:
    When a "disk write" operation occurs and data is written to a specified location on a Hard Drive, start a Program at the beginning of the following hour, that will run a backup of the contents
    of that location, (after - of course - the new data has been written). After the backup is complete, disallow the program from being started again at the beginning of the next hour, unless more data is written to the specified location beforehand.
    Example:
    At 2:27pm, I save a new word document to "D:\My Folder\". When the new Word doc file is saved to "D:\My Folder\", my preferred Backup software application is then scheduled to run a backup at the beginning of
    the following hour - at 3:00pm - which will then create a new backup of "D:\My Folder\".
    The backup software will NOT be scheduled to run again at the next following hour - at 4:00pm - unless another file or additional data is written to "D:\My Folder\" - between 3:00pm and 4:00pm.
    Summary:
    The goal here is to only run a backup at the beginning of the next hour, following a “disk write” event to a specified location on the hard drive.
    Steps that I have, so far, on how to make this happen:
    Whenever data is written to a specified location on a hard drive (i.e. "D:\My Folder\"), "Task A," in Windows Task Scheduler, will be triggered to execute its action.
    The Action in "Task A" will run a script that changes the Status of "Task B" to ENABLED.
    The Action in "Task B" will, on a continuous hourly schedule, start a program that will perform work on the machine. (In this case, it will run a Backup Task in my preferred backup software.)
    Upon completion of work by that program (the Backup software), that program will run another script that will change the Status of "Task B" back to DISABLED; preventing "Task B" from continuing that program every hour
    according to its hourly schedule.
    How do I do this: ... ?
    The thing holding me back on making this work is figuring out how to identify the source that generates the “disk write” event and event ID I need, so I can use it to trigger a task in Windows Task Scheduler - in the way that I need. Furthermore,
    the “disk write” event needs to specific to a disk drive that I specify and if at all possible, specific to a location that I specify, i.e. “D:\My Folder\”.
    Any help on this as well as other suggestions on making this work is greatly appreciated!
    Ryan A Miller

    Hello Ryan A Miller,
    What is your current situation?
    Have you try the script as  Frederik Long mentioned?
    To receive better support, it is recommended to post in the TechNet Script forum.
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    The professionals there will be glad to help you.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

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

  • Exchange 2013 mailbox auditing command with showdetails parameter in ps1 script is not working via task scheduler

     
    Hi All ,
    In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition.
    We have enabled mailbox auditing for few mailboxes and also we have made simple powershell script with only the below mentioned commands .when i run the  ps1 script  in exchange management shell ,i can able to get the relevant output.
    CMDLETS in powershell script :
    Search-MailboxAuditLog -StartDate ((Get-Date).AddHours(-24)) -EndDate (Get-Date) -showdetails | fl >e:\output.txt
    Note : we are having only the above commands in ps1 script , apart from that we don't have anything in it .
    Sametime i have scheduled the same powershell script via task scheduler .But i cannot able to get the valid output ,instead of that i was getting a blank output file with no data in it . 
    Steps handled on my side to run the powershell script in task scheduler: 
    1.when i remove the parameter showdetails in the ps1 script ,i can able to get the output in the txt file .But in my scenario showdetails is the only parameter which will brought me more and in depth details about mailbox auditing.
    The Difference what i have seen between exchange 2010 and exchange 2013 
    when in run the same powershell script via task scheduler in exchange 2010 enterprise environment installed in windows server 2008 r2 enterprise OS, i can able able to get the proper output without removing the showdetails parameter .
    I am using the below methods to run the ps1 file via task scheduler in exchange 2013 environment .
    program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add arguments : -PSConsoleFile "E:\Program Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -Command ". 'C:\scripts\MailboxAuditReport\test.ps1'"
    I have mentioned the error below and that is the one what i have faced, when i try to run the PS1 script directly in windows powershell and not in exchange management shell .
    Error message : "the requesting account does not have permission to access the audit log"
    Please help me out to resolve this case .
    Thanks 
    S.Nithyanandham

    Hi All ,
    In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition.
    We have enabled mailbox auditing for few mailboxes and also we have made simple powershell script with only the below mentioned commands .when i run the  ps1 script  in
    exchange management shell,i can able to get the relevant output.
    CMDLETS in powershell script :
    Search-MailboxAuditLog -StartDate ((Get-Date).AddHours(-24)) -EndDate (Get-Date) -showdetails | fl >e:\output.txt
    Note : we are having only the above commands in ps1
    script , apart from that we don't have anything in it .
    In case, if i have scheduled the same powershell script via task scheduler .But i cannot able to get the valid output ,instead of that i was getting a blank output file with no data in it . 
    Steps
    handled on my side to run the powershell script in task scheduler: 
    1.when i remove the parameter showdetails
    in the ps1 script ,i can able to get the output in the txt file .But in my scenario showdetails is the only parameter which will brought me more and in depth details about mailbox auditing.
    The
    Difference what i have seen between exchange 2010 and exchange 2013 
    when in run the same powershell script via task scheduler in exchange 2010 enterprise environment installed in windows server 2008 r2 enterprise OS, i can able able to get the proper output without removing the showdetails parameter .
    I
    am using the below methods to run the ps1 file via task scheduler in exchange 2013 environment .
    program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add arguments : -PSConsoleFile "E:\Program
    Files\Microsoft\Exchange Server\V15\Bin\exshell.psc1" -Command ". 'C:\scripts\MailboxAuditReport\test.ps1'"
    I have mentioned the error below and that is the one what i have faced, when i try to run the PS1 script directly in windows powershell and not in exchange management shell .
    Error message : "the requesting account does
    not have permission to access the audit log"
    Please help me out to resolve this case .
    Thanks 
    S.Nithyanandham

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

Maybe you are looking for

  • Script crashes IDE and Flash Player but works in browsers

    I'm building a game program and I've got a script that loads an external swf, and then duplicates the clip for the user to play. It worked until a few days ago when I reinstalled my OS (Mac OS 10.4.11) to fix an unrelated problem. The strange thing i

  • Exception Handling in Stripes framework

    Pls help me to setup the Exception handling... 1.how to catch the exception occuring in ActionBean method,using our custom exception handle method? not sure to integrate this both? http://stripesframework.org/display/stripes/Exception+Handling becas

  • When creating a travel expense, an incorrect input tax code is defaulted

    Dear experts, I'm new with SAP customizing in Travel Management. I have an issue that I cannot solve and I've tried almost all possibilities.When an employee tries to create a travel expense in PR05, him being from Belgium, the default input tax code

  • Complex EVDRE column structure

    Hello, I would like to implement a EVDRE report with 3 nested column dimension like this: Entity1                    Entity1                    Entity1                    Entity2                    Entity2                    Entity2          ... 2010

  • In t-code COHV: is it possible to take out material-availability-check?

    Hi Friends, In t-code COHV: is it possible to take out material-availability-check? Regards, Will.