Может кто-нибудь, пожалуйста, объясните разницу между этими командами.
net view
net view /all
net view /domain
net view /all /domain
Может кто-нибудь, пожалуйста, объясните разницу между этими командами.
net view
net view /all
net view /domain
net view /all /domain
Из net help view
:
C:\Users\shufler>net help view
The syntax of this command is:
NET VIEW
[\\computername [/CACHE] | [/ALL] | /DOMAIN[:domainname]]
NET VIEW displays a list of resources being shared on a computer. When used
without options, it displays a list of computers in the current domain or
network.
\\computername Is a computer whose shared resources you want
to view.
/DOMAIN:domainname Specifies the domain for which you want to
view the available computers. If domainname is
omitted, displays all domains in the local area
network.
/CACHE Displays the offline client caching settings for
the resources on the specified computer
/ALL Displays all the shares including the $ shares
Итак, давайте посмотрим на каждого.
net view
возвращает компьютеры в текущем домене или сети. В этом списке отображаются только компьютеры, на которых включен общий доступ к файлам и принтерам.
net view /all
показывает все доступные ресурсы, включая административные ресурсы, такие как C $ и admin $
net view /domain:contoso.com
выведет список всех компьютеров общего доступа в домене contoso.com
net view /all /domain
показывает все акции (обычные и административные) в домене
В настоящее время я не подключен к домену, поэтому, к сожалению, я не могу предоставить вам примеры.