ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Powershell Scheduler Issue in Windows 10

    IT Discussion
    4
    9
    888
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LakshmanaL
      Lakshmana
      last edited by

      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.1

      The machine is locked state only not even signed out.

      Windows 10
      Windows Version 1703(OS Build 15063.994)

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Separate from that issue, but why the old version of PS?

        LakshmanaL dbeatoD 2 Replies Last reply Reply Quote 0
        • LakshmanaL
          Lakshmana @scottalanmiller
          last edited by

          @scottalanmiller How to upgrade PS ?

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Lakshmana
            last edited by

            @lakshmana said in Powershell Scheduler Issue in Windows 10:

            @scottalanmiller How to upgrade PS ?

            https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-windows?view=powershell-6

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              Not a big deal, but we hve PS6 on Linux, funny that Windows 10 is behind šŸ˜‰

              black3dynamiteB 1 Reply Last reply Reply Quote 1
              • black3dynamiteB
                black3dynamite @scottalanmiller
                last edited by black3dynamite

                @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.

                LakshmanaL 1 Reply Last reply Reply Quote 0
                • LakshmanaL
                  Lakshmana @black3dynamite
                  last edited by

                  @black3dynamite having 5.1 and 6.1 also now

                  1 Reply Last reply Reply Quote 0
                  • dbeatoD
                    dbeato @scottalanmiller
                    last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • dbeatoD
                      dbeato
                      last edited by

                      To create scheduled tasks with PowerShell look at this:

                      https://blogs.technet.microsoft.com/heyscriptingguy/2015/01/13/use-powershell-to-create-scheduled-tasks/

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post