远程控制问题

事后猪葛 2013-01-31 10:33:43
远程电脑里有某种服务比如这个
然后现在我想在自己的电脑上控制这个服务的开关,要怎么弄呢
...全文
157 17 点赞 打赏 收藏 举报
写回复
17 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
事后猪葛 2013-02-01
引用 3 楼 zhao4zhong1 的回复:
对360恐怕不灵,因为360在驱动一级有保护。
我在使用这个工具psexec的时候为什么总是提示“找不到网络路径”,这个要怎么解决?
  • 打赏
  • 举报
回复
事后猪葛 2013-02-01
引用 8 楼 zhao4zhong1 的回复:
引用 2 楼 zhao4zhong1 的回复:http://download.sysinternals.com/files/PSTools.zip C:\SysinternalsSuite>psservice.exe /? PsService v2.22 - Service information and configuration utility Copyri……
赵哥太感谢你了!你给我的这个东西我现在会用了真的太好用了
  • 打赏
  • 举报
回复
事后猪葛 2013-02-01
引用 13 楼 c1997sdn 的回复:
首先要建立IPC连接啊 引用 12 楼 jiangweilian 的回复:引用 3 楼 zhao4zhong1 的回复:对360恐怕不灵,因为360在驱动一级有保护。我在使用这个工具psexec的时候为什么总是提示“找不到网络路径”,这个要怎么解决?
我似乎知道你的意思了,首先我是想用程序的方式去控制服务的,后来你和赵哥各给了我一种方法,不过那都不能用于程序(至少我目前不会用),而你的方法是以命令的方式,而赵哥的方式的工具的方式,你的方式是net use ,你的这个方式要是想控制远程的话,那就必须要先建立ipc连接而用工具的方式就不用了
  • 打赏
  • 举报
回复
事后猪葛 2013-02-01
引用 13 楼 c1997sdn 的回复:
首先要建立IPC连接啊 引用 12 楼 jiangweilian 的回复:引用 3 楼 zhao4zhong1 的回复:对360恐怕不灵,因为360在驱动一级有保护。我在使用这个工具psexec的时候为什么总是提示“找不到网络路径”,这个要怎么解决?
你那里有没有建立IPC连接的代码,呵呵,发给我看看吧
  • 打赏
  • 举报
回复
赵4老师 2013-02-01
\\192.168.1.123
  • 打赏
  • 举报
回复
赵4老师 2013-02-01
Requirements Some of the tools require that the default admin$ share be available and/or that the Remote Registry service be active. PsExec Utilities like Telnet and remote control programs like Symantec's PC Anywhere let you execute programs on remote systems, but they can be a pain to set up and require that you install client software on the remote systems that you wish to access. PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec's most powerful uses include launching interactive command-prompts on remote systems and remote-enabling tools like IpConfig that otherwise do not have the ability to show information about remote systems. Installation Copy PsExec onto your executable path. Typing "psexec" displays its usage syntax. Usage usage: [\\computer[,computer[,...] | @file][-u user [-p psswd]][-n s][-l][-s|-e][-i [session]][-c [-f|-v]][-d][-w directory][-<priority>][-a n,n,...>] cmd [arguments] computer Direct PsExec to run the application on the computer or computers specified. If you omit the computer name PsExec runs the application on the local system and if you enter a computer name of \\* then PsExec executes the commands on all computers in the current domain. @file PsExec will execute the command on each of the computers listed in the file. -u Specifies optional user name for login to remote computer. -p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password. -s Run remote process in the System account. -e Loads the specified account's profile. -i Run the program so that it interacts with the desktop of the specified session on the remote system. If no session is specified the process runs in the console session. -l Run process as limited user (strips the Administrators group and allows only privileges assigned to the Users group). On Windows Vista the process runs with Low Integrity. -c Copy the specified program to the remote system for execution. If you omit this option then the application must be in the system's path on the remote system. -n Specifies timeout in seconds connecting to remote computers. -f Force the copy of the specified program if it already exists on the remote system. -v Copy the specified file only if it has a higher version number or is newer on than the one on the remote system. -d Don't wait for application to terminate. Only use this option for non-interactive applications. -w Set the working directory of the process (relative to the remote computer). -x Display the UI on the Winlogon desktop. -priority Specifies -low, -belownormal, -abovenormal, -high or -realtime to run the process at a different priority. -a Separate processors on which the application can run with commas where 1 is the lowest numbered CPU. For example, to run the application on CPU 2 and CPU 4, enter: "-a 2,4" arguments Arguments to pass (note that file paths must be absolute paths on the target system) You can enclose applications that have spaces in their name with quotation marks e.g. "psexec \\marklap "c:\long name\app.exe". Put arguments directed at the application outside of the parenthesis. Input is only passed to the remote system when you press the enter key, and typing Ctrl-C terminates the remote process. If you omit a username the remote process runs in the same account from which you execute PsExec, but because the remote process is impersonating it will not have access to network resources on the remote system. When you specify a username the remote process executes in the account specified, and will have access to any network resources the account has access to. Note that the password is transmitted in clear text to the remote system. Examples The following command launches an interactive command prompt on \\marklap: psexec \\marklap cmd This command executes IpConfig on the remote system with the /all switch, and displays the resulting output locally: psexec \\marklap ipconfig /all This command copies the program test.exe to the remote system and executes it interactively: psexec \\marklap -c test.exe Specify the full path to a program that is already installed on a remote system if its not on the system's path: psexec \\marklap c:\bin\test.exe
  • 打赏
  • 举报
回复
c1997sdn 2013-02-01
首先要建立IPC连接啊
引用 12 楼 jiangweilian 的回复:
引用 3 楼 zhao4zhong1 的回复:对360恐怕不灵,因为360在驱动一级有保护。我在使用这个工具psexec的时候为什么总是提示“找不到网络路径”,这个要怎么解决?
  • 打赏
  • 举报
回复
赵4老师 2013-01-31
对360恐怕不灵,因为360在驱动一级有保护。
  • 打赏
  • 举报
回复
图灵狗 2013-01-31
远程执行net start和net stop命令即可。
  • 打赏
  • 举报
回复
c1997sdn 2013-01-31
楼主已经成功了啊,就是这样的。 也可以建立远程IPC连接后, 远程执行net start和net stop命令
引用 9 楼 jiangweilian 的回复:
我是这样做的,因为我不知道怎么去控制远程计算机的服务,所以我就利用套接字做了个服务端和客户端,我控制客户端发消息给服务端,然后服务端去控制远程计算机的服务
  • 打赏
  • 举报
回复
事后猪葛 2013-01-31
引用 8 楼 zhao4zhong1 的回复:
引用 2 楼 zhao4zhong1 的回复:http://download.sysinternals.com/files/PSTools.zip C:\SysinternalsSuite>psservice.exe /? PsService v2.22 - Service information and configuration utility Copyri……
我是这样做的,因为我不知道怎么去控制远程计算机的服务,所以我就利用套接字做了个服务端和客户端,我控制客户端发消息给服务端,然后服务端去控制远程计算机的服务,目前是成功的,但是你给我的这些资料真的很不懂,不知道是什么和干什么用的,但是任然很感谢你和大家的热情
  • 打赏
  • 举报
回复
赵4老师 2013-01-31
引用 2 楼 zhao4zhong1 的回复:
http://download.sysinternals.com/files/PSTools.zip
C:\SysinternalsSuite>psservice.exe /? PsService v2.22 - Service information and configuration utility Copyright (C) 2001-2008 Mark Russinovich Sysinternals - www.sysinternals.com PsService lists or controls services on a local or remote system. Usage: psservice.exe [\\Computer [-u Username [-p Password]]] <cmd> <optns> Cmd is one of the following: query Queries the status of a service config Queries the configuration setconfig Sets the configuration start Starts a service stop Stops a service restart Stops and then restarts a service pause Pauses a service cont Continues a paused service depend Enumerates the services that depend on the one specified find Searches for an instance of a service on the network security Reports the security permissions assigned to a service Use the username and password to log into the remote computer in cases where your account does not have permissions to perform the action you specify. Omitting a command queries the active services on the specified computer. Enter -? for help on a particular command.
  • 打赏
  • 举报
回复
Kaile 2013-01-31
远程机器要给你开放权限才可以
  • 打赏
  • 举报
回复
翅膀又硬了 2013-01-31
先远程桌面过去
  • 打赏
  • 举报
回复
事后猪葛 2013-01-31
引用 3 楼 zhao4zhong1 的回复:
对360恐怕不灵,因为360在驱动一级有保护。
我不是对360进行控制,那只是个例子,我是想远程控制他人机子上的某个系统服务的开和关
  • 打赏
  • 举报
回复
事后猪葛 2013-01-31
引用 1 楼 turingo 的回复:
远程执行net start和net stop命令即可。
这些命令好像不能去控制远程的机子而是只能控制自己本地的机子
  • 打赏
  • 举报
回复
相关推荐
发帖
C++ 语言
加入

6.0w+

社区成员

C++ 语言相关问题讨论,技术干货分享,前沿动态等
申请成为版主
帖子事件
创建了帖子
2013-01-31 10:33
社区公告
暂无公告