By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,088 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

Log out and in via vb.net?

P: n/a
I have several hundred computers, dedicated to number crunching, which
have two login accounts--administrator and a username account. Both
accounts run (by default) a vb.net application that handles commands
from a central controller machine. It's simple enough for the controller
machine to "command" the listener apps to shut down or reboot the
hundreds of machines, but then someone must go to each machine and
manually log in. Auto login isn't an option because we're on a domain
and there are two different possible logins.

Is it possible to have the local vb.net app reboot or logoff/login to
these machines as a user with a password (assuming we have the
password)? It would be possible to remove the user password if that made
it easier....?
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
us**@domain.invalid wrote in news:el**************@TK2MSFTNGP15.phx.gbl:
I have several hundred computers, dedicated to number crunching, which
have two login accounts--administrator and a username account. Both
accounts run (by default) a vb.net application that handles commands
from a central controller machine. It's simple enough for the controller
machine to "command" the listener apps to shut down or reboot the
hundreds of machines, but then someone must go to each machine and
manually log in. Auto login isn't an option because we're on a domain
and there are two different possible logins.

Is it possible to have the local vb.net app reboot or logoff/login to
these machines as a user with a password (assuming we have the
password)? It would be possible to remove the user password if that made
it easier....?

If your application needs to launch on boot, you should be creating a
Windows Service.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #2

P: n/a
Your going to have to use the Win32 API, look it up on the MS Site

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

<us**@domain.invalid> wrote in message
news:el**************@TK2MSFTNGP15.phx.gbl...
I have several hundred computers, dedicated to number crunching, which
have two login accounts--administrator and a username account. Both
accounts run (by default) a vb.net application that handles commands
from a central controller machine. It's simple enough for the controller
machine to "command" the listener apps to shut down or reboot the
hundreds of machines, but then someone must go to each machine and
manually log in. Auto login isn't an option because we're on a domain
and there are two different possible logins.

Is it possible to have the local vb.net app reboot or logoff/login to
these machines as a user with a password (assuming we have the
password)? It would be possible to remove the user password if that made
it easier....?

Nov 21 '05 #3

P: n/a
You can autologon using TweakUI

http://www.microsoft.com/windowsxp/d...powertoys.mspx

(haven't tried this myself on a domain)

Greg

<us**@domain.invalid> wrote in message
news:el**************@TK2MSFTNGP15.phx.gbl...
I have several hundred computers, dedicated to number crunching, which
have two login accounts--administrator and a username account. Both
accounts run (by default) a vb.net application that handles commands
from a central controller machine. It's simple enough for the controller
machine to "command" the listener apps to shut down or reboot the
hundreds of machines, but then someone must go to each machine and
manually log in. Auto login isn't an option because we're on a domain
and there are two different possible logins.

Is it possible to have the local vb.net app reboot or logoff/login to
these machines as a user with a password (assuming we have the
password)? It would be possible to remove the user password if that made
it easier....?

Nov 21 '05 #4

P: n/a
Greg Burns wrote:
You can autologon using TweakUI

http://www.microsoft.com/windowsxp/d...powertoys.mspx

(haven't tried this myself on a domain)

Greg

<us**@domain.invalid> wrote in message
news:el**************@TK2MSFTNGP15.phx.gbl...
I have several hundred computers, dedicated to number crunching, which
have two login accounts--administrator and a username account. Both
accounts run (by default) a vb.net application that handles commands
from a central controller machine. It's simple enough for the controller
machine to "command" the listener apps to shut down or reboot the
hundreds of machines, but then someone must go to each machine and
manually log in. Auto login isn't an option because we're on a domain
and there are two different possible logins.

Is it possible to have the local vb.net app reboot or logoff/login to
these machines as a user with a password (assuming we have the
password)? It would be possible to remove the user password if that made
it easier....?


I considered this at one point, but it doesn't give me the option of
auto-logging in as two different people (root and the username). I need
to be able to auto login as either one on all machines at once.
Nov 21 '05 #5

P: n/a
Lucas Tam wrote:
us**@domain.invalid wrote in news:el**************@TK2MSFTNGP15.phx.gbl:

I have several hundred computers, dedicated to number crunching, which
have two login accounts--administrator and a username account. Both
accounts run (by default) a vb.net application that handles commands
from a central controller machine. It's simple enough for the controller
machine to "command" the listener apps to shut down or reboot the
hundreds of machines, but then someone must go to each machine and
manually log in. Auto login isn't an option because we're on a domain
and there are two different possible logins.

Is it possible to have the local vb.net app reboot or logoff/login to
these machines as a user with a password (assuming we have the
password)? It would be possible to remove the user password if that made
it easier....?


If your application needs to launch on boot, you should be creating a
Windows Service.

Actually, it doesn't really involve the app itself, I just thought I'd
use the app, which is already running, to trigger the logout/login.
Essentially, telling the machine: "Log out, but then log in as <blank>."
Nov 21 '05 #6

P: n/a
One Handed Man ( OHM - Terry Burns ) wrote:
Your going to have to use the Win32 API, look it up on the MS Site

Any particular area of the Win32API you can suggest....?
Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.