[Samba] Windows Based Machines' Names

Steven Kurylo
Wed, 24 Mar 2004 20:05:16 -0000

Saad Ahmed wrote:

>Hi,
>Do you guys know of any command that I can run on windows based machines on
command line that would give me the computer name of that machine?
>I know the other way is to right click on My Computer and ..... and also
many others, but is there any command line command that would give me the
desired output?
>Saad.
>
>
If you type "echo %computername% " from a DOS box, in win2k and later,
you'll get the computer name.  I'm not sure if it works, or something
similar, in earlier versions of windows.

--
Steven Kurylo