b0r3d Posted September 6, 2003 Posted September 6, 2003 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.
Skyfrog Posted September 10, 2003 Posted September 10, 2003 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.
b0r3d Posted September 10, 2003 Author Posted September 10, 2003 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now