Sunday, August 8, 2010

Dog Walk Sun 8th August 2010

brilliant walk with the dog (new htc android phone tracks gps a treat)

just over 8 miles - in just under two hours.


View Dog Walk (marshes) in a larger map

Saturday, August 7, 2010

back in the saddle - two weeks on holiday and not much exercise certainly shows.

10 Miles (ish), mix of off-road and road work,


View Bike Ride 7 8 2010 in a larger map

Thursday, August 5, 2010

Windows Terminal Server reminder

Something I always seem to forget:

Terminal server session administration.

get server sessions
query session /server:

disconnect session
tsdiscon sessionid

kill all processes under a session
tskill /server: /ID:sessionid

reset session on server
reset session sessionname || or || sessionid /server:

Windows Local Admin Maintenance

local admin group maintenance:

# if your user name is whatever\test

$Server = ""

Foreach($strComputer in $Server)
{
$domain = "blah"
$username = "Fbloke"
$break = "=============="

$computer = [ADSI]("WinNT://" + $strComputer + ",computer")
$computer.name

$Group = $computer.psbase.children.find("administrators")
$Group.name

# This will list what’s currently in Administrator Group so you can verify the result

function ListAdministrators

{$members= $Group.psbase.invoke("Members") | %{$_.GetType().InvokeMember("Name", 'GetProperty', $null, $_, $null)}
$members}
$strComputer
ListAdministrators
$break

# Even though we are adding the AD account but we add it to local computer and so we will need to use WinNT: provider

$Group.Add("WinNT://" + $domain + "/" + $username)

ListAdministrators
$break

# then the option to remove if needed
#$Group.Remove("WinNT://" + $domain + "/" + $username)

#ListAdministrators
}

Tuesday, August 3, 2010

taking home the spoils


delivery
Originally uploaded by mat_g

corn was cut behind the house last night, guns, dust, noise and my mad dog

Saturday, June 26, 2010

Ride Out Sat 26th June


Jamie, Alan and Tim (oh and me), on a jaunt through Kent.

Monday, May 24, 2010

KTM 525 EXC


KTM 525 EXC
Originally uploaded by mat_g

my new mid life crisis, makes me grin like a fool