1
When I use wmic
as shown below, my hostname appears as the first field in the output. I did not do anything to ask for the hostname. Should I just expect that this behaviour will be consistent across all Windows platforms?
C:>wmic netuse get localname,remotename /format:csv
Node,LocalName,RemoteName
CC049105,H:,\\BLUES11\USERS\pwatson
CC049105,J:,\\GREENS01\D
CC049105,K:,\\ARDVARK01\D
CC049105,L:,\\ARDVARK01\C$
CC049105,M:,\\ARDVARK01\D$
CC049105,N:,\\ARDVARK01\F$
CC049105,P:,\\myhost.mycomp.org\ar\Team\docs
CC049105,T:,\\IMPERIAL01\D
CC049105,U:,\\MONEY9\GROUPS