Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Using shutdown.exe tool to shutdown remote PC

- - - - -

  • Please log in to reply
7 replies to this topic

#1
sakulati

sakulati

    Newbie

  • Member
  • 45 posts
  • Joined 15-September 04
Hi I am trying to shutdown computers in the LAN running winXP sp2 and win2000 sp4 but shutdown.exe tool doesnt work at all. I cant shutdown down remotely even if I try the same OS. It appears "The network path was not found" though I supplied the right username and sometimes I use \\ipaddress heres my script shutdown -s -m \\computername -t 00 -c "comment" whats wrong with this? do i still have to run some services or configure the LAN PC to accept shutdown? sometimes it would say "Access Denied" but I'm using the same admin local account for all the PC. pls help and advice me...thanks alot to all!!!

Edited by sakulati, 07 July 2005 - 08:22 PM.



How to remove advertisement from MSFN

#2
egrath

egrath

    Member

  • Member
  • PipPip
  • 146 posts
  • Joined 24-May 05
  • OS:Windows 7 x64
  • Country: Country Flag
Hi,

Try the following:

Connect to the ipc$ share with admin rights, then try to run your shutdown command again. If this doesn't work check the following settings:

1. Is the remote Computer Windows XP and has Firewall enabled?
2. Is Remote Shutdown restricted in the Local Security Settings? (User Rights Assignment->Force shutdown from a remote System)

Bye, Egon
--
The price of freedom is eternal vigilance

#3
Akos

Akos
  • Member
  • 2 posts
  • Joined 08-July 05
Yeah, try:

"net use \\computeryouwanttorestart\ipc$ /user:usernamewithadminrights passwordofthisuser" (without the quotes)

Then the shutdown command that you gave.

You're getting an access denied, so that gives hope that you will be able to reach it.

Edited by Akos, 08 July 2005 - 04:14 PM.


#4
Takeshi

Takeshi

    Legitchecking...

  • Member
  • PipPipPipPipPipPip
  • 1,107 posts
  • Joined 09-September 04
This one:

http://www.msfn.org/...showtopic=44972

#5
Akos

Akos
  • Member
  • 2 posts
  • Joined 08-July 05
Yeah, you can use the psshutdown which you can get from sysinternals, or just use the shutdown that's included in xp or 2003 (don't know if it's included in 2000)

Note that with the "net use" command you don't even need to be in a domain. As long as you have proper credentials for that machine you're trying to shut down, you will be able to do that.

#6
Martin Zugec

Martin Zugec

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,373 posts
  • Joined 24-January 04
I am using WMIC :)
Like my opinions? Read Deployment/scripting blog
Like my scripts? They are under DrinkWare license :)

#7
Lus

Lus

    Junior

  • Member
  • Pip
  • 65 posts
  • Joined 09-July 05
if u have still problem for remote shoutdowning computer, i guss you must enable remote regirstry on target machines. (a Dword key in registry). and the best software for planing Remote shoutdown, Remote restar and wake-On-Lan is "Lan Helper v1.43", use it ?

#8
Takeshi

Takeshi

    Legitchecking...

  • Member
  • PipPipPipPipPipPip
  • 1,107 posts
  • Joined 09-September 04

I am using WMIC :)

<{POST_SNAPBACK}>


What command would that be exactly?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users