Comments (10)
That's not how Windows security works (I mean your assumption about this being helpful). In essence, it's already what happens: Task Scheduler invokes PowerShell (scripting), which runs the backup script. You can introduce 100 more scripts in between (Task Scheduler-script 1-script2-...-script 100-PowerShell-backup script), but it will not be of much use.
from plexbackup.
I assume it works if you run it manually, right? If so, it means the process is not running with highest permissions when invoked from the scheduler.
from plexbackup.
from plexbackup.
What happens if you run it from the Actions panel in the Task Scheduler?
from plexbackup.
from plexbackup.
Hey, Ken. I wish I could help you, but I really do not know why this would happen. Obviously, when the script runs from the Task Scheduler, it does not have enough privileges to stop services, even though you say the option is checked. Task Scheduler is a weird beast (it has other issues as well), but I do not have sufficient knowledge to troubleshoot it over message exchange (and even in person). I would check Windows Even log to see if there are any more specific errors. Maybe there is some policy applied to the account that you use that prevents this. Really hard to say. I can explain what, how and why the script does what it does, but the Task Scheduler part is not really my area of expertise, especially since I have not heard from anyone about this particular issue since I released the script a few years ago. I wish I could be more helpful.
from plexbackup.
If it's some sort of Task Scheduler specific permission issue maybe hide it in a batch script and just call the batch script instead?
from plexbackup.
I'm not sure what you're saying, but I'm sure it will not help.
from plexbackup.
I'm saying if Task Scheduler has a permission issue of some sort, then just have Task Scheduler run a batch script with the PowerShell line inside of it, then the PowerShell line is being executed independently of any theoretical Task Scheduler restrictions.
To be clear, I don't think it will work either, but I also don't think Task Scheduler should have any problems in the first place, especially if it works when you just right-click and run it from inside of Task Scheduler.
from plexbackup.
Apologies, I was hoping it would maybe be a possible workaround, but yeah, not an option.
from plexbackup.
Related Issues (20)
- issue with backup HOT 5
- Cannot import run-time settings from default configuration file (if any). Invalid JSON primitive: Skip. HOT 1
- Validation error. Backup version does not match HOT 3
- Can't start Plex after backup HOT 6
- After backup completes getting an error when the script attempts to start Plex HOT 3
- Plex Media Server Not Restarting HOT 1
- Email Notification Not Working HOT 2
- Plex Backup Failing-Nothing Changed HOT 16
- question/enhancement HOT 4
- Only receiving the error "Error processing dependencies. You cannot call a method on a null-valued expression." HOT 6
- Fix typo in log message HOT 1
- Add support for PowerShell 7.
- RUNAS ERROR: Unable to run ... 87: The parameter is incorrect. HOT 2
- Plex Backup Fails Through Task Scheduler (Win 10 Pro) HOT 2
- 87: The parameter is incorrect HOT 13
- Create a workaround for the error 87: The parameter is incorrect HOT 1
- Restore didn
- Restore didn't work too well for me HOT 16
- Sub folders not being created by backup process HOT 5
- Add the option to exclude Cache folder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexbackup.