The guys a MSCOM has posted a collection of nice scripts, which they use in their work on MSCOM.
Remote Desktop has changed the way we interact with our servers. However if you have a farm of 50+ servers heck even 10 servers, having to Remote into each server can not only be time consuming but cause your fingerprints to wear off. Utilizing tools such as WMI (Windows Management Instrumentation), For Loop and PSEXEC you can administer a large number of servers remotely with minimum joint pain. The Examples below go from beginning WMI usage to more advanced techniques. These scripts are meant to be a base to start from and help you build a powerful toolset.
Read their full post at source.