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

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

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

Similar Messages

  • Sharepoint 2013 workflow does not start when item is created by another workflow

    Hi I am having the next problem, I have a workflow on list B that starts when a new item is created. If I created the item manually the workflow works. Now I have a list A that has a workflow that creates a new item in List B. The problem is that when
    de workflow in list A creates the list item in list B the workflow does not start.
    I've used an account that is collection owner, an account that only has contribute permision and nothing works.
    Any ideas?
    0down
    votefavorite
    Hi I am having the next problem, I have a workflow on list B that starts when a new item is created. If I created the item manually the workflow works. Now I have a list A that has a workflow that creates a new item in List B. The problem is that when de workflow
    in list A creates the list item in list B the workflow does not start.
    I've used an account that is collection owner, an account that only has contribute permision and nothing works.
    Any ideas?
    0down
    votefavorite
    Hi I am having the next problem, I have a workflow on list B that starts when a new item is created. If I created the item manually the workflow works. Now I have a list A that has a workflow that
    creates a new item in List B. The problem is that when de workflow in list A creates the list item in list B the workflow does not start.
    I've used an account that is collection owner, an account that only has contribute permision and nothing works.
    Any ideas?

    Hi Courfeyrak,
    Here is another similar post with a workaround, you can try using the event receiver on listB item to start the workflow, when the listB item is created or updated by the workflow associated with listA.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/19f71e38-7c04-430e-aa6b-764cbbf18c1c/2013-workflow-does-not-start-on-item-created-by-a-different-worklow?forum=sharepointcustomization
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • Workflow Does not Start If Created by Another Workflow

    Hi,
    Hope someone can help me here.
    I am using SharePoint 2013 Server and have created two workflows running on two separate lists (workflow 1 runs on list 1 and workflow 2 runs on list 2).
    Workflow 1 creates an item in List 2. The workflow on list 2 does not kick off when the item is created.
    I have tried both SharePoint Designer 2013 workflow and Visual Studio 2013 no code solutions (I have elevated privileges for the workflow app).
    The link below is what I am experiencing, although there doesn't seem to be a solution.
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/cb7c2537-ec54-4128-abea-aa5a11cddb54/sharepoint-2013-workflow-does-not-start-when-item-is-created-by-another-workflow?forum=sharepointcustomization
    I am in the process of installing the latest CUs too see if this has been rectified.
    Thanks,
    Nigel

    Hi Nigel,
    Yes, this is the default SharePoint behavior that SharePoint 2013 workflow does not start when item is created by another workflow.
    For a workaround, you can create a event receiver on the List 2 to start the workflow 2 when an item is created.
    Reference:https://social.technet.microsoft.com/Forums/sharepoint/en-US/19f71e38-7c04-430e-aa6b-764cbbf18c1c/2013-workflow-does-not-start-on-item-created-by-a-different-worklow?forum=sharepointcustomization
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/6ee7d704-34c0-4bda-8f2d-8a9ba17c2367/sharepoint-2013-workflow-using-create-item-to-add-an-item-to-another-list-and-have-the-workflow?forum=sharepointcustomization
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

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

  • SharePoint Retention Policy workflow does not start

    Hi,
    Using Nintex workflows I have created a workflow and attached it to a content type and tested that it runs manually ok.  I want it to run according to a retention policy, and so I created a policy based on one of the content type's date fields to start
    my workflow automatically.  When I manually run the timer jobs I see the following error in ULS logs and the workflow does not start.  Interestingly if I amend the policy to do something simple like move the item to the recycle bin, that works fine.
    Can anyone suggest what is wrong and where I can go from here to find the issue?
    Thanks
    Error running the expiration action on item <document url> .  Error:  System.InvalidOperationException:
    The workflow with id=<workflow id > is no longer available.    
     at Microsoft.Office.RecordsManagement.PolicyFeatures.WorkflowExpirationAction.RunExpirationWithPostActions(SPListItem
    item, XmlNode parametersData, DateTime expireDate)    
     at Microsoft.Office.RecordsManagement.PolicyFeatures.BaseExpirationAction.Microsoft.Office.RecordsManagement.PolicyFeatures.IExpirationActionWithPostActions.OnExpirationWithPostActions(SPListItem
    item, XmlNode parametersData, DateTime expireDate)    
     at Microsoft.Office.RecordsManagement.PolicyFeatures.ExpirationTask.ExpirationActionData.RunExpirationAction(SPListItem
    item, DateTime expireDate)    
     at Microsoft.Office.RecordsManagement.PolicyFeatures.ExpirationTask.<>c__DisplayClass19.<ProcessExpiredItems>b__17(SPListItem
    item)    
     at Microsoft.Office.Server.Utilities.MonitoredScopeWrapper.RunWithMonitoredScope(Action code)  
     at Microsoft.Office.Server.Utilities.ContentIterator.ProcessItem(SPListItem item, Boolean fIncludeFolderItems,
    MonitoredScopeWrapper monitoredScopeWrapper, ItemProcessor itemProcessor, ItemProcessorErrorCallout errorCallout)

    Hi,
    Based on your description, my understanding is that the Retention Policy cannot start the Nintex workflow.
    To narrow the issue scope, I recommend to check the things below:
    Create a SharePoint 2010 Reusable workflow for the same content type or 2013 list workflow and modify the Retention Policy to start this workflow, and then check how it works.
    Create Retention Policy with the Nintex workflow in another list and then compare the results.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • I am experiencing problem (the installation does not start) when I try to install ArchiCAD 17 Educational on my mac. I am using Yosemite. How can I fix it?

    I am experiencing problem (the installation does not start) when I try to install ArchiCAD 17 Educational on my mac. I am using Yosemite. How can I fix it?

    You need to contact the developer/manufacturer directly to determine if their product is compatible w/Yosemite.  It is not listed on their system requirement website:
    Mac OS X 10.9 Mavericks
    Mac OS X 10.8 Mountain Lion
    Mac OS X 10.7 Lion
    Mac OS X 10.6 Snow Leopard*
    Note: ArchiCAD 17 is the last version of ArchiCAD to support Mac OS X 10.6
    Only case insensitive file-system volumes are supported.
    http://www.graphisoft.com/support/system_requirements/archicad17.html

  • ITunes does not start when I plug in my iphone after I upgraded to Lion?

    iTunes does not start when I plug in my iphone after I upgraded to Lion? It worked fine prior to upgrading.

    http://support.apple.com/kb/TS1538

  • ITunes does not start when iPhone plugs in

    my itune does not start when I plug my iphone or ipad in , this stater with lion install

    Please see here if it helps:
    https://discussions.apple.com/message/15705708#15705708
    Regards, Michael

  • My airport does not start when pligged in

    My aipport does not start when plugged in.  The light does not come on at all.  If there some kind of a reset switch?

    With no light at all, unfortunately it is likely that an internal component in the AirPort Express has failed.
    The reset switch is next to the audio jack. Try a different AC socket. With the AirPort Express plugged into power, hold in the reset button for 8-10 seconds, then release.
    If successful, the AirPort Express will restart to a solid amber light for 30-35 seconds, then begin to slowly blink amber after 40-45 seconds.
    If you try the reset a few times with no success, I'm afraid that the AirPort Express  has failed and will need to be replaced.

  • PC does not start when pressing the power button, After that starts automatically like a ghost!

    I have HP Pavilion a6030in, My pc does not start when i press ther power button, but it starts after sometime automatically after that it works fine.
    Again when i shutdown and leave it for sometime, and still the problem is unsolved.
    Please Help
    This question was solved.
    View Solution.

    he figured out you dont just shut the lid and walk away, you use Windows shutdown
    click Kudos to say thanks if I helped

  • Absence request workflow does not start

    Hello, I have created a workflow for absence request and I configured it in transaction PTARQ for my absence type.
    I tried several times making an absence request from portal but the workflow does not start. I have also seen in transaction PTARQ that the request was really made and has status SENT but has no workflow associated.
    Any help?
    Thanks

    Hi Mário,
    Check using transaction SWIA to see if the workflow is actually started by the leave creation (if not could be a problem with the event trigger)? If it is started, you should see in SWIA where the workflow stops/breaks down, normally this is due to missing container elements or bindings.
    Good luck!
    Gareth

  • TS1367 Hallo,I have an IMAC 21.5. which does not start.When i press the power button i hear only beep with an interval of 4-5 seconds.Some times when i take off the RAMS and put them again then get a white screen and shows that i have to insert a bootable

    Hallo ,I have an IMAC 21.5. which does not start.When i press the power button i hear only beep with an interval of 4-5 seconds.Some times when i take off the RAMS and put them again then get a white screen and shows that i have to insert a bootable device.Then i bought OSX mountainlion on line and wrote it on a DVD and tried with a USB key board to start the DVD.But does not work.Please help me to get this imac work.
    Thankyou in advance  for your help.
    Terrence

    Hey terremo,
    Thanks for the question. From the information you provided, it sounds like the iMac is successfully turning on, however video is not displayed. These symptoms can usually be isolated further by the troubleshooting steps in this article:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT1573
    Thanks,
    Matt M.

  • Why do text messages from my iPad appear to some people as if they came from my email address instead of my phone number? This does not happen when I send text messages from my iPhone.

    Why do text messages from my iPad appear to some people as if they came from my email address instead of my phone number? This does not happen when I send text messages from my iPhone.

    You need to link your iPhone number to Messages - and Facetime if you use it. For Messages go to Settings>Messages>Send and Receive at>You can be reached by iMessage at. If your phone number is showing there, select it as your Contact address. If it doesn't appear in there, take a look at the end of this article for help.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support

  • SyncToy 2.1 Can't Find NAS Folder When Run From Task Scheduler

    I'm using SyncToy 2.1 to keep two WIN7 computers and a Synology DS414j NAS drive in sync. I have several folder pairs configured, some between the two PC's and three between one PC and the NAS drive. I have a task set up for automatic syncing. The problem
    is SyncToy can't find the destination folders on the NAS drive if it's run from Task Scheduler. If I run SyncToy manually, everything works fine. I've even tried opening the command prompt and running the exact same program Task Scheduler is running (SyncToyCmd.exe
    -R), and it works perfectly. But when Task Scheduler runs the task, it fails to find the NAS folders with the following error message:
    SYNC: 08/21/2014 14:12:26:140: *** Failed to execute folder pair Downloads to NAS. Could not locate folder \\DISKSTATION\Downloads\.
    I've been looking for days for a solution and have not found anyone with this problem. Any ideas?

    Hi Texxxas,
    Apparently the problem is not with SyncToy, it is with Task Scheduler. If you have had Task Scheduler work for you in the past, then I don't have an answer for that. I have never been able to get Task Scheduler to work correctly with SyncToy and a NAS drive.
    I have found that for some reason it works with USB external HDD's but will not work with a network connected hard drive. The same bug exists in Win8.1 as well. However, I have since found a third party task scheduler that works perfectly with SyncToy and
    my NAS drive. It is called System Scheduler by Splinterware. The free version only works when you are logged in but they have a paid version that runs as a service and will execute without being logged in. This has solved my problem.

  • Opmn service does not start when try to start Oracle BI Services

    Hi ,
    I was able to install OBIEE 11g on my laptop and it worked fine for two days. Today when I try to login to rpd and type my user name and password I get the error that my user name and password is not correct. I tried to restart the machine and now I am not able to start opmn service.
    When I do Start>Oracle Business Intelligence (1)>Start BI Services, the script run and two command line windows open and about 10 minutes later get the last line that server started in RUNNING mode, but some how Oracle Process Manager (instance) service does not start. It started two days ago when I was able to login to OBIEE 11g.
    If I try to go to OBIEE 11g Home page I get this error "Error 500- Internal server error from RFC 2068 Hypertext Transfer Protocol- HTTP/1.1: 10.5.1 500 Internal server error
    Any Idea how to fix this one.
    Thanks

    Maybe you need to tick the "use fully qualified names" check box and make sure that you have the schema object created (as a "folder" between the database and the tables in the physical layer).

Maybe you are looking for