妙用AD计算机管理远程管理客户端

camio

普通会员
2005-11-13
1,425
0
0
妙用AD计算机管理远程管理客户端



  目的:通过AD中计算机管理组件远程使用客户端"计算机管理"

  网络环境:一台DC,一台winxp客户端

  直接在AD打开客户端计算机"管理"

  

  选"管理"后,
  

  出现错误提示,无法连接至目标电脑

  原因分析:此远程管理至少需要客户端达到两点要求,

  1、开启REMOTEREGISTRY 服务

  2、关闭window防火墙

  通过GUI界面做到上述两点,我想大家都会,现在讨论关于命令行方法

  用到的命令:sc,net

  首先打开远程注册表服务

  sc config remoteregistry strat= demand 将此服务设置为手动方式,默认为禁用

  net start remoteregistry

  停止防火墙

  sc stop alg

  sc stop sharedaccess

  sc config alg start= disabled

  sc config sharedaccess= disabled

  至此大功告成

  知道原因后我们可以使用计算机启动脚本,实现上述功能:

  @echo off

  sc config remoteregistry start= demand

  net start remoteregistry

  sc stop alg

  sc stop sharedaccess

  sc config alg start= disabled

  sc config sharedaccess= disabled