and there's a WMI solution as well...

WMIQuery("CSDVersion","Win32_OperatingSystem","$remotepc")
_________________________
We all live in a Yellow Subroutine...