Scheduled Task Windows Server 2019 (EDIT)

%3CLINGO-SUB%20id%3D%22lingo-sub-719760%22%20slang%3D%22en-US%22%3EScheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-719760%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20guys%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20having%20a%20problem%20with%20the%20Windows%20Server%202019%20Task%20Scheduler.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20does%20not%20work%20as%20in%20Windows%20Server%202012.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20do%20I%20need%20to%20do%20to%20make%20this%20work%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEDIT%3A%26nbsp%3B%3C%2FP%3E%3CP%3EGuys%2C%20what%20I%20figured%20out%20is%20that%20the%20task%20scheduler%20works%20for%201%20simple%20task%2C%20for%20a%20given%20time.%3C%2FP%3E%3CP%3EBut%20it%20does%20not%20work%20to%20repeat%20every%20day%2C%20every%205%20minutes%2C%20indefinitely.%3C%2FP%3E%3CP%3EWhat%20has%20changed%20in%20Windows%20Server%202019%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-719760%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-726561%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-726561%22%20slang%3D%22en-US%22%3E%3CP%3EMight%20check%20here%20to%20see%20what%20happened.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23545454%3B%20font-family%3A%20arial%2Csans-serif%3B%20font-size%3A%2013.33px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.54%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EEvent%20Viewer%5CApplications%5C%3C%2FSPAN%3E%3CWBR%20style%3D%22color%3A%20%23545454%3B%20font-family%3A%20arial%2Csans-serif%3B%20font-size%3A%2013.33px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%20%2F%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23545454%3B%20font-family%3A%20arial%2Csans-serif%3B%20font-size%3A%2013.33px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.54%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EMicrosoft%5CWindows%5CTaskScheduler%5C%3C%2FSPAN%3E%3CEM%20style%3D%22color%3A%20%236a6a6a%3B%20font-family%3A%20arial%2Csans-serif%3B%20font-size%3A%2013.33px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20bold%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EOperational%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%20style%3D%22color%3A%20%236a6a6a%3B%20font-family%3A%20arial%2Csans-serif%3B%20font-size%3A%2013.33px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20bold%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%20style%3D%22color%3A%20%236a6a6a%3B%20font-family%3A%20arial%2Csans-serif%3B%20font-size%3A%2013.33px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20bold%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-856970%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-856970%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F364999%22%20target%3D%22_blank%22%3E%40erickgomes%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20discovered%20what%20is%20happening%3F%20I%20am%20observing%20a%20strange%20behavior%20of%20Task%20Scheduler%20in%20WS%202019.%20Sometimes%20the%20task%20stops%20repeating%2C%20sometimes%20it%20begins%20to%20ignore%20the%20time%20for%20repeating%20and%20tries%20to%20repeat%20the%20task%20at%20very%20short%20intervals%20(like%2012%20seconds).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-893492%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-893492%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F364999%22%20target%3D%22_blank%22%3E%40erickgomes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20the%20exact%20same%20problem.%26nbsp%3B%20Task%20scheduler%20runs%20everything%20at%201%2F16%20speed%20and%20all%20tasks%20that%20run%20that%20take%20more%20then%205%20minutes%20are%20immediately%20ended%20at%205%20minutes.%3C%2FP%3E%3CP%3Ewe%20have%20tried%20everything%20batch%20file%20does%20the%20same%2C%20.exe%20does%20the%20same%2C%20powershell%20does%20the%20same.%3C%2FP%3E%3CP%3EWe%20have%20a%20scheduled%20task%20that%20is%20due%20to%20run%20every%2010%20min%20indefinitely%20with%20this%20issue%3C%2FP%3E%3CP%3Ealso%20found%20out%20that%20if%20you%20disable%20then%20re-enable%2C%20it%20never%20runs%20again.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-964596%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-964596%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F420191%22%20target%3D%22_blank%22%3E%40calverley1000%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20having%20the%20same%20issues%20with%20Server%202019.%20I'm%20having%20no%20luck%20finding%20anything%20solid.%20I%20really%20hope%20that%20Microsoft%20see%20this%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tasks%20that%20I%20have%20run%20on%202008%20r2%2C%202012%20r2%20for%20years%20with%20no%20issues%20what%20so%20ever.%20But%202019%20has%20major%20issues%20with%20keeping%20a%20schedule.%20If%20the%20server%20is%20rebooted%20and%20comes%20up%20after%20it's%20%22trigger%22%20time%20that%20task%20will%20not%20run%2C%20but%20the%20GUI%20shows%20nothing%20helpful.%20The%20only%20way%20I%20have%20%22fixed%22%20this%20issue%2C%20and%20I%20don't%20really%20call%20it%20a%20fix%2C%20it%20to%20reschedule%20the%20task.%20But%20this%20is%20a%20short%20term%20fix.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20found%201%20suggestion%20to%20not%20have%20a%20daily%20trigger%2C%20but%20a%20one%20time%20trigger%20with%20an%20a%20duration%20of%20indefinitely.%20I%20hope%20this%20fixes%20it%2C%20i'm%20quite%20frustrated.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20other%20issue%20I%20have%20is%20that%20I%20define%20a%20domain%20user%20when%20creating%20the%20task%2C%20but%20any%20subsequent%20edits%20the%20domain%20is%20removed%20and%20will%20not%20take%20the%20passed.%20I%20have%20to%20add%20the%20domain%20back%20in.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThese%202%20items%20are%20giving%20me%20major%20issues%20with%20Server%202019%20that%20appear%20to%20be%20introduced%20with%20Server%202016%20and%20continue%20in%202019.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20listening%20to%20my%20small%20rant.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-964601%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-964601%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20vote%20up%20or%20provide%20this%20feedback%20over%20here%20on%20uservoice.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwindowsserver.uservoice.com%2Fsearch%3Ffilter%3Dmerged%26amp%3Bquery%3Dtask%2520scheduler%25202019%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Ehttps%3A%2F%2Fwindowsserver.uservoice.com%2Fsearch%3Ffilter%3Dmerged%26amp%3Bquery%3Dtask%2520scheduler%25202019%3C%2FFONT%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1244637%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1244637%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F435948%22%20target%3D%22_blank%22%3E%40cround%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22%3CSPAN%3EI%20have%20found%201%20suggestion%20to%20not%20have%20a%20daily%20trigger%2C%20but%20a%20one%20time%20trigger%20with%20an%20a%20duration%20of%20indefinitely.%20I%20hope%20this%20fixes%20it%2C%20i'm%20quite%20frustrated.%20%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20have%20no%20idea%20how%20frustrated%20I%20was%2C%20until%20the%20line.%20You%20are%20a%20legend.%20It's%20working%20for%20me%20now.%20Thanks%20a%20lot!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1364098%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1364098%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F589844%22%20target%3D%22_blank%22%3E%40TimRSA%3C%2FA%3E%26nbsp%3B%20Did%20you%20find%20a%20solution%20to%20the%20scheduled%20task%20issue%3F%26nbsp%3B%20%26nbsp%3BI'm%20also%20frustrated%20at%20Microsoft.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20about%2030%20VB%20Apps%20that%20are%20humming%20along%20on%20a%20Windows%202008%20server%20using%20scheduled%20tasks.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20They%20all%20do%20a%20variety%20of%20simple%20to%20complex%20tasks%20from%20pulling%20data%20and%20merging%20letters%20on%20a%20monthly%20basis%2C%20posting%20data%20on%20our%20website%2C%20converting%20data%20to%20crystal%20reports%2C%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%E2%80%99s%20now%20past%20the%20time%20for%20us%20to%20get%20off%20of%20our%20Windows%202008%20server%20so%20I%E2%80%99m%20taking%20the%20apps%20and%20converting%20them%20up%20from%20Visual%20Studio%202012%20to%20Visual%20Studio%202019.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20No%20real%20hurdles.%26nbsp%3B%26nbsp%3B%20Everything%20is%20converting%20fairly%20clean%20and%20running%20great.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EProblems%20begin%20when%20I%20set%20the%20apps%20up%20on%20Windows%20Server%202019.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20We%20have%20a%20user%20that%20is%20used%20for%20processing%20tasks%20and%20has%20the%20appropriate%20rights%20on%20the%20server.%26nbsp%3B%26nbsp%3B%20If%20the%20tasks%20are%20setup%20to%20run%20overnight%20and%20I%20leave%20the%20server%20signed%20on%2C%20the%20tasks%20process%20fine.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20If%20I%20sign%20off%20of%20the%20server%20the%20tasks%20show%20that%20they%20ran%20and%20that%20they%20completed%20successfully%2C%20but%20never%20finish%20processing.%26nbsp%3B%26nbsp%3B%20The%20status%20shows%20they%20completed%20at%20the%20same%20time%20the%20schedule%20is%20triggered%2C%20and%20most%20of%20the%20tasks%20normally%20should%20run%2015%20minutes%20to%20an%20hour.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENothing%20in%20the%20event%20log%20to%20say%20it%20failed%2C%20and%20I%20have%20a%20good%20bit%20of%20error%20code%20built%20into%20each%20program%20that%20would%20fire%20an%20error%20if%20one%20was%20triggered.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20task%20is%20setup%20to%20%E2%80%9CRun%20whether%20user%20is%20logged%20on%20or%20not%E2%80%9D%2C%20and%20also%20%E2%80%9CRun%20with%20highest%20privileges%E2%80%9D.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20something%20change%20since%202008%20regarding%20scheduled%20tasks%20that%20I%20should%20be%20aware%20of%3F%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Any%20suggestions%20%2F%20help%20with%20this%20is%20appreciated.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1364435%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1364435%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F658070%22%20target%3D%22_blank%22%3E%40KreativeKai%3C%2FA%3E%26nbsp%3BYeah%20I%20used%20the%20other%20guy's%20solution%2C%20I%20have%20a%20task%20that%20I%20check%20if%20my%20app%20pools%20are%20running%20every%201%20min.%20so%20The%20only%20way%20I%20got%20it%20to%20work%20was%20not%20to%20use%20the%20%22Daily%22%20setting%20but%20to%20say%20%22One%20time%22%20and%20set%20this%20in%20repeat%20task%20every%20%7Btime%7D%20for%20a%20duration%20of%20in%20my%20case%20every%20day%20going%20forward%20so%20Indefinitely.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22TimRSA_0-1588782141349.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F189528iB99178FA775C25D6%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22TimRSA_0-1588782141349.png%22%20alt%3D%22TimRSA_0-1588782141349.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1364601%22%20slang%3D%22en-US%22%3ERe%3A%20Scheduled%20Task%20Windows%20Server%202019%20(EDIT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1364601%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F589844%22%20target%3D%22_blank%22%3E%40TimRSA%3C%2FA%3E%26nbsp%3B%20Appreciate%20the%20response.%26nbsp%3B%20%26nbsp%3B%20I'll%20try%20this.%26nbsp%3B%20%26nbsp%3B%20I%20might%20also%20write%20a%20service%20in%20Visual%20Studio%20to%20basically%20create%20my%20own%20scheduled%20task%20app%20to%20get%20around%20this%20issue.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello guys,

 

I'm having a problem with the Windows Server 2019 Task Scheduler.

 

It does not work as in Windows Server 2012.

 

What do I need to do to make this work?

 

EDIT: 

Guys, what I figured out is that the task scheduler works for 1 simple task, for a given time.

But it does not work to repeat every day, every 5 minutes, indefinitely.

What has changed in Windows Server 2019?

9 Replies
Highlighted

Might check here to see what happened.

Event Viewer\Applications\Microsoft\Windows\TaskScheduler\Operational

 

 

 

Highlighted

Hi@erickgomes ,

 

Did you discovered what is happening? I am observing a strange behavior of Task Scheduler in WS 2019. Sometimes the task stops repeating, sometimes it begins to ignore the time for repeating and tries to repeat the task at very short intervals (like 12 seconds).

Highlighted

@erickgomes 

I have the exact same problem.  Task scheduler runs everything at 1/16 speed and all tasks that run that take more then 5 minutes are immediately ended at 5 minutes.

we have tried everything batch file does the same, .exe does the same, powershell does the same.

We have a scheduled task that is due to run every 10 min indefinitely with this issue

also found out that if you disable then re-enable, it never runs again.

Highlighted

@calverley1000 

 

I'm having the same issues with Server 2019. I'm having no luck finding anything solid. I really hope that Microsoft see this issue.

 

I have tasks that I have run on 2008 r2, 2012 r2 for years with no issues what so ever. But 2019 has major issues with keeping a schedule. If the server is rebooted and comes up after it's "trigger" time that task will not run, but the GUI shows nothing helpful. The only way I have "fixed" this issue, and I don't really call it a fix, it to reschedule the task. But this is a short term fix. 

 

I have found 1 suggestion to not have a daily trigger, but a one time trigger with an a duration of indefinitely. I hope this fixes it, i'm quite frustrated. 

 

The other issue I have is that I define a domain user when creating the task, but any subsequent edits the domain is removed and will not take the passed. I have to add the domain back in. 

 

These 2 items are giving me major issues with Server 2019 that appear to be introduced with Server 2016 and continue in 2019.

 

Thanks for listening to my small rant.

Highlighted

You can vote up or provide this feedback over here on uservoice.

https://windowsserver.uservoice.com/search?filter=merged&query=task%20scheduler%202019

 

 

 

Highlighted

@cround 

"I have found 1 suggestion to not have a daily trigger, but a one time trigger with an a duration of indefinitely. I hope this fixes it, i'm quite frustrated. "

 

You have no idea how frustrated I was, until the line. You are a legend. It's working for me now. Thanks a lot!

Highlighted

@TimRSA  Did you find a solution to the scheduled task issue?   I'm also frustrated at Microsoft.

 

I have about 30 VB Apps that are humming along on a Windows 2008 server using scheduled tasks.    They all do a variety of simple to complex tasks from pulling data and merging letters on a monthly basis, posting data on our website, converting data to crystal reports, etc.

 

It’s now past the time for us to get off of our Windows 2008 server so I’m taking the apps and converting them up from Visual Studio 2012 to Visual Studio 2019.    No real hurdles.   Everything is converting fairly clean and running great.

 

Problems begin when I set the apps up on Windows Server 2019.    We have a user that is used for processing tasks and has the appropriate rights on the server.   If the tasks are setup to run overnight and I leave the server signed on, the tasks process fine.    If I sign off of the server the tasks show that they ran and that they completed successfully, but never finish processing.   The status shows they completed at the same time the schedule is triggered, and most of the tasks normally should run 15 minutes to an hour.

 

Nothing in the event log to say it failed, and I have a good bit of error code built into each program that would fire an error if one was triggered.

 

The task is setup to “Run whether user is logged on or not”, and also “Run with highest privileges”. 

 

Did something change since 2008 regarding scheduled tasks that I should be aware of?    Any suggestions / help with this is appreciated.  

Highlighted

@KreativeKai Yeah I used the other guy's solution, I have a task that I check if my app pools are running every 1 min. so The only way I got it to work was not to use the "Daily" setting but to say "One time" and set this in repeat task every {time} for a duration of in my case every day going forward so Indefinitely.

 

TimRSA_0-1588782141349.png

 

Highlighted

@TimRSA  Appreciate the response.    I'll try this.    I might also write a service in Visual Studio to basically create my own scheduled task app to get around this issue.