天极Yesky
  • 笔记本电脑
    笔记本
  • 台式电脑
    台式机
  • 手机
    手机
  • 电脑硬件DIY
    DIY硬件
  • CPU
    主板
    音箱
  • 硬盘
    显卡
    键鼠
  • 内存光驱
    显示器
    机箱电源

  • 数码相机DC
    数码相机
  • MP3播放器
    MP3/MP4
  • 数码摄像机DV
    摄像机
  • 电脑外设
    外设
  • 网络
    网络
  • 服务器
    服务器
  • 数字家庭
    数字家庭
  • 群乐
    群乐
  • 产品报价 行情 经销商 渠道 评测 | 软件 设计 网页 开发 安全 论坛 E时代 游戏 图片 壁纸 下载 网摘 博客 索尼专区 Vista 科技奥运
    天极网
    Disable connections in Win2k Pro
    作者: Serdar Yegulalp
    出处:
    责任编辑:
    [ 2004-06-17 19:24 ]


    One of the most common administrative configurations of desktop machines is the use of network drive mappings—assigning a drive letter on a workstation to a share on a server. Most people are used to drive letters rather than the servershare naming convention (referred to as UNC shares) and some programs won't recognize UNC shares, either.

    There is more than one way to go about assigning drive letters on a desktop machine. The most common and familiar is the use of persistent connections, where a drive letter is mapped to a share and the machine is told to reconnect this share at the next logon. However, many administrators run into conflicts between persistent shares set up by the user and shares mapped by the administrator. A directory may be mapped first to one share and then re-mapped to another without warning.

    One possible way to avoid this is to force persistent connections off, which can be done by simply adding a few lines of code at the start of the user's logon script.

    net use /persistent:no
    net use * /delete /y

    This disables persistent connections entirely (the first line) and also deletes any existing drive mappings that have already been created. The administrator can then proceed to add into the script whatever mappings should be created through the net use command.

    To disable persistent connections in the Registry for the current user, go to
    HKEY_CURRENT_USERSoftwareMicrosoftWindowsNTCurrentVersionNetworkPersistent Connections and edit the SaveConnections value; set it to no.


    Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter. Check out his Windows 2000 blog for his latest advice and musings on the world of Windows network administrators – please share your thoughts as well!

    笔名:
    请您注意:

     遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。

     天极网拥有管理笔名和留言的一切权利。
    相关内容