跳过标题
 

使用“smb”命令配置或删除SMB的计算机或工作组名称。

查看设置

msh> smb

计算机名称设置

msh> smb comp "computer name"

  • 最多可用15个字符设置计算机名称。

  • 不能输入以“RNP”或“rnp”开头的名称。

工作组名设置

msh> smb group "work group name"

  • 最多可用15个字符设置工作组名。

注释设置

msh> smb comment "comment"

  • 最多可用31个字符设置注释。

删除计算机名称

msh> smb clear comp

删除工作组名

msh> smb clear group

删除注释

msh> smb clear comment

查看协议

msh> smb protocol

SMB客户端通信的优先端口设置

  • 查看该设置

    msh> smb client port

  • 为SMB客户端通信指定优先端口

    msh> smb client port {139|445}

SMB客户端的验证级别

  • 查看该设置

    msh> smb client auth

  • 为SMB客户端指定验证级别

    msh> smb client auth {0|1|2|3}

用于SMB客户端的WSD浏览

  • 查看该设置

    msh> smb client wsd

  • 为SMB指定WSD浏览

    msh> smb client wsd {on|off}

SMB客户端的写入模式

  • 查看该设置

    msh> smb client write

  • 为SMB客户端指定写入模式

    msh> smb client write {sync|async}

SMB客户端的扫描到SMB超时

  • 查看该设置

    msh> smb client timeout

  • 为SMB客户端指定扫描到SMB超时

    msh> smb client timeout [10–255]