Coder Social home page Coder Social logo

wsus-helpers's Introduction

wsus-helpers

Helper scripts for WSUS sync and maintenance

wsus-approve

Allows for more complex approval rules than the ones in WSUS GUI. By default it declines the following updates automatically:

  • Itanium/IA64 updates
  • ARM64 updates
  • x86 Updates
  • Beta updates
  • Preview updates
  • Expired updates
  • Superseded updates

It approves all other updates automatically for "All Computers" group with the exception of "Upgrades" category, which is left for manual approval.

For your own sanity you should remove all approval rules, unselect all advanced approval options and disable automatic sync in WSUS before using this script to handle syncs and approvals.

wsus-maintenance

WSUS database maintenance script. The script has three modes

# Create indexes and reindex. It is only necessary to run this once
wsus-maintenance.ps1 -Init

# Reindex. Run after every sync and maintenance
wsus-maintenance.ps1

# Reindex, run the built-in WSUS maintenance jobs
wsus-maintenance.ps1 -Full

# Delete all decline updates from both the database and the disk. This will
# cause the next sync to be very slow. Mainly for cleaning up deselected
# updates when removing a language etc. Should be used sparingly.
wsus-maintenance.ps1 -DeleteDeclined

Scheduling recommendations

Create a daily task that runs these actions

  1. wsus-approve.ps1
  2. wsus-maintenance.ps1

Create a monthly task that runs this action

  1. wsus-maintenance.ps1 -Full

Offline WSUS sync

wsus-sync

File based sync to servers without direct internet connectivity

wsus-export

Wrapper for wsus-sync to ensure everything is updated before exporting the content

wsus-import

Wrapper for wsus-sync to run wsus-approve automatically after wsus-sync import as it only makes sense to check for new updates after an import for offline servers.

Credits

wsus-helpers's People

Contributors

hkbakke avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

floitey

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.