Read my latest posts!

Sunday, February 10, 2008

Remote Scripting

Something that Admins desire is to be able to run scripts on machines, without having to sneakernet the file. If the machine isn't setup correctly (that would be default,) then it just doesn't work. There's many steps to getting things setup to be able to run a script remotely. DCOM has to have the permissions set, there's a registry key (HKLM\Software\Microsoft\Windows Script Host\Settings\Remote) that has to have its value set equal to "1", and the registration of Wscript.exe is even incorrect in XP (which requires you to run "wscript -regserver") on the machine.

So being the consummate scripter that I am, I've gone through the registry and pulled a great many of the keys related to all of this and packed it into a script along with dialog boxes to allow the selection of a file to run on remote computers, and the selection of a file with the names of the computers that the script should be run on.

The result? A single file that alters the keys (or adds them, if they don't exist) sets the values to allow remoting, and runs the script without having to actually be there or touch the computer. Of course, appropriate permissions are needed to do this for the account running this, but it may save a lot of time and a lot of travel, if you have computers throughout the nation, or the world for that matter. Automation at its finest.

You can find the file at my scripting page, AIScripting - Scripting, if you'd like to look at it or even use it. Look for the link "SetupAndRunRemoteScript". I merely ask that my licensing and attribution remain intact, so that should anyone be impressed enough, perhaps they might hire me. Besides, it may help my ego a bit.



At Monday, February 11, 2008 at 11:07:00 AM EST, Blogger $visitorIP said...

Hm, I don't most of this post, having never used any of this stuff but sounds good all the same :)

At Monday, February 11, 2008 at 11:22:00 AM EST, Blogger Charles $visitorIP said...

Believe me, if you had to do any server or even workstation maintenance, you'd appreciate this. Especially considering the amount of work it would normally take to get the setup established in an enterprise. If you were to give this to your admins, they would know how great this really is. Not having to run to multiple machines in a datacenter is a saving, not having to fly somewhere, to do the same thing, or get someone who doesn't know what you need them to do is another. I lived with the latter when I was at a certain telecommunications company, I don't know if they didn't know how to, or didn't want to, but the ability to run scripts on the servers for things like permissions to resources was limited by the lack of proper setup. Since I have this taking care of the registry keys, even if there is a GPO restricting aspects, as long as this is run between GPO refresh cycles, and there's enough time, it should run the remote script. Even better if there is a GPO, because then it can close the hole when it refreshes.

At Monday, February 11, 2008 at 2:39:00 PM EST, Blogger jillie $visitorIP said...

Ok...not to sound like an idiot or anything...BUT...I have no clue what any of this!!!

Hey thanks for the advise on the camera. I forgot all about those disposable water cameras. In fact, I just added it on my list of things to get.

I am really looking forward to getting the hell out of dodge. I guess it could be worse. I could be in snow country...BRRRR!! ;o)

At Monday, February 11, 2008 at 3:21:00 PM EST, Blogger Charles $visitorIP said...

No problem with the reminder, it just may be easier for you to get one here, instead of there. I hope it works out well for you. If you have shots left, you can hang out and take pics of surfers when you get back.

Its nice to hear from you.

At Monday, February 11, 2008 at 8:26:00 PM EST, Blogger S E E Quine $visitorIP said...

` Still can't figure out what the hell is going on in this post, but I'll tell you if I ever do.
` PS, poor Lou Ryan was almost horribly gunned down by the SWAT team last night, if you want to read!

At Monday, February 11, 2008 at 9:17:00 PM EST, Blogger S E E Quine $visitorIP said...

` I used one of those disposable cameras, despite the fact that everyone I knew who used one, even in the sunlight, had completely dark photos. Well, that's what I got too.

` PS, Charles, I think glue can change colors. o_O

At Monday, February 11, 2008 at 10:18:00 PM EST, Blogger Charles $visitorIP said...

S E E Quine,
You don't do IT, so I really wouldn't expect you to know what this is about, but between the post and comments, you can get an inkling.
Actually, when I went to the Yucatan, a looong time ago, the disposables were fairly new, and we had pretty good luck taking pictures of the fish underwater. Of course the sun was shining, so dark wasn't exactly an option.
Yes, glue can change colors, but I think the color you're seeing is probably the rust from pipes and nails. I don't know how old the building is, but cast iron pipe and then steel pipe wasn't uncommon for a great deal of the 20th century. It had a lot of desirable properties, like cost, durability (decades) and it wasn't something that the average homeowner wanted to do(unlike today's plastic pipes.) Something the plumbers would love. You know where the name plumber comes from don't you?

At Tuesday, February 12, 2008 at 4:21:00 PM EST, Blogger S E E Quine $visitorIP said...

` Plumber = lead worker.

` Yeah, this house was built around 1911. The goopy stuff definitely is coming from wherever the steam from the shower touches the ceiling, and wherever the walls get wet in other apartments.
` The paint often peels off and mildew forms because it's wet and nobody bothers washing the walls before they repaint them.

At Wednesday, February 13, 2008 at 5:55:00 AM EST, Blogger Mona $visitorIP said...

Remote scripting really sounds great...

...way to make people lazy :P

But surely a time and money saver :)

PS> what are those new Open Id buttons I see on this blogger comment box? It looks like something new!

At Wednesday, February 13, 2008 at 10:04:00 AM EST, Blogger Charles $visitorIP said...

Yeah, it probably is something that could make people lazy, but the time and money savings is what its all about. Getting an enterprise to implement all the changes required to get it going can be slow (I imagine it might take a year in some organizations,) if it ever gets done, thus expensive. If it never gets done, then it could be impossible to some things. This can make those considerations go away.

On your PS, This post, tells a little more about what's going on. Basically, OpenID will allow you to use your blog to provide your credentials to services that accept OpenID accounts. That way you don't have to remember a bunch of different IDs and passwords for different sites. Yahoo is slightly ahead of Google on this front, since they have implemented OpenID version 2.0. Facebook and some other major sites have implemented parts, and Microsoft and IBM are now signed on to get behind the movement. Soon there will be many sites accepting OpenID, and instead of having to signup and provide a bunch of information, all you'll have to do is type in your blog address. This is going to be big. As for the icons, I recognize some of them, like AIM, GoogleTalk, WordPress, and the icons, but I don't really know the pencil one. They are all added by Google's code, I had nothing to do with it.

Post a Comment

<< Home