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
Sunday, August 8, 2010
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
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:
Terminal server session administration.
get server sessions
query session /server:
disconnect session
tsdiscon sessionid
kill all processes under a session
tskill /server:
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
}
# 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
Subscribe to:
Posts (Atom)