Giter VIP home page Giter VIP logo

Comments (4)

Disassembler0 avatar Disassembler0 commented on August 28, 2024 3

Yes, it can be automated. However I'm not going to add anything like that in my script and I strongly recommend not to disable Windows Updates altogether.

That being said, you can programatically take ownership using takeown and icacls commands. First, you need to be an administrator (obviously) and then you run something like

takeown /F C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator /A /R
icacls C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator /grant Administrators:F /T

This will grant the Administrators group ownership and full permission to the directory. Check the manual for possible parameters for icacls to see how you can deny R/W for SYSTEM or other users (I have something like that in DisableAutoLogger tweak).

The rest is then a combination of StopService, Set-Service -StartupType Disabled and Disable-ScheduledTask, but that part you probably already figured out.

from win10-initial-setup-script.

clifntx avatar clifntx commented on August 28, 2024

Thank you! I am now able to disable the scheduled task.

I am still not able to change the usosvc startup type. Getting an access denied error.

set-service : Service 'Update Orchestrator Service (usosvc)' cannot be configured due to the following error: Access
is denied

from win10-initial-setup-script.

zireael0 avatar zireael0 commented on August 28, 2024

Check out this link

set X=UsoSvc
reg add "HKLM\SYSTEM\CurrentControlSet\Services\%X%" /V "Start" /T REG_DWORD /D "4" /F

from win10-initial-setup-script.

xomx avatar xomx commented on August 28, 2024

Now I am using this automated way for the WU full-control, so far so good:

https://forums.mydigitallife.net/threads/wumt-wrapper-script-controls-windows-update-service.72203/

from win10-initial-setup-script.

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.