Thanks for the response, if i run the command (batch file) from the server the interactives shut down as expected. I can't work out why the coomand isn't being run....
Thanks.
Main Topics
Browse All TopicsWhat Im trying to do:
Im building a website that will let office users start-up and shutdown computer interactives in a temporary exhibition.
What Im using to do it:
Im using a standard XP Pro workstation running IIS 5.1 to serve my site. The interactives are in a dedicated vlan, along with the IIS server.
Where Ive got to:
Im using three core components to achieve my goal: 1 ASP, 2. Depicus Wake-On-Lan and 3. Psshutdown from Sysinternals.
Currently my code runs two different batch files on the IIS server which ,depending on what the user wants to do, either run Wake-on-lan or shut the PCs down. My ASP is this: See Snippet
My two batch files are:
Wake on lan:
c:\wolcmd.exe 00132102B217 192.168.1.209 255.255.255.0 8900
Shutdown:
C:\psshutdown.exe \\192.168.1.209 -u Administrator -p ******** -t 0
IIS 5.1 is using anonymous access (Integrated Windows authentication also ticked) with a Domain User name & password which has full permissions set against the files actually shutting down and starting up my machine.
My asp code is successfully booting up my PC but it not shutting it down. Since the code running the batch file on server is the same, i.e. only the script location is changing, Im assuming the problem isnt the asp&
My problem:
Im stuck being unable to see the wood for the trees, I need my site to successfully shut down the interactives& any ideas? Thanks for looking.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: CyrexCore2kPosted on 2008-04-23 at 12:52:32ID: 21424646
My guess would be that an error is occurring with that command you're using. This is kind of involved but, if you have a hub (a switch won't work) you should hook it up to the computer you're trying to shut down as well as another computer. Run a packet sniffer on the other computer and run your script from the command line to see what the correct packet looks like. Then try running it from your ASP and see if a packet comes through at all or is corrupted in some way.