Administering Advanced Server at the Command Prompt

Net Command

9.2.1.5Using Command Confirmation

Some Net commands require confirmation. The /yes and /no options help expedite Net commands. When Advanced Server reads one of these options, it does not pause to display the corresponding prompt. Instead, Advanced Server accepts the /yes or /no option as your response to the prompt.

You can use Net commands with /yes ( /y ) and /no ( /n ) options to create batch files and shell scripts that are not interrupted by Advanced Server prompts.

For example, if you use the net logoff command to log off the local area network with connections to remote shared resources intact, Advanced Server displays a prompt similar to the following:

You have the following remote connections: LPT1

Continuing will cancel the connections.

Do you want to continue this operation? (Y/N) [Y]:

You can use the /yes and /no options with any Net command to anticipate and respond to a prompt. For example, you are not prompted for confirmation when you type the following:

net logoff /yes

9.2.1.6Using Abbreviations

The command reference pages in this chapter always use the full command names, command options, and service names. However, Advanced Server recognizes abbrevia- tions.

You can abbreviate any command option by typing enough letters to distinguish it from other command options. For example, the following is the syntax for the net accounts command:

net accounts [/forcelogoff:{minutesno }] [/minpwlen:length] [/maxpwage:{daysunlimited}][/minpwage:days] [/uniquepw:number]

You can abbreviate the options as illustrated in the following example: net accounts /f:10 /minpwl:6 /ma:unlimited /minpwa:7 /u:3

You cannot abbreviate option values (for example, the unlimited option for /maxpwage).

Product Manual

U7613-J-Z815-6-76

Page 186
Image 186
Siemens V4.0 manual Using Command Confirmation, Using Abbreviations