> is there a way to test a VBS script (that uses lots of WMI functions) for
> compatibility with Win2000,XP,Vista,Win2003,Win2007 ...?
> The only way that I can think of is to install each of this Versions (for
> example on a virtual PC...)
> However, I still have to buy a licence for each version....
> Is there something like a "emulator" that I could use for compatibility
> Or maybe a website that offers such a service...?
I know of no emulator application. Sometimes documentation, such as for WMI
classes, indicates which OS does or does not support the class or function,
but not always (especially for OS's no longer supported). Yes, you would
need a license for each OS installed. You might look into an MSDN
subscription, which would allow you to install each OS you mention (and
other software) for testing, as long as it's not in production. For hardware
you can either get cast off or used machines for cheap with miniumum
requirements (you can upgrade RAM easily), or spend the money on a few
powerful computers and install virtual PC's.
I try to maintain a lab with as many OS's as possible for testing, but it is
not easy. I get cast off computers from clients I consult for. I don't care
about performance, but I don't have Windows 7, for example, because I have
no hardware that would support it. I had to spend money for hardware that
would support Windows Server 2008.
Actually, if your code works on Windows 2000, it will work on all of the
others, except for the security and UAC issues introduced with Vista. You
really only need to test on Windows 2000 and Vista to ensure it works on
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net