Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuri-it/winupdater
Install windows updates using PowerShell and generate a Log file which contains what updates got installed
https://github.com/nuri-it/winupdater
Last synced: 10 days ago
JSON representation
Install windows updates using PowerShell and generate a Log file which contains what updates got installed
- Host: GitHub
- URL: https://github.com/nuri-it/winupdater
- Owner: nuri-it
- License: gpl-3.0
- Created: 2024-01-18T16:09:35.000Z (almost 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T08:27:14.000Z (10 months ago)
- Last Synced: 2024-11-10T12:37:34.227Z (2 months ago)
- Language: PowerShell
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WinUpdater
WinUpdater is a PowerShell script designed to streamline the installation of Windows updates, providing you with a detailed log file of the updates that were installed.
## Features
- **Effortless Installation:** The script simplifies the process of installing Windows updates through PowerShell.
- **Detailed Log:** Generates a log file containing information about the updates that were installed.
- **Automation:** Set up a Task in Task Scheduler to automate the update installation process.
- **Reboot Handling:** The script can automatically reboot the computer if required by an update.## Getting Started
### Prerequisites
Ensure you have PowerShell installed on your Windows system.### Usage
1. Download the `WinUpdater.ps1` script.
2. Open PowerShell with administrator privileges.
3. Navigate to the directory where the script is located.
4. Run the script using the command:
```.\WinUpdater.ps1```
## Automation with Task Scheduler
- Run the following command in PowerShell as Administrator ```Set-ExecutionPolicy Bypass```
- Extract the Code to ```C:\scripts```.
- Open Task Scheduler and click on Import ```Task```.
- Browse C:\scripts\winupdater-main and select ```WinUpdater.xml```.
- The script will run everyday at 01:00 by default.## Log File
The Log File will be stored under ```C:\scripts\winupdater-main```## Important Note
Make sure to review the generated log file for any potential issues or errors during the update installation.
## ContributionContributions are welcome! If you have any improvements or suggestions, feel free to open an issue or create a pull request.
## ToDos
Make the script install updates in remote Servers
```
Install-Module -Name PSWindowsUpdate -Force
Get-Package -Name PSWindowsUpdate
get-command -module PSWindowsUpdate
Get-WindowsUpdate
Get-WUList –ComputerName server2
Get-WindowsUpdate -AcceptAll -Install -AutoReboot
```## License
This project is licensed under the GPL-3.0 License.
Happy updating!
#gg