[Samba] Windows Based Machines' Names

Steven Kurylo skurylo at cleartech.ca
Wed Mar 24 20:01:03 GMT 2004


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



More information about the samba mailing list