wwfc_barmy_army Posted October 10, 2008 Share Posted October 10, 2008 Hello. Basically i work in a organisation and there are many rooms of computers all on the same network. So basically i want to know if the following is possible. What we would like is a web front end to be able to shut them down, either all of them or room by room. So, is it possible to run a command on the webserver (also on the network) to tell a certain computer or groups of computers (mac addresses can be found, along with computer names and IP addresses) to shutdown, or would i have to try and pass a variable to some software to do it? Any advice or code is welcomed? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/ Share on other sites More sharing options...
trq Posted October 10, 2008 Share Posted October 10, 2008 Its possible but you'll need to login to the other computers to do it I'm sure. What OS? Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-661740 Share on other sites More sharing options...
wwfc_barmy_army Posted October 10, 2008 Author Share Posted October 10, 2008 Webserver for now will be running on xp with appserv till the new one comes in. The main server is server 2007 and all machines are XP. We have a global administrator username and password for all machines so presumably we can just use that? Thanks for any advice. Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-661759 Share on other sites More sharing options...
trq Posted October 10, 2008 Share Posted October 10, 2008 Shame, it'd be simple with Linux all round. I've got no idea how you would do that on windows, though I'm sure its possible. Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-661777 Share on other sites More sharing options...
wwfc_barmy_army Posted October 10, 2008 Author Share Posted October 10, 2008 Ah. Thanks anyway. Anyone else got any ideas? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-661814 Share on other sites More sharing options...
sasa Posted October 10, 2008 Share Posted October 10, 2008 look http://www.metacafe.com/watch/375517/how_to_remotely_shutdown_other_pcs_on_the_network/ Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-662002 Share on other sites More sharing options...
nadeemshafi9 Posted October 10, 2008 Share Posted October 10, 2008 all u need to do is log into the computers command line and type shutdown or power off or wotever throgh php when u press the button on the web page, this sounds simple but you will have to research each function. Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-662024 Share on other sites More sharing options...
nadeemshafi9 Posted October 10, 2008 Share Posted October 10, 2008 http://uk3.php.net/manual/en/book.exec.php Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-662026 Share on other sites More sharing options...
nadeemshafi9 Posted October 10, 2008 Share Posted October 10, 2008 in theory you would have a db of the login of all the machines on the local machine, you would then use this to log in to each machine and turn it off with function string shell_exec ( string $cmd ) i belive in linux or windows i cant rember the command to log into another computer its -o server username password or somnthing similar this is a hard way Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-662030 Share on other sites More sharing options...
nadeemshafi9 Posted October 10, 2008 Share Posted October 10, 2008 you could have php files on each server that turns them off only accessable by authenticated users, you would then simpmply link to each file on the local to the remotes turn off files and authenticate into them. this is an easy less secure way Quote Link to comment https://forums.phpfreaks.com/topic/127822-is-it-possible/#findComment-662034 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.