Find the answer to your Linux question:
Results 1 to 4 of 4
Hi to everyone I need to program in my office a shutdown of several windows machines. Started trynig to shutdown onw of them with this command: Code: net rpc SHUTDOWN ...
  1. #1
    Just Joined!
    Join Date
    Apr 2004
    Posts
    1

    Shutdown Windows XP remotely

    Hi to everyone

    I need to program in my office a shutdown of several windows machines.
    Started trynig to shutdown onw of them with this command:

    Code:
    net rpc SHUTDOWN -C "Backup Ended" -f -I 192.168.0.12 -U Username%Password
    The problem is that keeps giving me the error:

    Code:
    Shutdown of remote machine failed
    
    result was: WERR_ACCESS_DENIED
    debian:~#
    Can someone help me?
    Raffaele Colleo

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Try omitting the space between the -U switch and the username. Alternatively you can check out this utility which is the Linux equivalent of psexec.

    winexe homepage

  3. #3
    Just Joined!
    Join Date
    Apr 2004
    Posts
    1
    Still not working.
    I wouldn't like to install stuff for the shutdown. I know that is possible to do it with the net command, but don't understand why is returning me the error

    Raffaele Colleo

  4. #4
    Just Joined!
    Join Date
    Aug 2009
    Posts
    0

    the problem is: simple file sharing ON

    Hi!

    I'm sure Your problem is that Your XP host has "simple file sharing" option ON, but You need to turn it OFF.
    Simple file sharing cause to force guest while NT authorization process.

    If simple file sharing is ON (which is default in XP pro), Your command cannot define the priv account while running net rpc shutdown -I <IPaddressOfXPhost> -U administrator%<pass>, because the xp host doesn't want to receive this information. It set the running account to unpriv account GUEST.

    Solution:
    Set Simple File Sharing option to OFF on XP pro host.
    On XP home this option is set to ON by default and cannot be changed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •