net rpc shutdown doesn not power off windows 2000 machines that do power of when asking for power off by windows shutdown
calling shutdown with net rpc leads to the "your system can be safly powered of now" screen
For starters, which win2k are you using? Also, are you using the _exact same_ user logged on locally and remotely?
There's no option on the wire for "poweroff" or "don't poweroff" that I'm aware of. Typically this is controlled via registry settings, and bios can be an issue here.
I should mention that it works for me with win2k pro, using the same user locally and remotely.
I'm using windows 2000 Professional SP4 with most updates and yes I've tried same users and root on the samba machine system powers of on local shutdown invocation but stays at "its now safe" when calling shutdown via rpc.... I've found some posts with exactly the same problem from 2002 and 2004 and of course the changelogentry for samba 3.0.20 but as that are rather outdated i thought it might be worth another bugreport. I've tried on different machines with both w2k pro a turion laptop and a rather old athlon 1000 with asus a7v mainboard both the same problem.
I know that there is no samba option to poweroff but in those posts I read that there IS an option in windows tools for shutdown and poweroff ... first one acting like samba shutdown second one really powering of the machine
I've done further investigations trying several windows utilitys. Using "shutdown.exe" from w2k server resource kit I get the same problem as with samba. Using "psshutdown.exe" from sysinternals with -k switch powers off the machine as desired. Probably ther was added a flag or switch forcing power down via rpc after the initial release of w2k?
Actually, I sniffed this utility, and it remotely copies a .exe in, installs it as a service, starts the service, then talks to that service over its own pipe. Ther e is still no RPC in windows that will do this.
It's pretty unlikely that we're gonna inject a new service into someone else's system...I'd suggest you look into the various registry settings as well...
meaning windows rpc shutdown call is actually useless in some cases ... i understand that isn't a samba bug but it's a real pain in the as when needing ability to shut down client pc's remotely.
Thx for your time anyway
Yah, i still think you should just quickly explore the registry settings involved. THe other possibility is that if you want to install those services yourself, an enhancement could be to connect to the Pstools pipe...