The net command, new to Samba 3.0, is a program with a syntax similar to the MS-DOS/Windows command of the same name. It is used for performing various administrative functions related to Windows networking, which can be executed either locally or on a remote system.
[method] function [misc_options] [target_options]
function argument is made up of one or
more space-separated words. In Windows terminology, it is sometimes
referred to as a function with options. Here we list every function
in its complete form, including multiple words.
By default, the action is performed on the local system. The
target_options argument can be used to
specify a remote system (either by hostname or IP address), a domain,
or a workgroup.
Depending on the function, the
argument can be optional, required, or disallowed. It specifies one
of three methods for performing the operation specified by the rest
of the command. It can be
ads (Active Directory),
rpc (Microsoft’s DCE/RPC), or
rap (Microsoft’s original SMB
remote procedure call). To determine which methods (if any) can be
used with a function, the
net help ads,
net help rap, and
net help rpc
commands can be used to list the functions for each method.
Sets the debug (sometimes called logging) level. The level can range from 0 to 10.
Specifies the long listing mode. This is provided
for functions that print informational listings.