5 Replies - 328 Views - Last Post: 03 February 2012 - 05:39 PM Rate Topic: -----

Topic Sponsor:

#1 papalocke  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-February 12

Remote Lan control Question

Posted 03 February 2012 - 02:49 PM

Hey guys, I am a computer tech at a college and am working on a new project to make our jobs easier. I am fairly good with VB and have been working with it for a while, but I am having trouble finding some information regarding remote logoff, reboot, and shutdown commands. One site the other night i saw had a the shutdown command and all the parameters i needed to shut down a computer, and i could just run that in a console command from within the program. I cant find that site now however it seems, it had like 3 or 4 flags that has to go with it in the command line. I did a little research on the logoff command and cant seem to see how i could do that to a remote computer. I do have admin priviledges and domain admin for the network fyi.
If anyone could just point me to a site that has an explanation or if you could post a little about the commands from the command line or a work around in .NeT then that would be awesome. Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Remote Lan control Question

#2 trevster344  Icon User is offline

  • Slick.
  • member icon

Reputation: 124
  • View blog
  • Posts: 873
  • Joined: 16-March 11

Re: Remote Lan control Question

Posted 03 February 2012 - 03:05 PM

Do you have a client/server application? All you would need to do is put the shut down function in the client, and whenever you parse a message from the server to the client, if the client finds the command shut down the computer. I don't have any links for you sir, this is how I did it for a job I had a little while ago.
Was This Post Helpful? 0
  • +
  • -

#3 papalocke  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-February 12

Re: Remote Lan control Question

Posted 03 February 2012 - 03:19 PM

Basically I think ill eventually have the shutdown one, more concerned about the logoff part
Was This Post Helpful? 0
  • +
  • -

#4 papalocke  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-February 12

Re: Remote Lan control Question

Posted 03 February 2012 - 03:48 PM

Heres an update.

right now i have in place for my VB code to issue this command via Command line : shutdown -l -f -m \\ip or computer name. The -l is for logoff, but i was reading in the help pages that it cant be used with the -m flag which specifies the remote computer. I can already shutdown and restart the lab computers, but logging off is tough.

Additional Question : If we have the computers to auto-grab updates from our update server, if we issue system restarts then it should automatically apply updates right? So to update all the computers we just have to restart them?
Was This Post Helpful? 0
  • +
  • -

#5 Ionut  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 327
  • View blog
  • Posts: 914
  • Joined: 17-July 10

Re: Remote Lan control Question

Posted 03 February 2012 - 04:25 PM

For logging off I found 2 solutions:
1. logoff.exe which is a built-in application in Windows. Something about it in the second part of this link
2. a vb script - link

Using .Net, all you have to do is to use Process class to make the above solutions work.

for the additional question, I not sure how you built your update system, but the answer to the question should be yes. Now, you have to be carefull because updates installation could fail for different reasons.

This post has been edited by Ionut: 03 February 2012 - 04:29 PM

Was This Post Helpful? 2
  • +
  • -

#6 papalocke  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-February 12

Re: Remote Lan control Question

Posted 03 February 2012 - 05:39 PM

Thank Ionut, yeah i know they fail alot, but thats what the student worker labtechs are for :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1