I'm a student and have a few servers/clients at home. One of those computers is running on Windows 8. On this network, I have an embedded system on Debian that I use for VPN and SMB purposes. I has already scripts that do some wakeOnLan.

I've found recently that I can shutdown computers with Samba, using the command net rpc shutdown.

However, when I do it, i get an error:

could not initialise pipe \winreg. Error was NT_STATUS_OBJECT_NAME_NOT_FOUND

I've found here that a local user was, by default, not allowed to perform a shutdown remotely.

I've searched into the register the key to edit, but I couldn't find it. It's at another place.

So, do you know how I can enable this "shutdown on LAN"?

1 Answer 1


Missing \winreg might mean that the RemoteRegistry service is not running; try using the following commands in Windows:

sc config RemoteRegistry start= auto
sc start RemoteRegistry
  • Thank you. There was a other thing to do : my local account, which was in the "Admin group" was not allowed to shutdown remotely. To do it, I needed to activate the user "Administrator"
    – patxy
    May 22, 2013 at 21:56
  • 1
    @patxy: If your Windows version has secpol.msc or gpedit.msc, you can change it there.
    – user1686
    May 23, 2013 at 10:25
  • Do not activate the user Administrator, just right click the cmd and open it as administrator. This worked for me.
    – Maarten
    Jan 7, 2019 at 2:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.