Adtran disable Spanning Tree using Edgeport and BPDU

September 11th, 2008 No comments

I have 6 Adtran Netvanta 1524st switches on which I wanted to disable STP (spanning tree protocol). After checking the switches through their web interface and using SSH to check the Adtran Operating System (AOS) command line help I was unable to spot any obvious method of disabling it.

Read more...

Categories: Hardware Tags: ,

Regkey to disable XP dial-up connection logon

August 22nd, 2008 No comments

Here is a registry key I run from a startup script to disable the option that allows users to invoke a "Log on using dial-up connection". Having had experience of working in a school I know how kids will use any excuse to distract them from logging onto a computer and starting the lesson!

Read more...

Categories: Registry, Scripting Tags: , ,

KiXtart script to backup MSSQL database

August 22nd, 2008 1 comment

Here is another quick KiXtart script I wrote to backup a Microsoft SQL database on a server. I personally run it locally on the server that contains the database I want to backup using a scheduled task. It connects to the MSSQL database using the OSQL command line utility which it runs through a shell.

Read more...

Categories: MSSQL, Scripting Tags:

KiXtart script to retrieve Active Directory user info

August 21st, 2008 No comments

Here's a quick script written using KiXtart to retrieve information for a user (object) in Active Directory. Once enumerated, object information is stored in variables to be used later.

Read more...

Categories: Scripting Tags: , ,

Vista IE7 crashes when sending email through OWA

August 21st, 2008 No comments

I have installed Microsoft Exchange quite a few times as a syadmin and since the release of Vista one thing I seem to forget is to address the issue of Vista clients using Internet Explorer 7 that send email through Outlook Web Access.

Read more...

Regkey to enable & disable Outlook 2003 cached mode

August 21st, 2008 2 comments

Pre Microsoft office 2003 SP3, when creating a new MAPI email account in outlook 2003 the default setting was to "Use Cached Exchange Mode". I have noticed that after installing SP3 the default seems to now be disabled when creating an email account.

Read more...

Categories: Office, Registry Tags: ,

VMware ESX date bug fix

August 20th, 2008 1 comment

I use VMware ESX 3.5 and Virtual Center 2.5 since implementing it at my current workplace. Like many sysadmins I regularly keep on top of patching. I manually patch my ESX hosts when I see fit after pulling updates through Virtual Center. Subsequently, I recently applied the latest update (3.5 u2 or update 2) to all ESX hosts. As a frequent reader of The Register I was later surprised to learn of a bug where people had encountered issues when booting or VMotioning Virtual Machines on or after 12th August 2008.

Read more...

Categories: VMware Tags: ,

Delete files older than certain number of days

July 31st, 2008 66 comments

I was recently asked to investigate a problem with a server and the lack of space on a partition. After a quick look using Treesize I noticed a suspicious folder being used by an application for logging purposes.

Read more...

Categories: Windows Server 2003 Tags:

Close Remote Desktop Connection (RDP) session remotely

July 23rd, 2008 No comments

I have a server located in a data centre miles away from where I work. It currently runs Windows 2000 Server. Every now and then when I try to connect to the server I get the following message about the number of Remote Desktop connections being exceeded:

Read more...

Categories: Software Tags: ,

Run Compiled HTML .chm from network share

February 11th, 2008 2 comments

Way back in 2002 Microsoft released a security bulletin regarding what they called a 'vulnerability in HTML Help that Could Allow Remote Code Execution'. The issue is related to help files that many software vendors use in the form of compiled HTML help files that use the .chm file extension.

Read more...