Git Product home page Git Product logo

Comments (10)

alekdavis avatar alekdavis commented on June 24, 2024 1

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.

alekdavis avatar alekdavis commented on June 24, 2024

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.

shanester64 avatar shanester64 commented on June 24, 2024

from plexbackup.

alekdavis avatar alekdavis commented on June 24, 2024

What happens if you run it from the Actions panel in the Task Scheduler?

from plexbackup.

shanester64 avatar shanester64 commented on June 24, 2024

from plexbackup.

alekdavisintel avatar alekdavisintel commented on June 24, 2024

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.

albino1 avatar albino1 commented on June 24, 2024

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.

alekdavisintel avatar alekdavisintel commented on June 24, 2024

I'm not sure what you're saying, but I'm sure it will not help.

from plexbackup.

albino1 avatar albino1 commented on June 24, 2024

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.

albino1 avatar albino1 commented on June 24, 2024

Apologies, I was hoping it would maybe be a possible workaround, but yeah, not an option.

from plexbackup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.