Jump to content

Logoff from DOS


Recommended Posts

Posted

Could somebody please help me with the command to logoff a computer from the DOS prompt?

Im writing a program for a high school, that pops up a EULA whenever a student logs in. If a student doesnt agree to the terms and conditions (such as not looking up pr0n etc) it will automatically log them off.

Im using VB.NET for this, and ive found ways to log them off using teh code, but unfortunatly, to run the program, it requires Windows to logon properly, which means the student can end task the program, or move it out of the way, and still retain windows functionality.

By using the DOS command, i can whack it on the server in the logon script, and they wont have a choice :)

Any help would be greatly appreciated.


Posted

XP doesn't actually run on DOS, it's just a command prompt that looks like it. But that's not really important here. I believe the command you are looking for is simply Logoff. If you type a /? after it there are a few options you can use as well.

Posted

Well s*** on me and call me stupid. I didnt realise it was that easy! I was looking at calling rundll values etc. Thank you for the answer!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...