Powershell Scheduler Issue in Windows 10
-
I am having Powershell 5 tried scheduling a task through this command.The scheduler is working sometimes and sometimes which is not scheduling in Windows 10.Any other faced this issue before or the syntax is different for scheduling.
I have checked the Scheduled status which is showing as Ready only and tried deleting the task and rescheduled which is not happening.I have tried schedule the calc.exe for testing which is opening without any issue.Kindly help to schedule .bat file.The .bat file is working without any issue when runned manually.
Schtasks /create /tn "Test" /sc daily /st 06:00 /tr "C:\Folder\test.bat"
Name Value
ā- āā
PSVersion 5.1.15063.994
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.994
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1The machine is locked state only not even signed out.
Windows 10
Windows Version 1703(OS Build 15063.994) -
Separate from that issue, but why the old version of PS?
-
@scottalanmiller How to upgrade PS ?
-
-
Not a big deal, but we hve PS6 on Linux, funny that Windows 10 is behind
-
@scottalanmiller said in Powershell Scheduler Issue in Windows 10:
Not a big deal, but we hve PS6 on Linux, funny that Windows 10 is behind
You would end up having two versions installed instead of upgrading 5.1 to 6.
-
@black3dynamite having 5.1 and 6.1 also now
-
@scottalanmiller said in Powershell Scheduler Issue in Windows 10:
Separate from that issue, but why the old version of PS?
Powershell Core and Powershell are not the same so they will have both versions.
-
To create scheduled tasks with PowerShell look at this: