Results 1 to 4 of 4

Thread: Remote turn off of windows

  1. #1
    Join Date
    Oct 2007
    Location
    San Diego, CA
    Beans
    155
    Distro
    Ubuntu 10.04 Lucid Lynx

    Remote turn off of windows

    I am writing a script that is goin to have my server to a automated backup of windows. I have it so it will wake the machine windows machine up and do a sync with the specified files. However I need the server to be able to shut the windows machine down.

    I found this guide:
    http://www.linuxforums.org/forum/red...linux-box.html

    And they say to use this command:
    Code:
    "net rpc SHUTDOWN -C "some comment here" -f -I x.x.x.x -U user_name%password"
    However when i try it I get this error
    Code:
    Could not connect to server 127.0.0.1
    Connection failed: NT_STATUS_CONNECTION_REFUSED

  2. #2
    Join Date
    Oct 2007
    Location
    San Diego, CA
    Beans
    155
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Remote turn off of windows

    no body?

  3. #3
    Join Date
    Feb 2009
    Beans
    81

    Re: Remote turn off of windows

    Quote Originally Posted by ductiletoaster View Post
    I am writing a script that is goin to have my server to a automated backup of windows. I have it so it will wake the machine windows machine up and do a sync with the specified files. However I need the server to be able to shut the windows machine down.

    I found this guide:
    http://www.linuxforums.org/forum/red...linux-box.html

    And they say to use this command:
    Code:
    "net rpc SHUTDOWN -C "some comment here" -f -I x.x.x.x -U user_name%password"
    However when i try it I get this error
    Code:
    Could not connect to server 127.0.0.1
    Connection failed: NT_STATUS_CONNECTION_REFUSED
    127.0.0.1 is the local loopback IP. It exists on the machine you ran the command on, not the remote server. Try using the correct IP address for the server.

  4. #4
    Join Date
    Oct 2007
    Location
    San Diego, CA
    Beans
    155
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Remote turn off of windows

    Quote Originally Posted by RetchingRabbit View Post
    127.0.0.1 is the local loopback IP. It exists on the machine you ran the command on, not the remote server. Try using the correct IP address for the server.
    I was using the correct Ip but i just messed up the command

    This is what i was typing in:
    Code:
    net rpc SHUTDOWN x.x.x.x -U user_name%password
    This is what i should have used:
    Code:
    net rpc SHUTDOWN -I x.x.x.x -U user_name%password
    The difference was the "-I". My mistake.

Tags for this Thread

Bookmarks

Posting Permissions

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