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!
Remote Lan control Question
Page 1 of 15 Replies - 328 Views - Last Post: 03 February 2012 - 05:39 PM
Topic Sponsor:
Replies To: Remote Lan control Question
#2
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.
#3
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
#4
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?
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?
#5
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.
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
#6
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
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|