Skip to content

Commit e9b8af5

Browse files
committed
chore: 🎉 initial commit
0 parents  commit e9b8af5

File tree

5 files changed

+330
-0
lines changed

5 files changed

+330
-0
lines changed

.github/FUNDING.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are supported funding model platforms
2+
3+
github: [ManuelGil]
4+
ko_fi: ManuelGil
5+
custom:
6+
['https://paypal.me/ManuelFGil', 'https://www.buymeacoffee.com/ManuelGil']

CODE_OF_CONDUCT.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders pledge to make participation in our
7+
community a harassment-free experience for everyone, regardless of age, body
8+
size, visible or invisible disability, ethnicity, sex characteristics, gender
9+
identity and expression, level of experience, education, socio-economic status,
10+
nationality, personal appearance, race, caste, color, religion, or sexual
11+
identity and orientation.
12+
13+
We pledge to act and interact in ways that contribute to an open, welcoming,
14+
diverse, inclusive, and healthy community.
15+
16+
## Our Standards
17+
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
20+
21+
* Demonstrating empathy and kindness toward other people
22+
* Being respectful of differing opinions, viewpoints, and experiences
23+
* Giving and gracefully accepting constructive feedback
24+
* Accepting responsibility and apologizing to those affected by our mistakes,
25+
and learning from the experience
26+
* Focusing on what is best not just for us as individuals, but for the overall
27+
community
28+
29+
Examples of unacceptable behavior include:
30+
31+
* The use of sexualized language or imagery, and sexual attention or advances of
32+
any kind
33+
* Trolling, insulting or derogatory comments, and personal or political attacks
34+
* Public or private harassment
35+
* Publishing others' private information, such as a physical or email address,
36+
without their explicit permission
37+
* Other conduct which could reasonably be considered inappropriate in a
38+
professional setting
39+
40+
## Enforcement Responsibilities
41+
42+
Community leaders are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
46+
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all community spaces, and also applies when
55+
an individual is officially representing the community in public spaces.
56+
Examples of representing our community include using an official e-mail address,
57+
posting via an official social media account, or acting as an appointed
58+
representative at an online or offline event.
59+
60+
## Enforcement
61+
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported to the community leaders responsible for enforcement at
64+
[INSERT CONTACT METHOD].
65+
All complaints will be reviewed and investigated promptly and fairly.
66+
67+
All community leaders are obligated to respect the privacy and security of the
68+
reporter of any incident.
69+
70+
## Enforcement Guidelines
71+
72+
Community leaders will follow these Community Impact Guidelines in determining
73+
the consequences for any action they deem in violation of this Code of Conduct:
74+
75+
### 1. Correction
76+
77+
**Community Impact**: Use of inappropriate language or other behavior deemed
78+
unprofessional or unwelcome in the community.
79+
80+
**Consequence**: A private, written warning from community leaders, providing
81+
clarity around the nature of the violation and an explanation of why the
82+
behavior was inappropriate. A public apology may be requested.
83+
84+
### 2. Warning
85+
86+
**Community Impact**: A violation through a single incident or series of
87+
actions.
88+
89+
**Consequence**: A warning with consequences for continued behavior. No
90+
interaction with the people involved, including unsolicited interaction with
91+
those enforcing the Code of Conduct, for a specified period of time. This
92+
includes avoiding interactions in community spaces as well as external channels
93+
like social media. Violating these terms may lead to a temporary or permanent
94+
ban.
95+
96+
### 3. Temporary Ban
97+
98+
**Community Impact**: A serious violation of community standards, including
99+
sustained inappropriate behavior.
100+
101+
**Consequence**: A temporary ban from any sort of interaction or public
102+
communication with the community for a specified period of time. No public or
103+
private interaction with the people involved, including unsolicited interaction
104+
with those enforcing the Code of Conduct, is allowed during this period.
105+
Violating these terms may lead to a permanent ban.
106+
107+
### 4. Permanent Ban
108+
109+
**Community Impact**: Demonstrating a pattern of violation of community
110+
standards, including sustained inappropriate behavior, harassment of an
111+
individual, or aggression toward or disparagement of classes of individuals.
112+
113+
**Consequence**: A permanent ban from any sort of public interaction within the
114+
community.
115+
116+
## Attribution
117+
118+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119+
version 2.1, available at
120+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121+
122+
Community Impact Guidelines were inspired by
123+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124+
125+
For answers to common questions about this code of conduct, see the FAQ at
126+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127+
[https://www.contributor-covenant.org/translations][translations].
128+
129+
[homepage]: https://www.contributor-covenant.org
130+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131+
[Mozilla CoC]: https://github.com/mozilla/diversity
132+
[FAQ]: https://www.contributor-covenant.org/faq
133+
[translations]: https://www.contributor-covenant.org/translations

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Manuel Gil
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Reset Windows Update Tool - Lite
2+
3+
## Description:
4+
5+
This script only restores the Windows Update components (lite version).
6+
7+
## Contributing
8+
9+
If you'd like to contribute to this documentation, please follow these steps:
10+
11+
1. Fork this repository to your own GitHub account.
12+
2. Create a new branch with a descriptive name for your changes.
13+
3. Make your changes and commit them to your branch.
14+
4. Push your branch to your forked repository.
15+
5. Open a pull request from your branch to this repository's `main` branch.
16+
6. Your changes will be reviewed and merged if they meet the project's standards.
17+
18+
## Collaboration
19+
20+
This project has a MIT license, which means its code is open source and anyone can collaborate. If you are interested in contributing, please review the [basic collaboration rules](CODE_OF_CONDUCT.md).
21+
22+
Issues and feature requests can be reported through GitHub Tracker. In addition, you can join the developer community in the discussion forum, real-time chat channel, mailing list, and online meetings.
23+
24+
## Credits
25+
26+
This project is developed and maintained by [Manuel Gil](https://github.com/ManuelGil).
27+
28+
## License
29+
30+
This project is distributed under the MIT license. For more information, see the [LICENSE](LICENSE.md) file.

wureset-lite.bat

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
:: ==================================================================================
2+
:: NAME: Reset Windows Update Tool - Lite.
3+
:: AUTHOR: Manuel Gil.
4+
:: ==================================================================================
5+
6+
echo off
7+
title Reset Windows Update Tool.
8+
color 17
9+
10+
cls
11+
ver
12+
echo.Reset Windows Update Tool.
13+
echo.
14+
15+
echo.Canceling the Windows Update process.
16+
echo.
17+
18+
taskkill /im wuauclt.exe /f
19+
20+
echo.Stopping the Windows Update services.
21+
echo.
22+
23+
net stop bits
24+
net stop wuauserv
25+
net stop appidsvc
26+
net stop cryptsvc
27+
28+
echo.Checking the services status.
29+
echo.
30+
31+
sc query bits | findstr /I /C:"STOPPED"
32+
if %errorlevel% NEQ 0 echo Failed to stop the bits service. & pause & goto :eof
33+
34+
sc query wuauserv | findstr /I /C:"STOPPED"
35+
if %errorlevel% NEQ 0 echo Failed to stop the wuauserv service. & pause & goto :eof
36+
37+
sc query appidsvc | findstr /I /C:"STOPPED"
38+
if %errorlevel% NEQ 0 sc query appidsvc | findstr /I /C:"OpenService FAILED 1060"
39+
if %errorlevel% NEQ 0 echo Failed to stop the appidsvc service. & pause & goto :eof
40+
41+
sc query cryptsvc | findstr /I /C:"STOPPED"
42+
if %errorlevel% NEQ 0 echo Failed to stop the cryptsvc service. & pause & goto :eof
43+
44+
echo.Deleting the qmgr*.dat files.
45+
echo.
46+
47+
del /s /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
48+
del /s /q /f "%ALLUSERSPROFILE%\Microsoft\Network\Downloader\qmgr*.dat"
49+
50+
echo.Renaming the softare distribution folders backup copies.
51+
echo.
52+
53+
rmdir /s /q "%SYSTEMROOT%\SoftwareDistribution.bak"
54+
ren "%SYSTEMROOT%\SoftwareDistribution" SoftwareDistribution.bak
55+
if exist "%SYSTEMROOT%\SoftwareDistribution" echo Failed to rename the SoftwareDistribution folder. & pause & goto :eof
56+
57+
rmdir /s /q "%SYSTEMROOT%\system32\Catroot2.bak"
58+
ren "%SYSTEMROOT%\system32\Catroot2" Catroot2.bak
59+
60+
del /s /q /f "%SYSTEMROOT%\winsxs\pending.xml.bak"
61+
ren "%SYSTEMROOT%\winsxs\pending.xml" pending.xml.bak
62+
63+
del /s /q /f "%SYSTEMROOT%\WindowsUpdate.log.bak"
64+
ren "%SYSTEMROOT%\WindowsUpdate.log" WindowsUpdate.log.bak
65+
66+
echo.Reset the BITS service and the Windows Update service to the default security descriptor.
67+
echo.
68+
69+
sc.exe sdset wuauserv D:(A;CI;CCLCSWRPLORC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOSDRCWDWO;;;WD)
70+
sc.exe sdset bits D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;SAFA;WDWO;;;BA)
71+
sc.exe sdset cryptsvc D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CCLCSWRPWPDTLOCRRC;;;SO)(A;;CCLCSWLORC;;;AC)(A;;CCLCSWLORC;;;S-1-15-3-1024-3203351429-2120443784-2872670797-1918958302-2829055647-4275794519-765664414-2751773334)
72+
sc.exe sdset trustedinstaller D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRRC;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;SAFA;WDWO;;;BA)
73+
74+
echo.Reregister the BITS files and the Windows Update files.
75+
echo.
76+
77+
regsvr32.exe /s atl.dll
78+
regsvr32.exe /s urlmon.dll
79+
regsvr32.exe /s mshtml.dll
80+
regsvr32.exe /s shdocvw.dll
81+
regsvr32.exe /s browseui.dll
82+
regsvr32.exe /s jscript.dll
83+
regsvr32.exe /s vbscript.dll
84+
regsvr32.exe /s scrrun.dll
85+
regsvr32.exe /s msxml.dll
86+
regsvr32.exe /s msxml3.dll
87+
regsvr32.exe /s msxml6.dll
88+
regsvr32.exe /s actxprxy.dll
89+
regsvr32.exe /s softpub.dll
90+
regsvr32.exe /s wintrust.dll
91+
regsvr32.exe /s dssenh.dll
92+
regsvr32.exe /s rsaenh.dll
93+
regsvr32.exe /s gpkcsp.dll
94+
regsvr32.exe /s sccbase.dll
95+
regsvr32.exe /s slbcsp.dll
96+
regsvr32.exe /s cryptdlg.dll
97+
regsvr32.exe /s oleaut32.dll
98+
regsvr32.exe /s ole32.dll
99+
regsvr32.exe /s shell32.dll
100+
regsvr32.exe /s initpki.dll
101+
regsvr32.exe /s wuapi.dll
102+
regsvr32.exe /s wuaueng.dll
103+
regsvr32.exe /s wuaueng1.dll
104+
regsvr32.exe /s wucltui.dll
105+
regsvr32.exe /s wups.dll
106+
regsvr32.exe /s wups2.dll
107+
regsvr32.exe /s wuweb.dll
108+
regsvr32.exe /s qmgr.dll
109+
regsvr32.exe /s qmgrprxy.dll
110+
regsvr32.exe /s wucltux.dll
111+
regsvr32.exe /s muweb.dll
112+
regsvr32.exe /s wuwebv.dll
113+
114+
echo.Resetting Winsock and WinHTTP Proxy.
115+
echo.
116+
117+
netsh winsock reset
118+
netsh winhttp reset proxy
119+
120+
echo.Resetting the services as automatics.
121+
echo.
122+
123+
sc.exe config wuauserv start= auto
124+
sc.exe config bits start= delayed-auto
125+
sc.exe config cryptsvc start= auto
126+
sc.exe config TrustedInstaller start= demand
127+
sc.exe config DcomLaunch start= auto
128+
129+
echo.Starting the Windows Update services.
130+
echo.
131+
132+
net start bits
133+
net start wuauserv
134+
net start appidsvc
135+
net start cryptsvc
136+
net start DcomLaunch
137+
138+
echo.The operation completed successfully.
139+
pause
140+
goto :eof

0 commit comments

Comments
 (0)