Schedule Power Automate Flow with Task Scheduler! No Premium Account Required

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 22

  • @lakshmikanth4550
    @lakshmikanth4550 4 วันที่ผ่านมา

    After so much research found this video and worked like a charm

  • @takashiimai8215
    @takashiimai8215 11 หลายเดือนก่อน +1

    Thank you for this video. It worked perfectly for me. I made sure that the shortcut key wasn't assigned to anything else beforehand.

  • @Wyldfyre.84
    @Wyldfyre.84 26 วันที่ผ่านมา +1

    Fantastic video. Thank you for this solution!

  • @brucelee1457
    @brucelee1457 17 วันที่ผ่านมา +2

    I initially didn’t pay close attention to the details in this video. I created the .ps1 PowerShell file, converted it to an .exe file, and tested it by running the application directly. The .exe worked perfectly when clicked manually! However, when I tried to schedule the .exe with Task Scheduler, it failed to work.
    After following the steps in the video more closely, I found the solution: using Task Scheduler to directly execute the .ps1 file instead of the .exe file. The key was to set the "Action" field to "powershell -executionpolicy bypass -file C:\path\to\your\powershellscript.ps1". This allowed the script to run successfully.

  • @monsayavatrasresth8262
    @monsayavatrasresth8262 3 หลายเดือนก่อน +1

    Million thanks!!! This really worked for me.

  • @kirand9459
    @kirand9459 ปีที่แล้ว +1

    its worked for me. Thank you AIP

  • @brianramdhani6345
    @brianramdhani6345 18 วันที่ผ่านมา

    After I save the file Program can't run, any same problem?

  • @zechariahlaughlin1388
    @zechariahlaughlin1388 10 หลายเดือนก่อน +1

    Having trouble with this. Help would be very much appreciated. The ps1 file presses the keys however it does not trigger the flow only default action if any.

  • @MohammadShahin-vd3oi
    @MohammadShahin-vd3oi 5 หลายเดือนก่อน

    it's working fine , many thanks.but a question? is this way working if I logout from the virtual machine??

  • @xnbet
    @xnbet ปีที่แล้ว +1

    Thanks for sharing. However, it's not working. I follow the steps, and when running, only the Command prompt appears and disappears without any other action.

    • @akekakong78
      @akekakong78 ปีที่แล้ว +1

      me too, look like a sendkey is not work in physical

    • @AIPSolutions
      @AIPSolutions  ปีที่แล้ว

      Which keys are you using? Can you try switching to a Function Key instead, like F6?

    • @stephenfletcher6257
      @stephenfletcher6257 4 หลายเดือนก่อน +1

      Same for me. Script is ok but task not :/

  • @hoangvo8637
    @hoangvo8637 11 หลายเดือนก่อน

    thank you for your video helps me alot but can you explain for me how can I get the file file.ps1 and which content that file.ps1 have? Thank you alot

  • @rohanbhattacharyya6600
    @rohanbhattacharyya6600 4 หลายเดือนก่อน +1

    I tried this. It is working if I execute the powershell script but it is not working from Task Scheduler. I also tried to put the powershell logic in a batch file and trigger the batch file. Same issue. If I double click the batch file it is working but not working from task scheduler. Not giving any error also. The shortcut I am using is Ctrl + Alt + Q. Any help will be appreciated.

    • @pdoggy1000
      @pdoggy1000 2 หลายเดือนก่อน

      I have the same issue .. shortcut itself is working, manually executing the script in powershell is working but when task scheduler is executing the script it doesn't work. Did you find a solution?

  • @yenc1898
    @yenc1898 7 หลายเดือนก่อน

    Am sending Ctrl + Shift + X, what is the command?

  • @kudanmedia
    @kudanmedia ปีที่แล้ว +3

    Mine was also failing to work but then managed to fix it:
    Keys to start the flow:
    (Ctrl + Shift + P)
    #Powershell script:
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    [System.Windows.Forms.SendKeys]::SendWait("^{+P}")
    Then on the task scheduler i had to put the full part for power shell, I had to first test in manually first in cmd to see it it work and it worked fine and started the flow.
    C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
    Then on the argument:
    -executionpolicy bypass -file C:\path\to\your\powershellscript.ps1
    The only change I'm now facing is that when the flow start they is a input variable pop up which appears which needs user intervention for the flow to start, how do i solve this.

    • @AIPSolutions
      @AIPSolutions  ปีที่แล้ว

      You will have to pass the input variable automatically to prevent it.

    • @joseji88
      @joseji88 5 หลายเดือนก่อน

      I am not good with power shell but I added this code and it worked:
      $Timer = New-Object Timers.Timer
      $objectEventArgs = @{
      InputObject = $Timer
      EventName = 'Elapsed'
      SourceIdentifier = 'Timer.Elapsed'
      }
      Register-ObjectEvent @objectEventArgs
      $Timer.Interval = 5000
      $Timer.Autoreset = $False
      $Timer.Enabled = $True
      Wait-Event Timer.Elapsed
      [System.Windows.Forms.SendKeys]::SendWait("{ENTER}")

  • @piratoraman
    @piratoraman 8 หลายเดือนก่อน +1

    lets give it a try. nice hack :)

  • @iFFU17
    @iFFU17 หลายเดือนก่อน

    Is there any way when i open batch file it directly execute pda flow and if any system exception (user not logged)occurs write to text file or email..