WMI

On older systems, without PowerShell, WMI is more difficult to query. There is a builtin tool, wmic which can be used to interrogate WMI.

C:\Documents and Settings\WindowsUser>wmic
wmic:root\cli>/namespace:\\root\CIMV2
wmic:root\cli>/output:shareusers.txt
wmic:root\cli>path Win32_ServerConnection
wmic:root\cli>exit