A. The Windows NT 4.0 Resource Kit Supplement 2 ships with the utility LOGOFF.EXE and this can be used to logoff from the command line.

The syntax is

C:\> logoff \[/f\] \[/n\]

Where the option /f means running processes will be closed without asking to save unsaved data but will ask for confirmation. /n will logoff without confirmation but will ask to save unsaved data.

Using both together will result in no confirmation and all unsaved data being lost.