Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.
## Contribution

Contributions 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