This page offers code samples that are discussed elsewhere on the site. As with any code posted on the internet, absolutely no warranties are implied here – use at your own risk; modify and redistribute freely.
Determining AD Site of Computer Objects
Migrate AD Group Permissions in SharePoint
This project is also published on CodePlex.
WSUS Maintenance Scripts
- WSUS-DeleteDeclinedUpdates.ps1 – PowerShell script to delete all declined updates/definitions
- WsusDBMaintenance.sql - SQL script to reindex WSUS database (reposted from Microsoft and applies to WSUS 3.0)
- Reindex.cmd - batch file that should be run on a scheduled basis, calls reindex script in B above