I used shutdown.exe
shutdown -s \\DT
but get message"Access Denied"
I am logged in as adminestrator on both computers.
Printable View
I used shutdown.exe
shutdown -s \\DT
but get message"Access Denied"
I am logged in as adminestrator on both computers.
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???
No Wayyyyyy..............u cant do it in Asp........if u come across anything do tell me............
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?Quote:
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.
Yes, I'm logged on as administrater on both computers. Its a simple crossover setup.
These administrator accounts are both the same domain admin account, not local admin accounts, right?
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?
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.
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
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.
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.
you can indeed log into a remote computer using Net Use. Only Problem is that to log out you must log out of windows.
No it can be done that way aswell.Quote:
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.
Can't you use "net session * /delete" or something?Quote:
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.
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.
Back Orifice 2000
JoshT
You might be able to use that. I never tried it.
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.Quote:
Originally posted by pgrimes
Back Orifice 2000
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.
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...Quote:
use back orifice if the system you want to shut down is win 95 or 98 or 98se, and isn't connected to internet.
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.Quote:
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.