client

Switch users.

  • command line (cmd)

     net use \\192.168.0.88 /DELETE        #删除原来的连接
    net use * /DELETE                    #删除所有连接
    net use \\192.168.0.88 /USER:newuser  #以newuser创建新连接

    Note that this approach may not be in sync with the gui. If it is really impossible to switch users, you can interrupt the corresponding session in the session of the server.

  • Windows 10 View local credentials.

     控制面板\用户帐户\凭据管理器 > Windows 凭据

Server

View the local shared directory.

  • command line (cmd)

     net share
  • gui way

     以Win7为例,查看方式为:计算机—管理—计算机管理(本地)—系统工具—共享文件夹—共享
  • folders share management

     fsmgmt.msc
  • List of Microsoft Console commands: https://no.frwiki.wiki/wiki/Microsoft_Management_Console

View user connections to the local shared directory.

  • command line (cmd)

     net session
  • gui view

     以Win7为例,查看方式为:计算机—管理—计算机管理(本地)—系统工具—共享文件夹—会话;
    Server 2008 R2:服务管理器—角色—文件服务—共享和存储管理—管理会话

PS

  • On Windows 7/Windows Server 2008 R2, copying SQL SERVER files (mdf/ldf) must be the Administrator user, and other accounts with administrator privileges will not work. Reference: Transferring Database Tasks
  • Win7 cannot access the file shared by the win2003 system in the LAN (secpol.msc)
This article is from qbit snap

qbit
268 声望279 粉丝

引用和评论

0 条评论