Check if the PC is either NT or Win95

Herb Lewis herb at
Wed Jun 24 17:53:39 GMT 1998

Thomas.Hansen.tmh./Copenhagen at wrote:
>      HI Samba users,
>      Is there any way, that I from the unix command line, can start either
>      smbclient or another program to check what kind the PC is, i.e. in a
>      script I would like to know if the client is a NT or W95. I was told
>      smbclient could do it, but I cannot get it to work.
>      Thomas

If you run 

smbclient -L <machine name> -U% 

you will get a line like the following on NT machines:

Domain=[ENGR] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]

On Win95 and Win98 clients you will not get an OS= entry.

Herb Lewis                                   Silicon Graphics 
Technical Marketing                          2011 N Shoreline Blvd
Network Systems Division                     Mountain View, CA  94043  
herb at                                 Tel: 650-933-2177                           Fax: 650-932-2177          

More information about the samba mailing list