Results 1 to 7 of 7
  1. #1

    Default question on networking programming


    Hello. I have an ongoing program and part of it is remotely shutting down a workstation.

    What's the best way to do this? I have google and found a WMI way of doing it and the other one is calling the workstation's shutdown.exe..

    I have tried the latter but I get access denied while putting this on the command line...

    shutdown -s -f -m \\IP Address

    Kinsa kahibaw mu solve ani?

    I am using two Windows XP Pro and C#.NET.

    About the WMI method diay, it needs a workstation's username and password to connect...but it can shutdown remotely, but Im trying to remove the need of usernames and passwords.

  2. #2
    For security reasons, authentication is *needed*.
    If not anybody from the internet can turn off your PC.

  3. #3
    Quote Originally Posted by cold_fusion View Post
    For security reasons, authentication is *needed*.
    If not anybody from the internet can turn off your PC.
    hahaha..guess you're right..
    anyway we have made it with WMI..thanks.

  4. #4
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    I used to do it via sysinternals... how if WMI service is stopped?

  5. #5
    ^very good point mark...

    i would suggest using the shutdown just because of security..

    you won't have an access denied message if the one using your program is an admin on that remote computer or an admin of the domain..just for security purposes...

  6. #6
    if wmi services is stopped, then it should be started toinks

    anyway these types of programs should only be run by admins.
    so shutdown.exe would be a simpler solution , but calling it without the appropriate rights wont throw errors or does it? (need to confirm)

    as for WMI if you failed it will throw errors. which is nice, so you can inform your user and do some stuff

    before used WMI cause i needed to create/kill processes remotely and other stuff

  7. #7
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    if the goal is to shutdown the workstation, and considering that you are an admin why not use remote desktop feature? rather than investigating it using sysinternals (in my part I use PSLIST.EXE) to view current program running on the workstations...

    I used this method to checked all the running application in our System which has different set of modules... sometimes it won't release the license restriction when the user exits the program and thus it won't allow any other users to run the specific application exited by the user earlier. So to check and unlock this explicitly I have to search over 200 workstations and find the process name, and kill the process via "PSKILL.EXE" again part of the sysinternals.

    Basically, we will just inform the user to shutdown his computer, so he can have time to save his work or whatsoever running procecesses, eg. printing, email, open some network files, unsaved documents, download/uploading some documents from the FTP server? well.. this doesn't apply to all.

  8.    Advertisement

Similar Threads

 
  1. A Question on Guys who dump girls
    By SweetCatEyes in forum "Love is..."
    Replies: 247
    Last Post: 05-24-2011, 09:50 AM
  2. Questions on Linksys BEFSR41
    By raven in forum Networking & Internet
    Replies: 14
    Last Post: 05-07-2007, 03:08 PM
  3. question on imported games
    By blue_orange in forum Software & Games (Old)
    Replies: 4
    Last Post: 11-30-2005, 01:47 PM
  4. Question on mga drive sa HD.
    By cebu6 in forum Computer Hardware
    Replies: 8
    Last Post: 08-15-2005, 02:34 PM
  5. power question on PC
    By Poor_Prince23 in forum Computer Hardware
    Replies: 7
    Last Post: 07-14-2005, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top