Posts Tagged ‘vbs’

Checking Patch History on a Remote System

This item was filled under [ Patching, Workstation ]

So ya need to see what patches are applied to a few remote systems?  Here’s a quick method using a VB script to do just that.  The first batch file is just to get Script Zombie to execute the VBScript using cscript. 
runPatchHist.cmd
@echo off
echo.
echo -Patch History for (%1)
echo.
cscript scripts\helpers\patchHistory.vbs %1

Continue reading...

Tagged with: [ , , , ]

Software Inventory

This item was filled under [ Workstation ]

This script is slightly more complicate than the others I have documented on this site.  In this example we are using Script Zombie to pass the hostname to a Visual Basic Script via the command line.  So there are two steps:
SoftwareInventory.cmd
@echo off
echo.
echo -Software Inventory Script for (%1)
echo.
cscript scripts\helpers\installed.vbs %1

Continue reading...

Tagged with: [ , , , ]

Windows Force Update/Patch Script

This item was filled under [ Patching ]

Here’s example of a remote update script that I am using with Script Zombie to force updates on our servers:
ForceUpdate.cmd — Control Script, Loaded in Script Zombie
@echo off
Echo.
Echo Force Microsoft Patches
Echo ——————————
:UpdateScript
echo.
echo Refreshing Update.Cmd and UpdateHF.vbs on %1
echo.
If NOT EXIST \\%1\c$\Scripts md \\%1\c$\Scripts
xcopy /y c:\Script Zombie\RemoteScripts\Update*.* \\%1\c$\Scripts
echo.
echo Starting Update.Cmd using PSExec
echo.
:Update
psexec \\%1 -u DOMAIN\USERNAME -p [...]

Continue reading...

Tagged with: [ , , , , ]