The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

For "so called" Windows system administrators by romandas2007-11-29 00:53:09
  I guess I could by Bonzo2007-11-29 01:33:32
    Even with remote desktop... by Khaar2007-11-29 01:44:44
      I'm not sure what you mean by romandas2007-11-29 02:21:38
        WMI FTW! by bwkaz 2007-11-29 04:11:39
Well, maybe not FTW; there are a couple things that it does fairly poorly. But it will let you (if you connect as an account that's a local admin on the remote box, e.g. a domain admin account) execute any program with an arbitrary command line. I'm fairly sure the program will start on the service's desktop, also, so it won't matter if it's quiet or not. (Although if it isn't quiet, you won't be able to interact with it.)

I use it fairly frequently to have a machine re-run its WSUS scan (by running "wuauclt /detectnow" via WMI). Works fairly well, although the WMI method call that you have to make is different on 2K versus XP, so you have to use the method-call interface that takes a separate parameter that's a collection of the method's parameters (if that makes any sense). Because you can't specify the method's parameters directly; there are two different versions of it that take different parameters in different positions.

E.g. instead of doing a 'callMethod("runprogram", "exe", "command line")', you have to build a separate collection of "exe" and "command line", then do a 'callMethod2("runprogram", thatcollection)' instead. But at least it works.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)