.cmd script that determines if a directory is empty and sends email notification of status

by File in: script

I have an email archiving application on a Windows 2003 server that requires a lot more manual intervention than I prefer.  As the application moves the mail messages throughout it’s various directory queues, sometimes it experiences an event that causes processing to halt.  This results in a particular directory filling up until an administrator manually […]

Script to backup Groupwise configuration files on Netware Part I

by File in: backup, Groupwise, script

I performed a Groupwise 6.5 to 7.0.3 upgrade this weekend on the domain and post office servers, and wrote a quick script to backup the agent configuration files.  It’s not a pretty script, but I wrote it in about 10 minutes and it worked on all my Netware servers.  I call this script part I […]

Simple script to backup Groupwise 7 configuration files on SLES Linux

by File in: Groupwise, script

I’m about to upgrade our Groupwise infrastructure, and I wanted to write a simple script that would backup and archive important Groupwise configuration files.  I’m not proficient at scripting, but here’s what I came up with.  Please recommend additional files to include if I have overlooked anything. [sourcecode language=’cpp’] #################################### ### Begin ### script to backup […]

Powershell script to change from static to dynamic IP addressing

by File in: script

I’ve been working on validating an email server migration plan which has required utilizing test servers isolated from the production network.  Because they are offnet, I have to frequently switch my laptop from the production to test networks, which involves reconfiguring my network card from dynamic to static IP addresses. I could use Windows XP’s […]

Script to securely backup and export IIS 6.0 Configuration

by File in: script

Last week I posted a basic script that took advantage of file encryption to securely backup the iis metabase. Today’s script builds upon it by backing up the IIS configuration and exporting it using iiscnfg.vbs. REM delete mapping for H: if it exists net use h: /del REM map H: to remote server share net […]

Script to securely backup IIS 6.0 Metabase

by File in: script

The following is a script to backup the IIS 6.0 Metabase.  Save it as bkupmeta.bat. REM delete mapping for H: if it exists net use h: /del REM map H: to remote server share net use h: \\RemoteServer\backup /user:RemoteServer\user password REM replace YouriisServerName with the name of your IIS web server SET SERVER=YouriisServerName REM yymmdd will be […]

Kiwi CatTools: Schedule automatic backups (and perform other activities) on your network devices

by File in: utilities

Kiwi CatTools is a free (up to five devices) customizable utility that help network administrators automate configuration backups of their network devices such as routers and switches. It provides email notification and compare reports, highlighting configuration changes. Some of the features of CatTools includes: Instant or scheduled device configuration backups where any differences can be […]

Script to add an Active Directory Domain User or Group to a Windows Local Group

by File in: script, Windows

This Technet Hey Scripting Guy column describes how to add a Domain Group to a Local Windows Group: strComputer = “atl-ws-001” Set objLocalGroup = GetObject(“WinNT://” & strComputer & “/TestGroup”) Set objADGroup = GetObject(“WinNT://Fabrikam/Finance”) objLocalGroup.Add(objADGroup.ADsPath) where: atl-ws-001 is the name of the local computer you wish to add the domain group to TestGroup is the name […]

Howto: automatically remove files older than ‘x’ days, Part II

by File in: howto, script

Earlier I had posted my .vbs script for deleting files that were more than ‘x’ days old. I just ran across this script that accomplishes the same thing, using Windows 2003’s native forfiles comand (scroll down to step 4). echo on rem First Delete old SQL Backup Files FORFILES /p C:\filename /s /m *.* /d […]

Howto: automatically remove files older than ‘x’ days

by File in: backup, howto, script

Tape backups have failed me too many times, so I now do my Windows backup to an external hard drive. One of the office staff is in charge of swapping out our backup drives and taking it offsite. I needed a solution that would remove old backups without user intervention so they wouldn’t have to […]