lpetersson: (Default)
[personal profile] lpetersson
Wow, i actually had something interesting to do yesterday for nearly two hours.
Of course, if I had remembered a little utility called psexec.exe I would have done it in 10 minutes instead...

Basically, I had to automate updating the registry on 30 or so servers tonight.
The update was a registry file that needed to be imported.
Aha, easy peasy I thought... rcmd.exe can do that.
But alas, rcmdsvc.exe isn't installed on the servers...

Not a problem I thought, I can work around that...
Nothing a little script to install rcmdsvc on each of the servers, launch it, import the registry file, kill rcmdsvc and then remove it again can't handle.
Easy. Nothing to it...
After boxing with this for a little while a kind chap over at the Microsoft Newsgroups asked why I didn't just use psexec.exe to accomplish this...
'Hmm' I thought, what a splendid idea.
10 minutes later...
A couple of shiny batchfiles to sort the problem.
About as elegant as an elephant, but it'll do for now.
Later I'll see about making something a bit prettier to do this.
Especially since this will have to be done again at some point.

Date: 2007-01-30 09:50 am (UTC)
From: [identity profile] cyberglamour.livejournal.com
R you out this w'end Mr??!Will you be at Nibber's do?!

Date: 2007-01-30 09:55 am (UTC)
From: [identity profile] lpetersson.livejournal.com
Yes, I will most likely be at Dead & Buried Friday and definitely Andy's do on Saturday...

Date: 2007-01-30 09:58 am (UTC)
From: [identity profile] cyberglamour.livejournal.com
Cool...haven't seen you in ages...Haven't seen anybody in ages..:( It'll be cool to catch up:)

Date: 2007-01-30 10:14 am (UTC)
From: [identity profile] lpetersson.livejournal.com
Absolutely...

I hear taht you were away this weekend... ;-)

Date: 2007-01-30 10:16 am (UTC)
From: [identity profile] cyberglamour.livejournal.com
ye.....I'll introduce you to *someone* prolly this sat..;)

Date: 2007-01-30 10:29 am (UTC)
From: [identity profile] lpetersson.livejournal.com
Ahhh, I heard that you were visiting *someone*... ;-)
Enjoyed yourself I take it?

Date: 2007-01-30 11:30 am (UTC)
From: [identity profile] cyberglamour.livejournal.com
ye,it was cool...but southampton is really one of the most boring/less attractive places i have ever seen....the company was great though;)

Profile

lpetersson: (Default)
lpetersson

August 2010

S M T W T F S
1234 567
891011121314
1516171819 2021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 15th, 2026 10:15 am
Powered by Dreamwidth Studios