Windows 7远程关机:拒绝访问(5)

时间:2020-12-27 07:27:17

I am trying to force a remote shutdown from my laptop to my PC:

我试图迫使我的笔记本电脑和我的电脑进行远程关机:

machine> shutdown -m \\192.168.2.10 -s -f -t 0
192.168.2.10: Access denied(5)

I am in a WLAN/LAN environment:

我在WLAN/LAN环境中:

  • Laptop is in WLAN with IP 192.168.2.100 (DHCP), Win 7 (64 bit)
  • 笔记本在WLAN与IP 192.168.2.100 (DHCP), Win 7(64位)
  • PC is connected via LAN 192.168.8.10 (static), Win 7 (32 bit)
  • PC通过LAN 192.168.10(静态)连接,Win 7(32位)
  • Router IP 192.168.2.1/Subnetmask 255.255.255.0
  • 路由器IP 192.168.2.1 / Subnetmask 255.255.255.0

Access to PC is restricted by username and password.

对PC的访问受到用户名和密码的限制。

What do I have to change about the command or about the systems configurations - whilst access restrictions have to remain as is?

对于命令或系统配置,我需要改变什么——同时访问限制必须保持原样?

1 个解决方案

#1


37  

You can use the NET USE command to authenticate on the remote server and then use shutdown.exe

您可以使用NET use命令在远程服务器上进行身份验证,然后使用shutdown.exe

NET USE \\MyServer\IPC$ mypassword /USER:myuser

http://www.squidworks.net/2011/07/how-to-pass-a-username-and-password-to-windows-shutdown-exe-command/

http://www.squidworks.net/2011/07/how-to-pass-a-username-and-password-to-windows-shutdown-exe-command/

This does not work with UAC enabled, unless the policy LocalAccountTokenFilterPolicy is enabled on the remote server.

除非在远程服务器上启用了策略LocalAccountTokenFilterPolicy,否则不能使用UAC。

When a user who is a member of the local administrators group on the target remote computer establishes a remote administrative connection by using the net use * \remotecomputer\Share$ command, for example, they will not connect as a full administrator. The user has no elevation potential on the remote computer, and the user cannot perform administrative tasks.

当用户是目标远程计算机上的本地管理员组的成员,通过使用net use * \remotecomputer\Share$命令建立远程管理连接时,例如,他们不会作为一个完整的管理员进行连接。用户在远程计算机上没有提升潜力,用户不能执行管理任务。

#1


37  

You can use the NET USE command to authenticate on the remote server and then use shutdown.exe

您可以使用NET use命令在远程服务器上进行身份验证,然后使用shutdown.exe

NET USE \\MyServer\IPC$ mypassword /USER:myuser

http://www.squidworks.net/2011/07/how-to-pass-a-username-and-password-to-windows-shutdown-exe-command/

http://www.squidworks.net/2011/07/how-to-pass-a-username-and-password-to-windows-shutdown-exe-command/

This does not work with UAC enabled, unless the policy LocalAccountTokenFilterPolicy is enabled on the remote server.

除非在远程服务器上启用了策略LocalAccountTokenFilterPolicy,否则不能使用UAC。

When a user who is a member of the local administrators group on the target remote computer establishes a remote administrative connection by using the net use * \remotecomputer\Share$ command, for example, they will not connect as a full administrator. The user has no elevation potential on the remote computer, and the user cannot perform administrative tasks.

当用户是目标远程计算机上的本地管理员组的成员,通过使用net use * \remotecomputer\Share$命令建立远程管理连接时,例如,他们不会作为一个完整的管理员进行连接。用户在远程计算机上没有提升潜力,用户不能执行管理任务。