loop until a certain time (in powershell)

Today I needed to write a bit of code that would enable a script to run for 23 hours and 55 minutes before ending itself.  So I dug in to PowerShell and again it came up with a fantastic solution for looping until a certain time.
Read the rest of this post »

Posted on September 30, 2012 at 14:35 by admin · Permalink · 11 Comments
In: Power Shell · Tagged with: ,

Update ESXi 4 standalone server without vCentre

esx

If like me you have the free Vmware ESXi 4 standalone server you’ve probably found that updating it can be a bit tricky without having vCentre handy or a second server to migrate all  your VMs to.  So here is the process i have just followed to successfully update my 2010 v4.1 server to the latest patch level.

Read the rest of this post »

Posted on September 10, 2012 at 23:15 by simon · Permalink · Leave a comment
In: Vmware · Tagged with: , ,

Powershell NSLOOKUP

The following PowerShell one liners give you hostname to IP or vice versa.

Read the rest of this post »

Posted on August 18, 2012 at 11:17 by simon · Permalink · Leave a comment
In: Power Shell · Tagged with: , , , ,

Validate an IP address in PowerShell

Today I needed to validate an IP address after a user types it in to a script.  I don’t want to ping or check connectivity, I just want to validate that the format looks like a valid IP address.  I looked at various regex expressions which were getting complicated.  Then I stumbled upon this little nugget: Read the rest of this post »

Posted on August 17, 2012 at 19:57 by simon · Permalink · One Comment
In: Power Shell · Tagged with: , ,

Move the titlebar buttons to the right in Ubuntu 12.04

If like me you don’t like the way that Ubuntu is looking more and more like OSX these days here is something you can do to help restore some normality back to your desktop. Read the rest of this post »

Posted on August 6, 2012 at 0:36 by simon · Permalink · One Comment
In: Linux · Tagged with: , , ,

Remove spaces from a cell in Excel

I use Excel a lot to manipulate raw text data.  One thing I need to do often is remove spaces from a cell, here are 2 approaches you can use:

Read the rest of this post »

Posted on August 5, 2012 at 19:21 by simon · Permalink · One Comment
In: Excel

Copy members of one AD group to another group

Active DirectoryToday I needed to copy about 300 users from one AD group to another and there was no way I was going to do that manually.  So I started looking in to what PowerShell can do adn here is what I found: Read the rest of this post »

Posted on August 3, 2012 at 11:19 by simon · Permalink · Leave a comment
In: AD, Power Shell · Tagged with: , , , ,

Cannot shrink transaction log SQL 2005

If you ever come across a MS SQL 2005 transaction log that refuses to shrink, this little bit of code might help you out. Read the rest of this post »

Posted on July 28, 2012 at 20:12 by simon · Permalink · Leave a comment
In: SQL · Tagged with: , ,

Change DAG database Activation Preference

The ActivationPreference decides which server will hold the active database when you automatically rebalance the databases within a DAG using the Microsoft script:

Read the rest of this post »

Posted on July 28, 2012 at 18:27 by simon · Permalink · One Comment
In: Exchange 2010 · Tagged with: 

Raspberry Pi – first boot

Today I finally had a chance to burn a Linux image to an SD card and boot up my Raspberry Pi.

Read the rest of this post »

Posted on July 20, 2012 at 23:00 by simon · Permalink · Leave a comment
In: Hardware, Raspberry Pi · Tagged with: , ,