Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

SharePoint 2016 - Scheduled PowerShell Task Shows Completed Successfully But Doesn't Run

$
0
0

Hello Community,

I'm running a PowerShell Script with Task Scheduler, the task shows "Completed Successfully" but the script didn't run.  Here's some information about the script:

General:

Name: SPSiteBackup

Run whether user is logged on or not

Triggers:

At 2:45 every day

Actions:

Start a Program

Powershell.exe

Add arguments: -ExecutionPolicy Bypass -file D:\Scripts\spBackupSite.ps1

Conditions:

Start the task only if the computer is on AC power

Wake the computer to run this task

Settings:

Allow task to be run on demand

Run task as soon as possible after a scheduled start is missed

Stop the task if it runs longer than 2 hours

Please provide guidance and examples.

Thanks!

Tom


Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy


Viewing all articles
Browse latest Browse all 21070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>