Share via


NetShell Flags

Commands can specify their scope or constraints through the use of flags. The following table defines valid flags for NetShell helper commands. These flags are set through the CMD_ENTRY or CMD_GROUP_ENTRY structures, or their associated macros.

The following flags can be specified for a command, in any combination.

Flag Meaning
CMD_FLAG_PRIVATE Indicates the command is valid directly from its context only. If not set, the command is inherited by all subcontexts. This is the only flag set by default for commands added by a helper.
CMD_FLAG_INTERACTIVE Indicates the context is available only when NetShell is run in interactive mode, and not available to be passed to NetShell on the command line.
CMD_FLAG_LOCAL Indicates the command is not valid from a remote machine.
CMD_FLAG_ONLINE Indicates the command is not valid in offline mode.
CMD_FLAG_PRIORITY Indicates the ulPriority member of the NS_CONTEXT_ATTRIBUTES structure is used.