I have 2 PCs, one Windows 10 Pro and one Windows 10 Home.
I created a PowerShell script to check the battery status and the network connection and I want to execute it every 5 minutes on each PC.
On the Windows 10 Pro PC I can create a scheduled task and it works fine.
On the Windows 10 Home PC I create the same scheduled task but each time it runs I get return code 2147942401.
After investigating the problem it looks that the user used to run the scheduled task is missing the right to logon as a batch job.
Is there any other explaination of the problem?
Unfortunately, Windows 10 Home does not include secpol.msc neither gpedit.msc.
How can I make my script run as a scheduled task on Windows 10 Home?
Regards
marius