In which user context the scheduled task and the PowerShell script are executed?
Does this user have the right "Log on as batch job" on the Windows 10 Home PC?
Btw. if you convert the decimal 2147942401
in hex you get 80070001
and the error code 0x80070001
means Incorrect function
or Illegal function
.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten