VBScript: Completely remove Office 2007

The below VBScript can be used to completely remove all Microsoft Office 2007 components from a machine. This is a deep deep clean, so can take anything up to 2 hours to complete, depending on spec of the machine.

 

Read More

VBScript: List AD group members

Managing large ActiveDirectory estates can often be a challenge, especially when you have a large group of AD administrators controlling group access.. This nifty little VBScript can be used to enumerate all the members of an AD Group. Handy for regular maintenance tasks.

This VBScript could easily be adapted to out put the list to a file, or even embedded inside a larger application which performs automated maintenance tasks.

Read More

How To: Create AD accounts with group membership using VBScript

Last week we had a need for a collection of AD accounts for testing purposes. Which is when I came up with this straight forward VBScript. This script uses a simple integer incrementation to create a collection of active directory accounts with unique usernames, sets their passwords, and then adds them to a security group.

In the example below I am creating 80 accounts, if you require more or less – simply change the number 80 on line 12

Read More

Terminate a process – VBScript

Termiator

TermiatorUsing this very simple straight foreword vbscript, you can cycle through all currently running processes and kill the one you name below.

This can be handy if you have an application/instance which has become non responsive, such as IE when loading flash based pages maybe…

Read More

Stop and Start Sophos services remotely

Sophos

SophosI was recently approached by one of my colleagues with a dilemma, he had to go round our 30+ servers and stop and start a couple of Sophos’s Windows Services.

Now, as you can imagine this was starting to look like a fairly large and mundane task. Which is when I came up with this little VBScript.

Using this script below, you can pass it a text file with a list of machines you would like it to perform the process on.

In the script below you will see a “” change this to your text file containing machines, full file path.

The format of the text file is one machine per line.

This script is by no means ‘bullet proof’ and could be enhanced easily with little time and effort. It could also be modfied to stopstart any services you like.

Read More