About 134,000 results
Open links in new tab
  1. How do I execute a PowerShell script automatically using …

    May 30, 2014 · I have one PowerShell script which sends emails. I want to execute that script automatically, every 1 minute. How can I do it, using task scheduler? Currently I have created a task and provided the path of my script. But that scheduler opens my script, instead of executing. I am using Windows 7 Professional and PowerShell version 2.0.5.

  2. Running a Powershell script from Task Scheduler

    Apr 24, 2020 · It takes a few seconds to run. I am able to run it in SharePoint Online Management Shell - (Run ISE as Administrator). Would Privileges restrict the script from running the report or uploading a file to SharePoint?

  3. task scheduler powershell scripts never ends - Stack Overflow

    May 10, 2016 · Run with highest privileges Triggers Daily, every 2 minute Action: Start a Program powershell -file c:\Scripts\upload.ps1 As a workaround, I configured the task to automatically stop after 1 minute. However, I'm concerned that in certain circumstances -- such as a large number of large files -- the script may get terminated before completing fully.

  4. Pass Powershell parameters within Task Scheduler

    Jun 16, 2017 · I recommend scheduling the task to use the -File parameter rather than -Command. Example: Program/script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Add arguments (optional): -NoProfile -ExecutionPolicy Bypass -File "Scheduled-ServiceRestart.ps1" -ErrorLog …

  5. Powershell - Create Scheduled Task to run as local system / service

    Jan 4, 2010 · Can anyone tell me how to create a scheduled task using powershell that runs as the local system or local service? Everything works great except the call to ITaskFolder.RegisterTaskDefinition(). ...

  6. How to run a PowerShell script without displaying a window?

    Jan 28, 2015 · I found out if you go to the Task in Task Scheduler that is running the powershell.exe script, you can click " Run whether user is logged on or not " and that will never show the powershell window when the task runs.

  7. Powershell script does not run via Scheduled Tasks

    Aug 11, 2012 · Change your Action to: powershell -noprofile -executionpolicy bypass -file C:\path\event4740.ps1 On a Windows 2008 server R2: In Task Scheduler under the General Tab - Make sure the 'Run As' user is set to an account with the right permissions it takes to execute the script. Also, I believe you have the "Run only when user is logged on" Option checked off. …

  8. Powershell: Scheduled Task with Daily Trigger and Repetition Interval

    Here is a way of creating a scheduled task in Powershell (v5 on my machine, YMMV) that will start at 12AM every day, and repeat hourly for the rest of the day. Therefore it will run indefinitely. I believe this is a superior approach vs setting -RepetitionDuration to ([timespan]::MaxValue) as I commented earlier, as the trigger will show up in the Task Scheduler as: At 12:00 AM every …

  9. PowerShell script won't execute as a Windows scheduled task

    I have a PowerShell script (that works). In Windows Task Scheduler I created a new task to execute "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe", passing the argument as my PS1 script. When the task runs I get a Last Run Result of 0x1. I updated my script to write to a log file when the script opens and that isn't happening.

  10. Scheduling a .py file on Task Scheduler in Windows 10

    Feb 15, 2024 · Another option is using Powershell to run your Python script, and point the Task Scheduler action to the Powershell script. Add a Powershell script, run_script.ps1, in the same directory as my Python script.

Refresh