Archive for the ‘Server’ Category

Automated Windows Security Patching

This item was filled under [ Patching, Server, Tools, Workstation ]

As promised here is a quick write up on how I am doing security patches for our servers now. Basically I am able to run the script during normal work hours and schedule the patching for the evening. At night when the patching starts I get email notifications with success/fail information for each server. I have been using this process for 3 or 4 months now and it’s working great.

Continue reading...

Zero Byte Files/Flags

This item was filled under [ Server ]

From time to time you need a method to create and test for the existence of a zero byte file in your scripting.  I use these files as flags, so that I know if an earlier prerequisite process completed successfully.
Creating the zero byte file is a simple process:
@echo off
echo.
echo – Check to see if the file [...]

Continue reading...

Tagged with: [ ]

Restarting a service

This item was filled under [ Server, Workstation ]

Below is an example how you can restart a service on one more many systems using Script Zombie as the controlling application:
@echo off
Echo.
Echo Remotely Restart a Service
Echo ————————–
sc \\%1 stop servicename
sc \\%1 start servicename
In this example we use SC.exe (Service Control) to first stop the service and then restart it.  In this case %1 is [...]

Continue reading...

Tagged with: [ , , , , ]