in reply to Win32 functions on other domains

Please check out WMI (Windows Management Instrumentation). Here is a sample script to play with it: http://www.roth.net/perl/scripts/scripts.asp?wmi-Generic.pl.