Scripting

Script to Join a Computer to the Domain

November 28, 2009

This script will join a computer to a domain. You can either specify the parameters as command line arguments, or look them up in an ini file. If an OU is not specified, the value is set to NULL, which means that the computer object will be placed in the OU/Container that is set as […]

Read the full article →

Locking a Virtual Desktop Session

July 20, 2009

How to lock a remote VMware View session? I’ve had mixed results getting a consistent method for locking VDI workstation sessions using VMware View across different client types, so have endeavored to document all possible methods to help come up with a best practice. Updated 4th September 2009: As per Resolved Issues in VMware View […]

Read the full article →

Deployment Script for the Ctrl-Alt-Del IT Consultancy Tools

May 10, 2009

A good friend of mine, Warren Simondson from Ctrl-Alt-Del IT Consultancy, writes some awesome tools. There are a particular set I use for all Terminal/Citrix Server deployments I refer to as “User Self-Help Tools”. The below script is what I use to deploy them. Simply add the tools you wish to deploy to an array. […]

Read the full article →

Using a Group Policy WMI filter to test for a registry value

May 10, 2009

I wanted a clean and simple way to prevent group policies applying during an automated build process. This is because it can potentially cause some of the components of the build process to fail. One of the last tasks to run on all servers built using my unattended build method will stamp the registry with […]

Read the full article →

Automate the population of the user’s MS Office Credentials

May 10, 2009

This script will add the user’s correct Username and UserInitials to the MS Office registry key to prevent the first time prompt when a user runs up a program in the Office suite. It has been specifically designed to populate the values for multiple versions of Office as per the arrVersions array. Please review the […]

Read the full article →

Enable Clock on Task Bar for Windows XP and 2003

May 10, 2009

Microsoft made it a real challenge to automate the enabling of the Clock on the taskbar. Some clever people worked out how this can be achieved several years ago by manipulating certain bits of the Settings binary value under the “Stuckrects2” registry key. However, it would only take effect on the 2nd logon, because the […]

Read the full article →

Mastering the default Explorer views for Windows XP and 2003

May 9, 2009

I finally mastered the Windows Explorer views under Windows XP and 2003! The following script is fully documented. Enjoy!

Read the full article →

VBScript best practices

December 6, 2008

If you can’t tell by now, I love scripting and coding 🙂 There is nothing you can’t achieve, and no problem that cannot be resolved. But there is an art to doing it right. I start by drawing up an N-S (Nassi-Shneiderman) diagram or flow chart, and then writing it up in pseudocode, which allows […]

Read the full article →

The Challenges of Using VBScript to Create Shortcuts

December 3, 2008

Updated 8th December 2008… Today I was finalising the application deployment for a new XenApp farm. One of the final scripts to create was to place 9 shortcuts on the Desktop of the All Users profile. That’s quite a simple task, and for the most part some would probably just end up copying a bunch of […]

Read the full article →

Using WMI to detect if running on a Windows 2003 or 2008 Terminal Server

December 3, 2008

How can I detect if a Windows 2003/2008 server is configured for Remote Administration or running the Terminal Server role/service?

Read the full article →