powershell - Task Scheduler Run Whether User Logged Or Not Issue -
i'm running powershell script task scheduler , runs fine when option 'run when user logged on' selected.
this isn't efficient obvious reasons. there specific reason why when choose 'run whether user logged on or not' script doesn't run?
i've tried local admin , account. have full administrator rights don't see permissions issue. clues?
thank much
this task scheduler export xml.
fyi, script opens excel, refreshes connections, , saves. (the file in 1 drive) regardless of being in 1 drive or not, doesn't refresh file on desktop.
i have tried passing unc path in script opposed c:/users/--
<?xml version="1.0" encoding="utf-16"?> <task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <registrationinfo> <date>2015-05-28t09:34:25.8180083</date> <author>-----</author> </registrationinfo> <triggers> <timetrigger> <repetition> <interval>pt1h</interval> <stopatdurationend>false</stopatdurationend> </repetition> <startboundary>2015-05-29t08:20:00</startboundary> <enabled>true</enabled> </timetrigger> </triggers> <principals> <principal id="author"> <userid>------</userid> <logontype>password</logontype> <runlevel>highestavailable</runlevel> </principal> </principals> <settings> <multipleinstancespolicy>ignorenew</multipleinstancespolicy> <disallowstartifonbatteries>true</disallowstartifonbatteries> <stopifgoingonbatteries>true</stopifgoingonbatteries> <allowhardterminate>true</allowhardterminate> <startwhenavailable>false</startwhenavailable> <runonlyifnetworkavailable>false</runonlyifnetworkavailable> <idlesettings> <stoponidleend>true</stoponidleend> <restartonidle>false</restartonidle> </idlesettings> <allowstartondemand>true</allowstartondemand> <enabled>true</enabled> <hidden>false</hidden> <runonlyifidle>false</runonlyifidle> <waketorun>false</waketorun> <executiontimelimit>p3d</executiontimelimit> <priority>7</priority> </settings> <actions context="author"> <exec> <command>powershell</command> <arguments>-file "scriptpathhere"</arguments> </exec> </actions> </task>
Comments
Post a Comment