Monthly Archives: June 2011

Enable or Disable a user account from command prompt

Posted on .

In a domain environment you can enforce logon times for individual users, I wanted to emulate this behaviour in a workgroup.

To do this first I learnt the following commands in command prompt [cmd] (run as Administrator):

To disable: net user Bob /active:no
To enable: net user Bob /active:yes

I then created 2 tasks in Task Scheduler to disable and enable at the appropriate times.

When creating the tasks its important to note:

  • Run with highest privileges
  • Run even when user not logged on
  • The path to the “net” command is “C:\Windows\System32\net.exe”
  • The rest of the command line goes in the arguments box

This helped to discourage my son from waking up at 4am to play Plants vs Zombies™ on the computer.

Add Google UK search to Firefox

Posted on .

I upgraded to Firefox 4 and found the default google search was sending me to google.com. This meant US shopping results in dollars, amongst other things.

In your Firefox directory,

Windows:
C:\Program Files\Firefox or C:\Program Files (x86)\Firefox

Linux:
/usr/lib/firefox-xxxx/

You will find a folder called “searchplugins“. In there is google.xml

Make a copy of this and edit the contents so that each mention of “google.com” changes to “google.co.uk”. Also change the title (ShortName) from “Google” to “Google UK”.

In linux this is easy,
sed -e 's/google.com/google.co.uk/g; s/ShortName>Google/ShortName>Google UK/' google.xml | tee google-uk.xml

In windows it maybe a little more tricky as UAC gets in the way. The easiest way to do it, is to copy google.xml to your desktop, rename it to google-uk.xml, open it in notepad, make the changes and move it back.

Alternatively you can download google-uk.xml from here and place it in the searchplugins folder and restart Firefox.

Download
  google-uk.xml (2.3 KiB, 2,103 hits)

GPLPV Drivers 0.11.0.295

Posted on .

I spent the time to build the latest (as of 12th June 2011) drivers for Xen GPLPV seeing as the ones available at http://www.meadowcourt.org/downloads/ are 8 months out of date.

I used the source code available at http://xenbits.xensource.com/ext/win-pvdrivers, specifically the version tagged 0.11.0.295.

Built using defaults with the 7600.1 Windows SDK.

Download

  gplpv_2003x32_0.11.0.295.msi (2.5 MiB, 2,441 hits)
  gplpv_2003x64_0.11.0.295.msi (3.1 MiB, 2,102 hits)
  gplpv_Vista2008x32_0.11.0.295.msi (2.5 MiB, 3,116 hits)
  gplpv_Vista2008x64_0.11.0.295.msi (3.1 MiB, 2,803 hits)
  gplpv_XP_0.11.0.295.msi (2.5 MiB, 3,027 hits)