Link to home
Start Free TrialLog in
Avatar of *** Hopeleonie ***
*** Hopeleonie ***Flag for Switzerland

asked on

Task with PowerShell Script is failing with 0x41301

Hi

I’m trying to run a Task with a PowerShell Script and the last run result is 0x41301.

User generated image-Settings.pdf

The Technical User is an Administrator and has the needed permission on the Script path.
What am I doing wrong? Any help is appreciated.

Many thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Aard Vark
Aard Vark
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of *** Hopeleonie ***

ASKER

@Learnctx
Thanks for the hint. :-)

@Coralon
I will ask the customer if we can public the script.

@Sekar Chinnakannu
Under Local Groups we don't see a Group log on as batch job.
Log on as a batch job is a security right, not a group. But the scheduled task is running, so I can't see that being the issue. If you want, you can check under gpedit.msc: Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Log on as a batch job.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Learnctx
Because of you I found that this was not an error and the Script was running (hanging). So the other company fixed the PowerShell script.

@all
Thank you very much for your help.