2011年5月21日 星期六

Windows master browser 錯誤解決辦法

Windows master browser 錯誤解決辦法

browstat 用法
# 在 windows supports tools 內, 'browstat' 指令是查詢/修改 browser list 的 master
# browstat view workgroup 會列出 workgroup 的相關訊息 :
    List of transports currently bound to the browser
     1 \Device\Nbf_NdisWanNbfOut{7487FDE2-8332-4831-B76D-9F92C9E497D2}
     2 \Device\Nbf_NdisWanNbfOut{57E588DC-09E9-49E3-827F-E3D8E744FA5C}
     3 \Device\Nbf_NdisWanNbfOut{E83B4907-6B8A-46E9-89E6-26B8AE7F4FE9}
     4 \Device\Nbf_NdisWanNbfIn{2616CDA5-02F0-4895-90D7-C15A210BD783}
     5 \Device\Nbf_NdisWanNbfIn{8B5F773F-ABDA-4D7F-94E5-D838901C8CD3}
     6 \Device\Nbf_NdisWanNbfIn{277003E9-F709-4272-B8BE-A2E50DE4488C}
     7 \Device\Nbf_{83C5B5FA-FEE6-437A-A9D2-CFF4CE93DC16}
     8 \Device\NetBT_Tcpip_{83C5B5FA-FEE6-437A-A9D2-CFF4CE93DC16}
# browstat status 會列出這個domain中, 所有 transport 的狀態.

# browstat 所有參數如下 :
     Usage: BROWSTAT Command [Options | /HELP]
        Where is one of:
         ELECT         ( EL) - Force election on remote domain
         GETBLIST      ( GB) - Get backup list for domain
         GETMASTER     ( GM) - Get remote Master Browser name (using NetBIOS)
         GETPDC        ( GP) - Get PDC name (using NetBIOS)
         LISTWFW       (WFW) - List WFW servers that are actually running browser
         STATS         (STS) - Dump browser statistics
         STATUS        (STA) - Display status about a domain
         TICKLE        (TIC) - Force remote master to stop
         VIEW          ( VW) - Remote NetServerEnum to a server or domain on transport
         DUMPNET       ( DN) - Display the list of transports bound to browser
    In server (or domain) list displays, the following flags are used:
         W=Workstation, S=Server, SQL=SQLServer, PDC=PrimaryDomainController,
         BDC=BackupDomainController, TS=TimeSource, AFP=AFPServer, NV=Novell,
         MBC=MemberServer, PQ=PrintServer, DL=DialinServer, XN=Xenix,
         NT=Windows NT, WFW=WindowsForWorkgroups, MFPN=MS Netware,
         SS=StandardServer, PBR=PotentialBrowser, BBR=BackupBrowser,
         MBR=MasterBrowser, OSF=OSFServer, VMS=VMSServer, W95=Windows95,
         DFS=DistributedFileSystem, CLUS=NTCluster, DCE=IBM DSS

# 當網路芳鄰突然看不到所有網域內的電腦時, 這個指令很好用.
# 首先, 先用 VIEW 參數來查詢所有的 transport ; 然後使用 GETMASTER 參數取得目前 master browser 是誰 ?
        browstat getmaster \Device\Nbf_{83C5B5FA-FEE6-437A-A9D2-CFF4CE93DC16} workgroup
   如果顯示為錯誤的 Master Browser, 可用 TICKLE 強制停止該 Master Browser , 然後用 ELECT 強制重新選舉
        browstat tickle \Device\Nbf_{83C5B5FA-FEE6-437A-A9D2-CFF4CE93DC16} workgroup
        browstat elect \Device\Nbf_{83C5B5FA-FEE6-437A-A9D2-CFF4CE93DC16} workgroup

netdom 用法
# 'netdom' 是Microsoft 針對網域設計的網路工具, 它是放在 support tools 當中.
# 首先一定會用到的參數 HELP, 在 HELP 參數後面加入要查詢的參數, 就會列出該參數的詳細資訊.
# 要將主機加入網域, 可使用 :
     NETDOM JOIN machine /Domain:domain [/OU:ou path] [/UserD:user]
           [/PasswordD:[password | *]]
           [UserO:user] [/PasswordO:[password | *]]
           [/REBoot[:Time in seconds]]
    NETDOM JOIN Joins a workstation or member server to the domain.
    machine is the name of the workstation or member server to be joined
    /Domain         Specifies the domain which the machine should join
    /UserD           User account used to make the connection with the domain
                          specified by the /Domain argument
    /PasswordD    Password of the user account specified by /UserD.  A * means
                          to prompt for the password
    /UserO          User account used to make the connection with the machine to
                          be joined
    /PasswordO    Password of the user account specified by /UserO.  A * means
                          to prompt for the password
    /OU              Organizational unit under which to create the machine account.
                          This must be a fully qualified RFC 1779 DN for the OU.
                          If not specified, the account will be created under the default
                          organization unit for machine objects for that domain.
    /REBoot         Specifies that the machine should be shutdown and automatically
                          rebooted after the Join has completed.  The number of seconds
                          before automatic shutdown can also be provided.  Default is
                          20 seconds

# 要查閱主機資訊, 可使用 :
     NETDOM QUERY /Domain:domain [/Server:server]
           [UserD:user] [/PasswordD:[password | *]]
           [/Verify] [/RESEt] [/Direct]
           WORKSTATION | SERVER | DC | OU | PDC | FSMO | TRUST

    NETDOM QUERY Queries the domain for information
    /Domain         Specifies the domain on which to query for the information
    /UserD          User account used to make the connection with the domain
                    specified by the /Domain argument
    /PasswordD      Password of the user account specified by /UserD.  A * means
                    to prompt for the password
    /Server         Name of a specific domain controller that should be used to
                    perform the query.
    /Verify         For trusts, verifies that the the trust between domains is
                    operating properly; for computers, verifies that the secure
                    channel between the computer and the domain controller is
                        operating properly.
    /RESEt          Resets the secure channel between the computer and the domain
                    controller; valid only for computer enumeration
    /Direct         Applies only for a TRUST query, lists only the direct trust
                    links and omits the domains indirectly trusted through
                    transitive links.
    WORKSTATION     Query the domain for the list of workstations
    SERVER          Query the domain for the list of servers
    DC              Query the domain for the list of Domain Controllers
    OU              Query the domain for the list of Organizational Units under
                    which the specified user can create a machine object
    PDC             Query the domain for the current Primary Domain Controller
    FSMO            Query the domain for the current list of FSMO owners
    TRUST           Query the domain for the list of its trusts

# 主機要更名, 可使用 :
     The syntax of this command is:
    NETDOM RENAME machine [/Domain:domain] [/REBoot[:Time in seconds]]
    NETDOM RENAME Renames NT4 backup domain controllers
    machine is the name of the backup Domain Controller to be renamed
    /Domain         Specifies the new name of the domain
    /REBoot         Specifies that the machine should be shutdown and automatically
                    rebooted after the Rename has completed.  The number of seconds
                    before automatic shutdown can also be provided.  Default is 20 seconds

     其餘一些用法請利用 {netdom help 參數名稱}

pviewer.exe (process viewer)

沒有留言: