Archive

Archive for the ‘Scripting’ Category

PowerShell script for Dyn / Dynect REST API

December 4th, 2015 No comments

Dyn or Dynect are an Internet based company, offering products to monitor, control, and optimise online infrastructure, and also domain registration services and email products. The company that I am currently working for, recently had a requirement to automate the creation of DNS A records in their Dyn Managed DNS account as part of some automation work.

Read more...

Categories: PowerShell, Scripting Tags: , , ,

KiXtart script to shrink VMDK for smaller VCB backups

April 13th, 2010 1 comment

When I first started using VMware ESX I was testing VMware Consolidated Backup (VCB) to dump my virtual machines to a staging area before being copied offsite. I noticed that one of the VMs had a VMDK attached that as far as the OS (Windows Server 2003) was concerned with had all of the data deleted on that volume. After initiating a VCB dump (backup) on the VM I noticed that the VMDK that was dumped to my staging area strangely appeared to contain data. The VMDK size was considerably larger than it should have been for a disk that Windows reported as containing zero data.

Read more...

Categories: Hardware, Scripting, VMware Tags: ,

KiXtart script to enable Outlook Anywhere or RPC-HTTPS

August 7th, 2009 1 comment

At work, people were using VPN to access their email out of the office, but I have always thought that logging into a corporate network via VPN for most users is an extra hassle that they could probably do without. I had considered setting up RPC over HTTPS for Exchange 2003 but during a meeting regarding disaster recovery it became evident it was actually now a necessity. So, after configuring the server for RPC-HTTPS I had the small problem of deploying the settings to Outlook clients en masse.

Read more...

KiXtart script to generate and email uptime report

March 10th, 2009 No comments

As part of my Service Level Agreement at work I have to produce a monthly uptime report for each server. Rather than generate individual reports for each server I decided to write a KiXtart script that would generate a report for all servers and email it to me each month.

Read more...

Categories: Scripting, Windows Server 2003 Tags:

KiXtart script to check for website availability

February 19th, 2009 No comments

At work there is an old web application that is managed offsite by a hosting company. It runs on Oracle 9iAS. Apparently there is an issue with Oracle 9i and the web service will frequently crash (due to a known caching problem) taking the application offline.

Read more...

Categories: Scripting, Windows Server 2003 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: , ,