Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 63

Thread: Using Samba to shutdown windows from Linux terminal

  1. #11
    Join Date
    Jan 2006
    Location
    Florida
    Beans
    377
    Distro
    Ubuntu 6.06 Dapper

    Re: Using Samba to shutdown windows from Linux terminal

    Thanks cgsjones for your efforts. I am off the work now but I will try in couple of hours and keep you posted.

    Quote Originally Posted by cgjones
    This just isn't my day. I would try it if I had a computer running Windows.

    Try this:
    Code:
    rpcclient -U username -I IP Address -c REG shutdown

  2. #12
    Join Date
    Nov 2005
    Beans
    301
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Using Samba to shutdown windows from Linux terminal

    No problem. We'll get this figured out one way or another.

  3. #13
    Join Date
    Jan 2006
    Location
    Florida
    Beans
    377
    Distro
    Ubuntu 6.06 Dapper

    Re: Using Samba to shutdown windows from Linux terminal

    It gives me an error

    failed tcon_X with NT_STATUS_DUPLICATE_NAME
    Cannot Connect to Server. Error was NT_STATUS_DUPLICATE_NAME

    Any more clues ??

    Quote Originally Posted by cgjones
    This just isn't my day. I would try it if I had a computer running Windows.

    Try this:
    Code:
    rpcclient -U username -I IP Address -c REG shutdown
    Last edited by krypto_wizard; May 12th, 2006 at 01:28 PM.

  4. #14
    Join Date
    Nov 2005
    Beans
    301
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Using Samba to shutdown windows from Linux terminal

    Try this:
    Code:
    rpcclient -c 'shutdown' -U username -I ip address
    I also found information about needing to have the Windows machine set up correctly. See if your local security policy allows shutdowns from a remote system.

  5. #15
    Join Date
    Nov 2005
    Beans
    301
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Using Samba to shutdown windows from Linux terminal

    Edit: Double Post
    Last edited by cgjones; May 12th, 2006 at 03:27 PM.

  6. #16
    Join Date
    Nov 2005
    Beans
    301
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Using Samba to shutdown windows from Linux terminal

    Edit: Triple Post
    Last edited by cgjones; May 12th, 2006 at 03:27 PM.

  7. #17
    Join Date
    Jan 2006
    Location
    Florida
    Beans
    377
    Distro
    Ubuntu 6.06 Dapper

    Re: Using Samba to shutdown windows from Linux terminal

    Quote Originally Posted by cgjones
    Try this:
    Code:
    rpcclient -c 'shutdown' -U username -I ip address
    I also found information about needing to have the Windows machine set up correctly. See if your local security policy allows shutdowns from a remote system.

    That rite, I need to enable certain settings in windows to accepts remote command. I am googleing it, haven't found something that will work.

    Do you have any idea ?

  8. #18
    Join Date
    Nov 2005
    Beans
    301
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Using Samba to shutdown windows from Linux terminal

    I think that if you go to Start >>Control Panel >> Administrative Tools >> Local Security Policy you can set the options to allow remote shutdowns. Although if you are logging in through rpcclient as an Administrative user, you should already be allowed to shutdown the computer. Did you try that last command I posted?

  9. #19
    Join Date
    Jan 2006
    Location
    Florida
    Beans
    377
    Distro
    Ubuntu 6.06 Dapper

    Re: Using Samba to shutdown windows from Linux terminal

    I did, it wont work either.

    after this command it gives me how to use the rpcclient option...thats it.

    Is there any other OUT OF THE BOX WAY TO do the same thing.

    Quote Originally Posted by cgjones
    I think that if you go to Start >>Control Panel >> Administrative Tools >> Local Security Policy you can set the options to allow remote shutdowns. Although if you are logging in through rpcclient as an Administrative user, you should already be allowed to shutdown the computer. Did you try that last command I posted?

  10. #20
    Join Date
    Nov 2005
    Beans
    301
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Using Samba to shutdown windows from Linux terminal

    If these computers are running Windows XP Professional, you could turn on Remote Desktop and then log into them using the Terminal Services Client (I think thats what its called) in Ubuntu. This should give you the Windows desktop, and then you could shut it down. I'm running out of ideas on how to get this working with Samba. We must be missing something, because I think either net or rpcclient should work.

Page 2 of 7 FirstFirst 1234 ... LastLast

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
  •