______________________________________________________________________________________________________
Script examples written by Travis Hutchings
thutch901@gmail.com
971.226.6732
Server and OS patch management: Microsoft Windows
_______________________________________________________
Introduction:
- User device patch management.
- Network and Appliance Device patch management.
- KIOSK patch management.
- Hand Held device patch management, Windows CE or Linux CE or embedded OS patch management.
Due to making it a brief and not a full implementation plan and exercise, it is certainly not an exhaustive recommendation on a patching strategy. The concepts will work with any managed environment possible minor modifications to process and requirements.
I have used just scripts and good old fashioned native OS schedulers and scripted jobs and inventory results. That really is dependent on the tools used for patching. I had hands-on experience at WSUS patching mechanism. I was also using a Solarwinds Patch manager; it would update Flash, Winzip utilities. Adobe updates on Windows. I have also used SCCM with WSUS to do the patching on Windows as well.
This question is easy to ask and harder to answer. There are a lot of ways to apply patches and a lot of reasons too.
1. Security and compliance for one thing.
2. The other thing is to fix a support or functional issue.
3. Provide new functionality to current products.
Windows Patching:
I also incorporated this option and through SCCM as some places were running this method previously or had the tools sets to run it.
1. Windows Powershell:
This will list Windows Updates command line:
This will retrieve the update: Get-WindowsUpdate
This will apply the retrieved update: Install-WindowsUpdate
2. Windows Command Line:
Detect new updates
wuauclt /detectnow
Install new updates
wuauclt /updatenow
3. The get-wmiobject -class win32_quickfixengineering and writing the contents to a csv is so I can review against a Nessus scan or other scan based system and output both results to CSV and do an excel compare to contrast the results.
4. In combination and coordination a list of applied patches can be reviewed, new ones downloaded, and those downloaded patches applied in Windows. These are options I have used when having a WSUS server was a large requirement and I needed a down and dirty way to apply windows patches. I also used a combination scripted method like this when doing DMZ windows based servers. This call is also utilized when puppet or some other method of automation is utilized by the organization and generally supported by the business.
Comments
Post a Comment