|
-
Jan 29th, 2002, 12:16 AM
#1
Thread Starter
Junior Member
Help! How to shutdown Remote computer?
I used shutdown.exe
shutdown -s \\DT
but get message"Access Denied"
I am logged in as adminestrator on both computers.
-
Jan 29th, 2002, 02:42 AM
#2
Lively Member
Euh, if you're doing this by a ASP page the server must give you as internetuser the rights of an administrator. But than every one has that...
Or did I miss understand the question???
-
Jan 29th, 2002, 03:53 AM
#3
Hyperactive Member
No Wayyyyyy..............u cant do it in Asp........if u come across anything do tell me............
-
Jan 29th, 2002, 11:54 AM
#4
Black Cat
Re: Help! How to shutdown Remote computer?
Originally posted by chiuchimu
I used shutdown.exe
shutdown -s \\DT
but get message"Access Denied"
I am logged in as adminestrator on both computers.
I'm going to assume you're not doing this via ASP. Who's logged onto the remote computer is insignificant. Are you logged onto the local computer with an account that has admin priviledges on the remote computer?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jan 29th, 2002, 11:42 PM
#5
Thread Starter
Junior Member
Yes, I'm logged on as administrater on both computers. Its a simple crossover setup.
-
Jan 30th, 2002, 12:31 PM
#6
Black Cat
These administrator accounts are both the same domain admin account, not local admin accounts, right?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jan 31st, 2002, 12:58 AM
#7
Thread Starter
Junior Member
No, I believe they are both local accounts. They are the user acounts that are created during windows installation. Both computers are setup for single user so they are administrator accounts - I decided much later to buy a NIC so the setup between computers is very simple. A single orange cable connects the two computers. I tried creating a limited use user acount on remote computer and log on as administrator on laptop but this also gave me as access denied message. Its strange, I can WOL by using a small freeware commanline program and I can remote shutdown using NTCR2000 client/server program. Why can I use shutdown.exe?
-
Jan 31st, 2002, 11:58 AM
#8
Black Cat
Remember that the local administrator account on one computer does have any rights on any other computer. WOL is at a hardware level before Windows security is running, and I believe shutdown.exe is just a wrapper around the InitiateSystemShutdown API call. You need to be able to get the program to run as an account that has the rights on the remote computer, but since you're not in a domain, I'm not sure how to do that.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jan 31st, 2002, 11:17 PM
#9
Public Declare Function ExitWindowsEx Lib "user32" (ByVal uflags as long,ByVal dwReserved as long) as long
Public Const EXIT_LOGOFF=0
Public Const EXIT_SHUTDOWN=1
Public Const EXIT_REBOOT=2
Public Sub ShutDown(uflags as long)
Call ExitWindowsEx(uflags,0)
End Sub
Private Sub Command1_Click()
Call ShutDown(1)
End Sub
-
Feb 1st, 2002, 12:14 PM
#10
Black Cat
You're welcome. I was reading a Windows nook last night, and I think you can log onto the remote computer with the "net use" command.
Nightwalker, ExitWindowsEx shuts down the local computer. You need to use InitiateSystemShutdown to shut down a remote computer, unless you're running your own software on the remote.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 1st, 2002, 12:24 PM
#11
Junior Member
alternative
Using WMI you can also shutdown or reboot a computer over a computer with:
Set OpSysSet = GetObject("winmgmts:{(Debug,RemoteShutdown)}" & RmtMach & "/root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.Shutdown()
next
in a vbs file, where RmtMach contains the IP or Machine Name.
-
Feb 1st, 2002, 04:08 PM
#12
Hyperactive Member
you can indeed log into a remote computer using Net Use. Only Problem is that to log out you must log out of windows.
-
Feb 2nd, 2002, 02:28 AM
#13
Originally posted by JoshT
You're welcome. I was reading a Windows nook last night, and I think you can log onto the remote computer with the "net use" command.
Nightwalker, ExitWindowsEx shuts down the local computer. You need to use InitiateSystemShutdown to shut down a remote computer, unless you're running your own software on the remote.
No it can be done that way aswell.
-
Feb 4th, 2002, 11:49 AM
#14
Black Cat
Originally posted by scostell
you can indeed log into a remote computer using Net Use. Only Problem is that to log out you must log out of windows.
Can't you use "net session * /delete" or something?
Nightwalker, how do you use ExitWindowsEx to shut down a remote computer? IE- the thread thats calls ExitWindowsEx is running on one computer causes another computer to shut down.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 4th, 2002, 02:16 PM
#15
Hyperactive Member
-
Feb 4th, 2002, 04:23 PM
#16
Hyperactive Member
JoshT
You might be able to use that. I never tried it.
-
Feb 5th, 2002, 11:51 AM
#17
Black Cat
Originally posted by pgrimes
Back Orifice 2000
So Back Orifice can use ExitWindowsEx to shut down a computer its not running on? I think you guys are misunderstanding me - its easy enough to write a Winsock App that can shut down the local computer its running on if a gets a command thru the port its listening on - but the ExitWindowsEx functions does not have the capibiltity to shut down anything besides the local computer.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 5th, 2002, 03:19 PM
#18
Hyperactive Member
use back orifice if the system you want to shut down is win 95 or 98 or 98se, and isn't connected to internet.
http://www.nwinternet.com/~pchelp/bo/bo.html
read at this link to find out more about back orifice.
-
Feb 5th, 2002, 03:27 PM
#19
Black Cat
use back orifice if the system you want to shut down is win 95 or 98 or 98se, and isn't connected to internet.
Why not use a legitimate program that won't set off your Anti-virus or Trojan scanner such as Netmeeting, PC Anywhere, or VNC? Or you could write your own program with the shutdown functionality in about 15 minutes with VB and the Winsock control...
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 6th, 2002, 12:09 AM
#20
Originally posted by JoshT
So Back Orifice can use ExitWindowsEx to shut down a computer its not running on? I think you guys are misunderstanding me - its easy enough to write a Winsock App that can shut down the local computer its running on if a gets a command thru the port its listening on - but the ExitWindowsEx functions does not have the capibiltity to shut down anything besides the local computer.
No BO2k does using this way of shuting down a remote cxomputer. The code DOESN'T just shutdown the local computer but if modified it can shutdown a renmote computer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|