There’s a command line tool in Windows, wmic, that can handle WMI adminstrative tasks in a remotely accessible, scriptable way.
wmic
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wmic.mspx?mfr=true