User's Guide for MS-DOS Clients

136
Enhanced Reference
Command and Utility Summary
Net Logon
Purpose
The net logon command logs a user on to the network and establishes the
username, password, and domain for a workstation.
Syntax
net logon [username [password | *]] [/domain:name] [/y]
where
username
Is the name by which you identify yourself on the network. A username can have
as many as 20 characters.
password
Is the password for your user account.
*
Produces a password prompt. A password does not appear when you type it at a
password prompt.
/domain:name
Logs you on in a domain other than your workstation domain. This domain is
called the logon domain.
/y
Answers any prompts that require a yes or no answer with a yes. You must
include your username when using the /y option. You can use * for the password
when using the /y option.
To be prompted for your username and password, type net logon without
options.
Comments
The net logon command uses your username and password to establish a
session on the network for your workstation, and grants you access to shared
resources. If you are accessing a network with Windows NT
Advanced Servers or LAN Manager servers, the username and password