Since you want to query remote computers from a central location, I'd suggest that "WMI is your friend..."

Look at WMIAuthentication(), WMIQuery(), and WMISysInfo() for a good starting point. If you are running the script as a domain admin, you won't need the WMIAuth UDF. WMISysInfo returns lots of info about the O/S and hardware, and could be modified to include the currently logged on users - there are two "Reserved for Future Use" values that could be used for that.

WMIQuery allows you to perform ad-hoc queries. It's the least efficient method of all the WMI-type UDFs because it instantiates a connecetion for each query, but allows you to query anything. (WMISysInfo returns 38 pieces of data in a few seconds.. making 38 individual queries with WMIQuery could take more than a minute.) It's a great UDF when you need 1-2 pieces of data, or want to prototype a more complex set of queries.

Check my web site for the most current versions of these UDFs.

Search for and install "Kix-O-Matic" for a GUI tool that will help you determine which WMI objects are appropriate for your needs, and then generate sample code.

Enjoy the pie!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D