Unable to run My powershell script on windows 2008 R2 server using windows task scheduler

%3CLINGO-SUB%20id%3D%22lingo-sub-1476380%22%20slang%3D%22en-US%22%3EUnable%20to%20run%20My%20powershell%20script%20on%20windows%202008%20R2%20server%20using%20windows%20task%20scheduler%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1476380%22%20slang%3D%22en-US%22%3E%3CP%3ECurrently%20i%20am%20using%20domain%20service%20account%20to%20run%20the%20powershell%20script%20using%20task%20scheduler.%20I%20tried%20all%20the%20methods%20such%20as%20below%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-noprofile%20-executionpolicy%20Bypass%20-file%20%22E%3A%5CAPPS%5CTC_Monitoring%5Ctc_monitoring_v1.ps1%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETried%20with%20highest%20privileges%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdded%20logon%20service%20permission%20to%20the%20domain%20service%20account%20in%20local%20security%20policy%20and%20updated%20group%20policy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETried%20using%20%2Fautostart%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20the%20task%20scheduler%20perfectly%20works%20with%20my%20domain%20administrator%20account.%20ran%20out%20of%20ideas%20already.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1476380%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Edomain%20service%20account%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Currently i am using domain service account to run the powershell script using task scheduler. I tried all the methods such as below

 

-noprofile -executionpolicy Bypass -file "E:\APPS\TC_Monitoring\tc_monitoring_v1.ps1"

 

Tried with highest privileges

 

Added logon service permission to the domain service account in local security policy and updated group policy.

 

Tried using /autostart

 

But the task scheduler perfectly works with my domain administrator account. ran out of ideas already.

0 Replies