OIM Scheduled tasks stop running

Hi All,
for some reason scheduled tasks are not running even after trying to force it manually
any ideas would be helpful
Thanx
Fred

Hi ,
check the log file, to identify why it;s stopping , any exception .
Also, If you are using oc4j as app server then , you need to give current time+1 min. in start time to allow cronjob trigger your task.
Regards,
Ankit

Similar Messages

  • XLreporter scheduled tasks stopped running

    Hi Experts,
    We are experiencing problems on XLreporter scheduled tasks.
    They worked properly with sending emails as daily routine. However for some reason they stopped running in windows Task Scheduler. We can still run the jobs thru manually in XLreporter Organizer with correct result and sucessful logs. In the mean time the service of Task Scheduler is ok for other tasks than XLreporter.
    What we can see in Event Viewer is the error message with two other information message below for each run:
    Error:
    The VB Application identified by the event source logged this Application IXExecutor: Thread ID: 5904 ,Logged: An error occured while Initializing Job
    Object variable or With block variable not set
    Info:
    The VB Application identified by the event source logged this Application IXExecutor: Thread ID: 5904 ,Logged: Before deleting mclsIFDSApp
    Info:
    The VB Application identified by the event source logged this Application IXExecutor: Thread ID: 5904 ,Logged: IXExecutorProxy - ExecuteJob: Before Exit Sub
    The SBO version 8.8 PL14 on windows server 2003 R2 SP2 ,SQL Server 2005
    Can you please advise? Many thanks Ryan
    Edited by: Ryan Fu on Jun 22, 2011 3:55 AM

    Just found this one too:
    Note 855021
    If you want scheduled report jobs in XL Reporter to be executed independently of the logon status of the user who defined the job, you must allow Microsoft Excel to be started by the scheduled job.
    1. Choose Run from the Windows Start menu and type dcomcnfg.exe. A window called Component Services appears. Choose Component Services->Computers->My Computer->DCOM Config->Microsoft Excel Application from the list.
    2. Right-click on Microsoft Excel and choose Properties. Choose the Security tab.
    3. Choose Customize under Access Permissions and choose Edit...
    4. Choose Add... and choose Users and/or User Groups that require access to Excel. Then choose OK.
    5. Repeat the procedure for Customize under Launch Permissions.
    6. Choose the Identity tab.
    Choose This User.
    Choose a user that is a member of the administrator group from the browse button and enter password.
                  This user will be the one that is given access to Microsoft Excel when executing scheduled jobs. Normally this would be the Administrator user.

  • OIM - Scheduled Tasks - Validade/Enable

    Hi All,
    I am quite new to OIM, two days working with it, and I have some questions that seem to be easy to answer but I could not find it here, neither on the internet (or I am not using the correct keywords).
    In our OIM environment we have some custom recon scheduled tasks, developed by oracle, and, as our internal processes with the targets are not working properly still, sometimes the scheduled tasks fail and when they fail they got disabled too. Most of the times they fail is because its input file, a CSV file coming from a target, is not there.
    Based on it, my questions are:
    1. I know there is a way to list all scheduled tasks and their status using the API, check this link: http://www.rameshgk.com/blog/2010/09/23/oim-scheduled-task-for-monitoring-other-scheduled-tasks/, but is there a way to do it by command line in Unix?
    2. Is there a way, when the schedulted tasks got disabled due to a failure, to enable it automatically, via API or any other method, without the need to go to web client?
    I was forgetting to comment one thing, unfortunately, I don't have access to the OIM database!
    Thanks for your attention!
    Regards.

    You can execute the scheduled task from the command line and use the following API:
    void updateScheduleTask(long scheduledTaskKey,
    java.util.Map attributes)
    throws Thor.API.Exceptions.tcAPIException,
    Thor.API.Exceptions.tcScheduledTaskNotFoundException,
    Thor.API.Exceptions.tcInvalidAttributeException,
    Thor.API.Exceptions.tcAttributeMissingException,
    tcAPIExceptionUpdates schedule task information based on the attribute that are passed to this method
    Parameters:
    scheduledTaskKey - the scheduled task key
    attributes - a map of updated attributes valid attributes
    •Task Scheduler.ClassName
    •Task Scheduler.Disable
    •Task Scheduler.Frequency Type
    •Task Scheduler.Interval
    •Task Scheduler.Key
    •Task Scheduler.Last Start Time
    •Task Scheduler.Last Stop Time
    •Task Scheduler.Max Retries
    •Task Scheduler.Name
    •Task Scheduler.Next Start Time
    •Task Scheduler.Retry Count
    •Task Scheduler.Start Time
    •Task Scheduler.Status
    You can provide the Frequency Type and Next Start Time and then it should be picked up. Just like when you are in the design console and you have it set to run once and you clear the entries in the time and set it to the current one.
    -Kevin
    Please don't forget to give points where earned on helpful posts.

  • OIM Schedule task query

    Hi
    I have installed two separate weblogic servers (non-cluster) and installed OIM 9101 on them with same Oracle Database. This system does not include any other servers. I am planning to use a hardware load balancer on top of these two OIM Weblogic servers.
    I have deployed EBS trusted source recon connector. This connector has a recon schedule task which run at every 6 hrs. It was working fine on single node OIM weblogic pair. Now I have two weblogic servers with corresponding OIM servers. I wonder how the schedule task will work now. which OIM will have the priority ??
    any idea about this..

    Disable schedule task in one of the servers, so that it does not account for running schedule purposes. Go to xellerate/config/xlConfig.xml
    You can find the scheduler section and change the StartOnDeployment parameter to false. SO that this server never runs the scheduler.
    Suren- The database is same ! ! !
    Thanks
    Sunny

  • Scheduled Tasks Stop Working Suddenly

    We have ColdFusion 10 installed on Windows Server 2008 with IIS 7.5.
    We are running one additional instance of Coldfusion seperate from the cfusion instance but on the same physical server. Our scheduled tasks, on this instance, had been running without any problems for quite some time now. Suddenly about 3 weeks ago after a server reboot our tasks stopped running. We have tried everything including writing the output to a log file. The only thing that gets written to this log file is "Connection Failed".
    Driling down into some of the other CF logs we are seeing that the job is getting triggered and then the job starts but it never gets completed.
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Task DEFAULT.sampleTask triggered.
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Starting HTTP request {URL='https://ru.ryerson.ca:443/ryecast/myTask.cfm', method='get'}
    The weird thing is that if we create the same task in the instance manager (cfusion) on the same server pointing to the same .cfm file it works fine. So we know the script does work - just not in the ColdFusion Instance we need to work in.
    Here is the successful log entry from cfusion logs.
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Task DEFAULT.sampleTask triggered.
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - Starting HTTP request {URL='https://ru.ryerson.ca:443/ryecast/myTask.cfm', method='get'}
    Nov 6, 2013 16:01:00 PM Information [DefaultQuartzScheduler_Worker-6] - HTTP request completed  {Status Code=200 ,Time taken=124 ms}
    Has anyone else experience this kind of behaviour and if so is there a fix? I suspect some kind of corruption with the QuartzScheduler.

    Hi Marko,
    Did you ever find a solution to your problem?
    I'm having the same problem, but am running CF on redhat linux.
    I too think it's something with quartz getting itself tied in knots.
    In my http.log I can see the same as you, the task is triggered but it never completes. The strange thing I have found is that sometimes just resaving a task is enough to start it again.
    Here's the thread I started http://forums.adobe.com/message/5811970#5811970
    Cheers
    Simon

  • OIM schedule task not working properly (error - MISFIRE_INSTRUCTION_RE....)

    Hello,
    we're doing trusted reconciliation from DB and it is implemented through a GTC connector (OIM 10g BP 15).
    After we did a sync of OIM from prod to this environment, we're seeing issue using this related trusted recon scheduled job. Here is the error :
    DEBUG,24 Jan 2012 15:09:12,321,[XELLERATE.SCHEDULER],Loading Scheduled task class com.thortech.xl.scheduler.core.quartz.QuartzWrapperusing ADP classloader
    DEBUG,24 Jan 2012 15:09:12,321,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:12,321,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],Class/Method: QuartzSchedulerImpl/getQuartzTrigger entered.
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],Creating Custom Trigger with StartTime 2012-01-24 with repeat interval of 21600000 secs
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],triggerFreq : CUSTOM
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],triggerImpl : Trigger 'DEFAULT.MYMDB_GTC': triggerClass: 'org.quartz.SimpleTrigger isVolatile: false calendar: 'null' misfireInstruction: 0
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],trigger Misfire instruction : MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],Class/Method: QuartzSchedulerImpl/getQuartzTrigger left.
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],MYMDB_GTC trigger is related to DEFAULT.MYMDB_GTC and new job is DEFAULT.MYMDB_GTC
    DEBUG,24 Jan 2012 15:09:12,340,[XELLERATE.SCHEDULER],Scheduling task : MYMDB_GTC with trigger : Trigger 'DEFAULT.MYMDB_GTC': triggerClass: 'org.quartz.SimpleTrigger isVolatile: false calendar: 'null' misfireInstruction: 5
    DEBUG,24 Jan 2012 15:09:12,392,[XELLERATE.SCHEDULER],Loading Scheduled task class com.thortech.xl.scheduler.core.quartz.QuartzWrapperusing ADP classloader
    DEBUG,24 Jan 2012 15:09:12,392,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:12,392,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    DEBUG,24 Jan 2012 15:09:12,407,[XELLERATE.SCHEDULER],Class/Method: QuartzSchedulerImpl/updateXellerateForTrigger entered.
    DEBUG,24 Jan 2012 15:09:12,407,[XELLERATE.SCHEDULER],Updating Trigger Details: lastStartTime : 2012-01-24 lastStopTime : Tue Jan 24 15:09:12 PST 2012 nextStartTime : 2012-01-24
    DEBUG,24 Jan 2012 15:09:12,411,[XELLERATE.SCHEDULER],LefMethodDebug
    DEBUG,24 Jan 2012 15:09:12,411,[XELLERATE.SCHEDULER],Class/Method: QuartzSchedulerImpl/updateScheduledTask left.
    DEBUG,24 Jan 2012 15:09:14,035,[XELLERATE.SCHEDULER],Loading Scheduled task class com.thortech.xl.scheduler.core.quartz.QuartzWrapperusing ADP classloader
    DEBUG,24 Jan 2012 15:09:14,035,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:14,035,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    DEBUG,24 Jan 2012 15:09:14,066,[XELLERATE.SCHEDULER],Loading Scheduled task class com.thortech.xl.scheduler.core.quartz.QuartzWrapperusing ADP classloader
    DEBUG,24 Jan 2012 15:09:14,066,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:14,066,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    INFO,24 Jan 2012 15:09:14,093,[XELLERATE.SERVER],Quartz Executing Scheduled task : MYMDB_GTC
    DEBUG,24 Jan 2012 15:09:14,099,[XELLERATE.SCHEDULER],Class/Method: SchedulerUtil/eventPreInsert entered.
    DEBUG,24 Jan 2012 15:09:14,099,[XELLERATE.SCHEDULER],Class/Method: SchedulerUtil/getSchedulerInstanc left.
    DEBUG,24 Jan 2012 15:09:14,175,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader entered.
    DEBUG,24 Jan 2012 15:09:14,175,[XELLERATE.ADAPTERS],Class/Method: tcADPClassLoader/getClassLoader left.
    Any idea what could be wrong here?
    Thanks,

    Hello,
    I tried "Edit" the GTC connector and "SAVE" the connector back without doing any editing. I hope that will not cause any difference in the deployed corresponding GTC schedule task which used to work earlier.
    Anyways, i also checked the trusted source database and populated some new values in there and tried reconciling again (incremental reconciliation configured). Surprisingly i see some new error in the logs. Is this because of the unnecessary "Edit" operation i performed ?
    ==========================================================================================================
    ERROR,31 Jan 2012 16:22:49,269,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Reconciliation Encountered error:
    java.lang.IllegalArgumentException: Cannot format given Object as a Date
    at java.text.DateFormat.format(DateFormat.java:281)
    at java.text.Format.format(Format.java:140)
    at com.thortech.xl.gc.impl.common.DBFacade.getStringFromSQLObject(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.retrieveRecord(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.getRecord(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.getTargetRecord(Unknown Source)
    at com.thortech.xl.gc.impl.recon.DBReconTransportProvider.getFirstPage(Unknown Source)
    at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
    at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionAction.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
    at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown Source)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:477)
    DEBUG,31 Jan 2012 16:22:49,270,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/setResult entered.
    DEBUG,31 Jan 2012 16:22:49,270,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/setResult left.
    WARN,31 Jan 2012 16:22:49,270,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Though Reconciliation Scheduled task has encountered an error, Reconciliation Transport providers have been "ended" smoothly. Any provider operation that occurs during that "end" or "clean-up" phase would have been executed e.g. Data archival. In case you want that data to be a part of next Reconciliation execution, restore it from Staging. Provider logs must be containing details about storage entities that would have been archived
    DEBUG,31 Jan 2012 16:22:49,270,[XELLERATE.SCHEDULER.TASK],Class/Method: SchedulerBaseTask/run left.
    ========================================================================================

  • Scheduled Tasks wont run

    I had recently upgarded to CF8 from CF7.
    After the upgrade non of my Scheduled Tasks are running.
    Even when i trigger the tasks manually from CFAdmin I get the response "This scheduled task was completed successfully."
    But nothing really runs. My application is using Integrated Windows Authentication and the schedulled tasks were running fine with CF7.
    Now when i switch off the Windows authentication, the scheduled tasks are working fine.
    Could you please tell me why my Scheduled Tasks are not running when i turn on Windows authenticaton, where as it was working perfectly with CF7.

    ColdFusion schedule tasks CAN NOT run under windows integrated authentication.  ColdFusion is not a windows product, it does not pass the NTML headers with requests.  You have to turn off windows integrated authentication for any resource you would like to run as a schedule task.  Helpfully, you can set that permssion to individual files and|or folders so you do not need to turn it off for the entire site.
    I don't know why this would change after an upgrade, unless you built a new CF8 server with a newly built IIS as well.

  • Server 2012 Scheduled tasks not running after DST

    Since the DST change this weekend the weekly scheduled tasks on our 2012 standard server are not running.  The schedule show the correct next run time, but the task never runs.  The server correctly adjusted for the DST changes (We are in CST in
    the US) and if you look in the date time it notified us that the clock was set forward.
    Any ideas?

    Hi Mark,
    Before going further, would you please let me confirm whether only weekly scheduled tasks t run? In other words,
    did some daily scheduled tasks run smoothly?
    Based on current situation, please create a new weekly
    scheduled task and check if encounters the same issue.
    If this issue still persists. Please let me confirm if you make scheduled task run some commands or a script,
    or others I misunderstand. For an example, if run a script, please directly run it in the Windows Server 2012 Standard and check if there any issue occurred.
    Meanwhile, please open Task Scheduler, select this problematic weekly scheduled task, click General tab. Please
    check which user account was used to run this task. And please check Run with highest privileges, then check if can solve this issue.
    In addition, please check History tab in task Properties. Please pay attention on the time-point when the weekly
    scheduled task should be ran, and check if you can find some events at that time-point. It may help us to go further analysis.
    By the way, there is a similar thread. Please refer to.
    Certain scheduled tasks do not run anymore after DST change
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/47483baf-e7af-4bff-9db4-9c3d0ead2b41/certain-scheduled-tasks-do-not-run-anymore-after-dst-change?forum=winserver8gen
    Hope this helps.
    Best regards,
    Justin Gu

  • Schedule tasks to run on wake up?

    Is it possible to schedule tasks to run when a Mac wakes up (preferably Terminal/UNIX)?
    I want to run a script when I open my laptop. Is that possible without installing further software?

    You could use System Preferences -> Energy Saver -> Schedule  to wake up the Mac (or at least try), then if you can have your tasks run in the background, you might be able to either use a repeating Calendar entry that runs an app, Applescript, or Automator app, or use a launchd.plist (launchd is non-trivial, but effective).
    The key is to have tasks that do not need to be actually logged in at the time.  That is to say, they do not need a GUI up and running.
    Not sure that Dropbox works without being logged in, but there may be other ways to sync things between Macs without using Dropbox.  Maybe something like bittorrentsync (I've only heard about it, but have not played with it).
    As Chris CA suggests, so not shutdown your Macs, but maybe just sleep them with your account already logged in.  Then when the scheduler wakes them you are already logged in.  Then when the tasks you need to run complete, you can let the normal idle system sleep interval put them back to sleep (be sure to set the sleep interval to a long enough period to allow your tasks to complete).

  • Creating scheduled task to run powershell script

    Hi all,
    been following this guide on how to create scheduled task to run a .ps1 script:
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx
    When I manually run this task,in the history it says success, but it doesnt work.
    The script should create a report and send me an e-mail.It works fine if i run it manually in Windows powershell or Powershell ISE.
    I cannot see that a new report have been created either.
    Anything im missing here?
    Been using same account to run it manually and the one using in task scheduler.
    thanks!
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work

    Hi all,
    been following this guide on how to create scheduled task to run a .ps1 script:
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx
    When I manually run this task,in the history it says success, but it doesnt work.
    Try executing the same command in cmd line, do you get a different result? or does that work as well?

  • All scheduled tasks stopped execute

    Hi guys,
    We are using the version 11.1.1.5(BP 2) of OIM. Now all scheduled task, stoped execute.
    We clicked em "Run Now" but isn't inserted a line in grid Job History, in log doesn't show no errors.
    This happen for all scheduled tasks.
    What be should the problem??
    Thanks

    Restart the Scheduler
    http://OIM_HOST:OIM_PORT/SchedulerService-web/status.
    Hope the problem should resoved after this. If not than:
    Also enable looger for Schedule task (oracle.iam.identity.scheduledtasks). You will get more information in the log file.
    http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/log.htm#CEGBBGFH.
    I think you will get the some exception in diaognestic log file.
    If problem doesn't solve restart the manage server.
    Thanks
    Kuldeep

  • Scheduled Task - Stop/Start processes and .exe

    I've running some short batch files to stop a process and an .exe at just past midnight.
    and then corresponding files to start a process and an .exe at 6am
    I've set up Task Scheduler to run the Stops at 00:05 and 00:10
    and then the starts at 06:30 and 06:40
    However when I run tests, the scheduled tasks giving a status of "running" long after the the "stop" batch files have run. 
    How can i set them up so they run once, then stop running so there is no danger of conflict when the "start" tasks run in the morning. 
    I hope this is clear. 
    Thanks
    Pete

    Hi,
    Please check the in the task manager (+show tasks from all users) to see if it is indeed still running. You could refer to the thread below to troubleshoot the issue:
    TASK SCHEDULER: scheduler status is being “RUNNING” always
    http://social.technet.microsoft.com/Forums/en-US/2f6dc29c-3b8b-45f5-a2a7-53e076acc062/task-scheduler-scheduler-status-is-being-running-always
    If the issue still exists, the workaround is adding this line at the very end of the batch file:
    TASKKILL /F /IM cmd.exe
    Regards,
    Mandy
    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 not running

    Hello All,
    I have created a scheduler task for the , for the same I have created a PAR file , have successfully Build the project and deployed , Have configured the time in the Global services . But for some reason I could not see the task being running in the "Component Monitor" (when I select the Services-->scheduler >select one of the CM systems (have two currently)>click on on the CM system ) I could not see my custom task .
    As well as When I go to "Service configuration" --> Portal Application , there also I could not see my custome application .
    Initially whenever there use to be any error (for example -- CM systems not assigned etc etc ).
    Is it something I am missing while deployement , Or has it being deployed properly?
    Regards,
    Ronniee

    Hello Detlev,
    Any Inputs on this please.
    I have opened a new thread but a different Query
    http://forums.sdn.sap.com/thread.jspa?threadID=2155357
    Regards,
    Ronniee.

  • How can I setup a scheduled task to run a Powershell Script delivered as a Group Policy Preference

    I have a Powershell script I want to run only once when a user logs onto their system. This script would move all the PST files from the Local drive and the Home drive to a folder location within the users profile. I wanted to run this as a Windows 7 Scheduled Task using Group Policy Preferences. How can I get this to happen short of a logon script? I have updated all the machines to WMF 4.0 so could I use a Scheduled Job instead? I wanted to run the script as the logon user but elevated.#Start Outlook and Disconnect attached PST files.
    $Outlook = New-Object -ComObject Outlook.Application
    $namespace = $outlook.getnamespace("MAPI")
    $folder = $namespace.GetDefaultFolder("olFolderInbox")
    $explorer = $folder.GetExplorer()
    $explorer.Display()
    $myArray= @()
    $outlook.Session.Stores | where{ ($_.FilePath -like'*.PST') } | foreach{[array]$myArray+= $_.FilePath}
    for
    ($x=0;$x-le$myArray.length-1;$x++)
    $PSTPath= $myArray[$x]
    $PST= $namespace.Stores | ?{$_.FilePath -like$PSTPath}
    $PSTRoot= $PST.GetRootFolder() #Get Root Folder name of PST
    $PSTFolder= $Namespace.Folders.Item($PSTRoot.Name) #Bind to PST for disconnection
    $Namespace.GetType().InvokeMember('RemoveStore',[System.Reflection.BindingFlags]::InvokeMethod,$null,$Namespace,($PSTFolder)) #Disconnect .PST
    #Move All PST files to the default location while deleting the PST files from their original location.
    $SourceList = ("$env:SystemDrive", "$env:HOMEDRIVE")
    $Destination = ("$env:USERPROFILE\MyOutlookFiles")
    (Get-ChildItem -Path $SourceList -Recurse -Filter *.PST) | Move-Item -Destination $Destination
    #Attach all PST files from the default location.
    Add-type -assembly "Microsoft.Office.Interop.Outlook" | out-null
    $outlook = new-object -comobject outlook.application
    $namespace = $outlook.GetNameSpace("MAPI")
    dir “$env:USERPROFILE\MyOutlookFiles\*.pst” | % { $namespace.AddStore($_.FullName) }

    Mike,
    I do not understand what appears to be a regular expression above. I did add the PowerShell script to the HKCU RunOnce Key as suggested.
    Windows Registry Editor Version 5.00
    C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -noprofile -sta -WindowStyle Hidden -ExecutionPolicy RemoteSigned -File "C:\scripts\Windows PowerShell\Move-PST.ps1"
     I'm delivering this using Group Policy Preferences. It seems to fail or time out when run because the behavior is different if I run the script from within the PowerShell IDE. I added the parameters to the script and will try it again in the morning.

  • 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

  • FCP Project closes and Compressor only gives black render

    hi apologies if this has been covered, my extensive search of about 10 seconds found nothing. Recently on certain projects when i try to export via compressor two things happen. Firstly the rendered file is made up of black only, audio is fine though

  • Mac App Store version and ASL files

    Hello Some days ago I updated my Photoshop Elements for Mac to Version 11 (Mac App Store version). Accidentally I noticed mysterious activity though Photoshop Elements wasn't running. For example these files have been created or modified /private/var

  • Adobe Illustrator Installation Failed?

    Adobe Illustrator Installation Failed?

  • Print from an Add-On

    Hi Experts, We have devloped an Add-On that integrates with MapPoint to define delivery routing. I would like to be able to print the relevent Delivery documents when I confirm the selection in my Add-On. Is it possible to send to B1 the document num

  • Is it possible to copy multiple classes into one class?

    Hi there, My environment is 2007 R2. We have two class: Class1 and Class2. Both are populated by a script discovery. Now I want to create another class: Class3 which should contain the object of BOTH Class1 and Class2. Of cause I can create another s