lxy2015

@echo off set ip=真实ip

set username=远程电脑用户名

set password=远程电脑用户名对应密码

net user \\%ip% %password% /user:%username% 2>nul 1>nul

start \\%ip%

::有了以上的命令,你就建立了连接,可以使用dir命令,如要dir d盘下的123文件夹

dir \\%ip%\d$\123\

::不过,这需要你连接使用的用户(应该需要)是管理员账号(power users可能也行),而且没有关闭系统默认共享。xp下,2000应该没问题,其他系统不知

 

用net use命令连接ipc$,需要管理员用户和密码. net user \\192.168.1.10/ipc$ "password" /user:administrator 然后用at命令远程执行. at \\192.168.1.10 18:00 "d:\remote.cmd"

分类:

技术点:

相关文章:

  • 2021-10-21
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-06-04
  • 2021-04-04
猜你喜欢
  • 2021-04-14
  • 2021-11-16
  • 2021-08-09
  • 2021-10-07
  • 2023-03-13
  • 2022-01-17
  • 2022-12-23
相关资源
相似解决方案