Comments (4)
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.
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.
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.
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)
- What are "ModernUI applications" - or how do I recognize them? HOT 5
- Transparency not being disabled on 2004 HOT 2
- Request: Disable/Enable Print Spooler Serivce. HOT 1
- Windows Defender Attack Surface Reduction Rules (ASR) HOT 1
- Wi-Fi Sense is no longer available HOT 2
- Disassembler intermintently stops when running through selected items in .preset file
- Disable Domain Firewall HOT 1
- How to find "Quick acces" and classical incon on taskbar HOT 1
- EnableActionCenter not work after DisableActionCenter HOT 3
- Open command window here
- PowerShell and ampersand issues HOT 1
- Add command option to read current settings and output as preset file
- Add short description column to the preset file
- NumLock
- Add Disable Caps Lock HOT 1
- DisableF1HelpKey completely disables F1 and F2 keys HOT 1
- How to undo these changes? HOT 3
- Consider putting all MsftBloat in separate script file HOT 1
- Administrative shares not working
- Remove photos viewer from msft bloat
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 win10-initial-setup-script.