@SERVER[machinename,info] : Returns information about the specified server machinename, where info is the type of information you want. The types are:
Name - return the server name
Comment - return the server comment
Version - the OS version (major version + minor version).
Users - the number of users who can attempt to log on the server.
Disconnect - the auto-disconnect time, in minutes.
Hidden - returns 1 if the server is hidden, 0 if it is visible
UserPath - the path to user directories
Type - return the type of the server. This is a combination of the following hex flags (you can use the .AND. operator in IF / IFF to test individual flags):
1 | A LAN Manager workstation |
4 | Any server running with Microsoft SQL Server |
8 | Primary domain controller |
0x10 | Backup domain controller |
0x20 | Server running the Timesource service |
0x40 | Apple File Protocol server |
0x100 | LAN Manager 2.x domain member |
0x200 | Server sharing print queue |
0x400 | Server running dial-in service |
0x1000 | Windows Server 2003, Windows XP, Windows 2000, or Windows NT |
0x2000 | Server running Windows for Workgroups |
0x4000 | Microsoft File and Print for NetWare |
0x8000 | Windows server that is not a domain controller |
0x10000 | Server that can run the browser service |
0x20000 | Server running a browser service as backup |
0x40000 | Server running the master browser service |
0x80000 | Server running the domain master browser |
0x1000000 | Server clusters available in the domain |
0x4000000 | Cluster virtual servers available in the domain |
0x40000000 | Servers maintained by the browser |