wecutil.exe
Associated Error Codes
Below lists error codes and symbolic names found for this module.
| Code | Found in | Description |
|---|---|---|
| 0x1 | 78.11011 | Out of memory. |
| 0x2 | 78.11011 | Failed to open output file: %1!s!. |
| 0x3 | 78.11011 | Failed to open config file: %1!s!. |
| 0x4 | 78.11011 | Invalid config file. |
| 0x5 | 78.11011 | Failed to read from config file. |
| 0x6 | 78.11011 | Failed to initialize COM. |
| 0x7 | 78.11011 | Failed to read subscription id from config file. |
| 0x8 | 78.11011 | Failed to open subscription. |
| 0x9 | 78.11011 | Failed to save subscription. |
| 0xa | 78.11011 | The subscription is saved successfully, but it can't be activated at this time. Use retry-subscription command to retry the subscription. If subscription is running, you can also use get-subscriptionruntimestatus command to get extended error status. |
| 0xb | 78.11011 | Failed to delete subscription. |
| 0xc | 78.11011 | Failed to open subscription enumeration. |
| 0xd | 78.11011 | Failed to enumerate subscriptions. |
| 0xe | 78.11011 | Failed to get %1!s! property. |
| 0xf | 78.11011 | Failed to set %1!s! property. |
| 0x10 | 78.11011 | Failed to retry event source: %1!s!. |
| 0x11 | 78.11011 | Failed to retry subscription. |
| 0x12 | 78.11011 | Format is not supported. |
| 0x13 | 78.11011 | Invalid delivery mode %d. |
| 0x14 | 78.11011 | Invalid content format %d. |
| 0x15 | 78.11011 | Invalid property value '%1!s!' (%2!s!). |
| 0x16 | 78.11011 | Command %1!s! is not supported. |
| 0x17 | 78.11011 | Invalid option %1!s!. Option name is not specified. |
| 0x18 | 78.11011 | Invalid option %1!s!. Option is specified more than once. |
| 0x19 | 78.11011 | Invalid option %1!s!. Option is not integer. |
| 0x1a | 78.11011 | Invalid option %1!s!. Option value is not specified. |
| 0x1b | 78.11011 | Invalid option %1!s!. Option is not Boolean. |
| 0x1c | 78.11011 | Invalid option %1!s!. Option is not supported. |
| 0x1d | 78.11011 | Too many arguments are specified. |
| 0x1e | 78.11011 | Required argument(s) is/are not specified. |
| 0x1f | 78.11011 | Internal error. |
| 0x20 | 78.11011 | Failed to read password. |
| 0x21 | 78.11011 | EventSourceAddress is not specified. |
| 0x22 | 78.11011 | Command is not specified. |
| 0x23 | 78.11011 | No event source is found for this subscription. |
| 0x24 | 78.11011 | Root node of config file is not Subscription or in correct namespace. |
| 0x25 | 78.11011 | Warning: event source %1!s! is disabled. |
| 0x26 | 78.11011 | Subscription %1!s! already exists. |
| 0x27 | 78.11011 | Can not add event source %1!s! when it already exists. |
| 0x28 | 78.11011 | Windows Event Collector Utility Enables you to create and manage subscriptions to events forwarded from remote event sources that support WS-Management protocol. Usage: You can use either the short (i.e. es, /f) or long (i.e. enum-subscription, /format) version of the command and option names. Commands, options and option values are case-insensitive. (ALL UPPER-CASE = VARIABLE) wecutil COMMAND [ARGUMENT [ARGUMENT] ...] [/OPTION:VALUE [/OPTION:VALUE] ...] Commands: es (enum-subscription) List existent subscriptions. gs (get-subscription) Get subscription configuration. gr (get-subscriptionruntimestatus) Get subscription runtime status. ss (set-subscription) Set subscription configuration. cs (create-subscription) Create new subscription. ds (delete-subscription) Delete subscription. rs (retry-subscription) Retry subscription. qc (quick-config) Configure Windows Event Collector service. Common options: /h|? (help) Get general help for the wecutil program. wecutil { -help | -h | -? } For arguments and options, see usage of specific commands: wecutil COMMAND -? |
| 0x29 | 78.11011 | Create a remote subscription.
Usage:
wecutil { cs | create-subscription } CONFIGURATION_FILE [/OPTION:VALUE [/OPTION:VALUE] ...]
CONFIGURATION_FILE
String that specifies the path to the XML file that contains subscription configuration.
The path can be absolute or relative to the current directory.
Options:
You can use either the short (i.e. /cun) or long (i.e. /CommonUserName) version of the
option names. Options and their values are case-insensitive.
/cun:USERNAME (CommonUserName)
Sets shared user credential to be used for event sources that do not have their own
user credentials. This option applies to collector initiated subscriptions only.
Note: if this option is specified, UserName/UserPassword settings for individual event
sources from the configuration file are ignored. If you want to use different credential
for a specific event source, use ss (set-subscription) command to set it for the event
source.
/cup:PASSWORD (CommonUserPassword)
Sets the user password for the shared user credential. When PASSWORD is set to *
(asterisk), the password is read from the console. This option is only valid when
/cun (CommonUserName) option is specified.
Example:
Create a collector initiated subscription to forward events from the Application event log of
a remote computer mySource.myDomain.com to ForwardedEvents log.
wecutil cs ci_subscription.xml
Content of ci_subscription.xml:
|
| 0x2a | 78.11011 | List the names of all existent remote event subscriptions. Usage: wecutil { es | enum-subscription } Example: List event subscriptions. wecutil es |
| 0x2b | 78.11011 | Displays remote subscription configuration information.
Usage:
wecutil { gs | get-subscription } SUBSCRIPTION_ID [/OPTION:VALUE [/OPTION:VALUE] ...]
SUBSCRIPTION_ID
String that uniquely identifies a subscription, specified by the |
| 0x2c | 78.110 | Displays subscription runtime status.
Usage:
wecutil { gr | get-subscriptionruntimestatus } SUBSCRIPTION_ID
[EVENT_SOURCE [EVENT_SOURCE] ...]
SUBSCRIPTION_ID
String that uniquely identifies a subscription, specified by the
|
| 0x2d | 78.11011 | Deletes a specific subscription and unsubscribes from all event sources that deliver
events into the Event Log for the subscription. Any events already received and
logged are not deleted.
Usage:
wecutil { ds | delete-subscription } SUBSCRIPTION_ID
SUBSCRIPTION_ID
String that uniquely identifies a subscription, specified by the |
| 0x2e | 78.11011 | Retries inactive subscription by attempting to reactivate all or specified event
sources by establishing a connection and sending a remote subscription request.
Disabled sources are not retried.
Usage:
wecutil { rs | retry-subscription } SUBSCRIPTION_ID
[EVENT_SOURCE [EVENT_SOURCE] ...]
SUBSCRIPTION_ID
String that uniquely identifies a subscription, specified by the |
| 0x2f | 78.11011 | Sets subscription configuration by changing subscription parameters from the command
line or by using an XML configuration file.
Usage:
wecutil { ss | set-subscription } SUBSCRIPTION_ID [/OPTION:VALUE [/OPTION:VALUE] ...]
wecutil { ss | set-subscription } /c:CONFIG_FILE [/cus:USERNAME [/cup:PASSWORD] ...]
SUBSCRIPTION_ID
String that uniquely identifies a subscription, specified by the |
| 0x30 | 78.110 | /esa:EVENT_SOURCE (EventSourceAddress) Specifies the address of an event source. EVENT_SOURCE is a string that identifies a machine serving as a source of events using fully-qualified domain name, NetBIOS name, or an IP address. This option should be used with /ese (EventSourceEnabled), /aes (AddEventSource), /res (RemoveEventSource), or /un (UserName) and /up (UserPassword) options. /ese[:VALUE] (EventSourceEnabled) Enable or disable an event source. VALUE can be true or false. This option is allowed only if /esa (EventSourceAddress) option is specified. The default value of this option is true. OPTIONS SPECIFIC TO COLLECTOR INITIATED SUBSCRIPTIONS: /aes (AddEventSource) Adds event source specified by the /esa (EventSourceAddress) option, if it is not already a part of the subscription. If the address specified by the /esa (EventSourceAddress) is already a part of the subscription, an error is raised. This option is allowed only if /esa (EventSourceAddress) option is specified. /res (RemoveEventSource) Removes event source specified by the /esa (EventSourceAddress) option, if it is already a part of the subscription. If the address specified by the /esa (EventSourceAddress) is not a part of the subscription, an error is raised. This option is allowed only if /esa (EventSourceAddress) option is specified. /un:USERNAME (UserName) Specifies user credential to be used with the source specified by the /esa (EventSourceAddress) option. This option is allowed only if /esa (EventSourceAddress) option is specified. /up:PASSWORD (UserPassword) Sets the user password for the user credential for the source specified by the /esa (EventSourceAddress) option. This option is allowed only if /un (UserName) option is specified. /tp:TRANSPORTPORT (TransportPort) Port number used by transport when connecting to remote event source. If not specified the port defaults to the standard one used for the given transport name: 80 for http, 443 for https /hn:NAME (HostName) String that specifies the FQDNS name of the local machine. This name is used by remote event source to push back events and must be used for push subscription only. It is used in scenarios involving multi-homed servers that may have multiple FQDNS names. /ct:TYPE (CredentialsType) String that specifies the credential type to be used for remote source access. TYPE may be one of the following values: "default", "negotiate", "digest", "basic" or "localmachine". The default value is "default". /cun:USERNAME (CommonUserName) Sets shared user credential to be used for event sources that do not have their own user credentials. Note: if this option is specified with the /c (Config) option, UserName/UserPassword settings for individual event sources from the configuration file are ignored. If you want to use different credential for a specific event source, you may override this value by specifying the /un (UserName) and /up (UserPassword) for a specific event source on the command line of another ss (set-subscription) command. /cup:PASSWORD (CommonUserPassword) Sets the user password for the shared user credential. When PASSWORD is set to * (asterisk), the password is read from the console. This option is only valid when /cun (CommonUserName) option is specified. OPTIONS SPECIFIC TO SOURCE INITIATED SUBSCRIPTIONS: /ica:THUMBPRINTS (AllowedIssuerCA) Sets the list of issuer certificate thumbprints, in a comma separated list. /as:SUBJECTS (AllowedSubjects) Comma separated list of strings that specifies the DNS names of non-domain computers allowed to initiate subscriptions. The names may be specified using wildcards, like "*.mydomain.com". By default this list is empty. /ds:SUBJECTS (DeniedSubjects) Comma separated list of strings that specifies the DNS names of non-domain computers not allowed to initiate subscriptions. The names may be specified using wildcards, like "*.mydomain.com". By default this list is empty. /adc:SDDL (AllowedSourceDomainComputers) A string which specifies which domain computers are allowed or not to initiate subscriptions, in SDDL format. Default is to allow all domain computers. EXAMPLES: Update subscription configuration named sub1 from a new XML file, WsSelRg2.xml. wecutil ss sub1 /c:%Windir%\system32\WsSelRg2.xml Update subscription configuration named sub2 with multiple parameters: wecutil ss sub2 /esa:myComputer /ese /un:uname /up:* /cm:Normal Update the allowed and denied subject lists for a source initiated subscription: wecutil ss sub3 /as:"*.private.mydomain.com" /ds:"*.public.mydomain.net,*.mydomain.tv" |
| 0x31 | 78.11011 | Configures Windows Event Collector service to make sure subscription can be created and sustained through reboots. This includes the following steps: 1. Enable ForwardedEvents channel if disabled. 2. Set Windows Event Collector service to delay start (Vista and later only). 3. Start Windows Event Collector service if not running. Usage: wecutil { qc | quick-config } [/OPTION:VALUE] Options: You can use either the short (i.e. /q) or long (i.e. /quiet) version of the option names. Options and their values are case-insensitive. /q[:VALUE] (Quiet) VALUE can be true or false. If true, quick-config will not prompt for confirmation. The default value of this option is false. Example: wecutil qc |
| 0x32 | 78.11011 | Failed to configure Windows Event Collector service properly. Please try again later. |
| 0x33 | 78.11011 | Type the password for %1!s!: |
| 0x34 | 78.11011 | Warning: Configuration mode for the subscription is not Custom. Delivery properties are not customizable for such mode. As a result, Delivery node from the provided configuration file will be ignored. |
| 0x35 | 78.11011 | Configuration mode for the subscription is not Custom. Property %1!s! can't be set for this mode. |
| 0x36 | 78.11011 | The service startup mode will be changed to Delay-Start. Would you like to proceed ( %c- yes or %c- no)? |
| 0x37 | 78.11011 | Y |
| 0x38 | 78.11011 | N |
| 0x39 | 78.11011 | Windows Event Collector service was configured successfully. |
| 0x2c | 11 | Displays subscription runtime status.
Usage:
wecutil { gr | get-subscriptionruntimestatus } SUBSCRIPTION_ID
[EVENT_SOURCE [EVENT_SOURCE] ...] [/PurgeInactiveES:Interval]
SUBSCRIPTION_ID
String that uniquely identifies a subscription, specified by the
|
| 0x30 | 11 | /esa:EVENT_SOURCE (EventSourceAddress) Specifies the address of an event source. EVENT_SOURCE is a string that identifies a machine serving as a source of events using fully-qualified domain name, NetBIOS name, or an IP address. This option should be used with /ese (EventSourceEnabled), /aes (AddEventSource), /res (RemoveEventSource), or /un (UserName) and /up (UserPassword) options. /ese[:VALUE] (EventSourceEnabled) Enable or disable an event source. VALUE can be true or false. This option is allowed only if /esa (EventSourceAddress) option is specified. The default value of this option is true. OPTIONS SPECIFIC TO COLLECTOR INITIATED SUBSCRIPTIONS: /aes (AddEventSource) Adds event source specified by the /esa (EventSourceAddress) option, if it is not already a part of the subscription. If the address specified by the /esa (EventSourceAddress) is already a part of the subscription, an error is raised. This option is allowed only if /esa (EventSourceAddress) option is specified. /res (RemoveEventSource) Removes event source specified by the /esa (EventSourceAddress) option, if it is already a part of the subscription. If the address specified by the /esa (EventSourceAddress) is not a part of the subscription, an error is raised. This option is allowed only if /esa (EventSourceAddress) option is specified. /un:USERNAME (UserName) Specifies user credential to be used with the source specified by the /esa (EventSourceAddress) option. This option is allowed only if /esa (EventSourceAddress) option is specified. /up:PASSWORD (UserPassword) Sets the user password for the user credential for the source specified by the /esa (EventSourceAddress) option. This option is allowed only if /un (UserName) option is specified. /tp:TRANSPORTPORT (TransportPort) Port number used by transport when connecting to remote event source. If not specified the port defaults to the standard one used for the given transport name: 80 for http, 443 for https /hn:NAME (HostName) String that specifies the FQDNS name of the local machine. This name is used by remote event source to push back events and must be used for push subscription only. It is used in scenarios involving multi-homed servers that may have multiple FQDNS names. /ct:TYPE (CredentialsType) String that specifies the credential type to be used for remote source access. TYPE may be one of the following values: "default", "negotiate", "digest", "basic" or "localmachine". The default value is "default". /cun:USERNAME (CommonUserName) Sets shared user credential to be used for event sources that do not have their own user credentials. Note: if this option is specified with the /c (Config) option, UserName/UserPassword settings for individual event sources from the configuration file are ignored. If you want to use different credential for a specific event source, you may override this value by specifying the /un (UserName) and /up (UserPassword) for a specific event source on the command line of another ss (set-subscription) command. /cup:PASSWORD (CommonUserPassword) Sets the user password for the shared user credential. When PASSWORD is set to * (asterisk), the password is read from the console. This option is only valid when /cun (CommonUserName) option is specified. OPTIONS SPECIFIC TO SOURCE INITIATED SUBSCRIPTIONS: /ica:THUMBPRINTS (AllowedIssuerCA) Sets the list of issuer certificate thumbprints, in a comma separated list. /as:SUBJECTS (AllowedSubjects) Comma separated list of strings that specifies the DNS names of non-domain computers allowed to initiate subscriptions. The names may be specified using wildcards, like "*.mydomain.com". By default this list is empty. /ds:SUBJECTS (DeniedSubjects) Comma separated list of strings that specifies the DNS names of non-domain computers not allowed to initiate subscriptions. The names may be specified using wildcards, like "*.mydomain.com". By default this list is empty. /adc:SDDL (AllowedSourceDomainComputers) A string which specifies which domain computers are allowed or not to initiate subscriptions, in SDDL format. Default is to allow all domain computers. EXAMPLES: Update subscription configuration named sub1 from its config XML file, WsSelRg2.xml. wecutil ss /c:%Windir%\system32\WsSelRg2.xml Update subscription configuration named sub2 with multiple parameters: wecutil ss sub2 /esa:myComputer /ese /un:uname /up:* /cm:Normal Update the allowed and denied subject lists for a source initiated subscription: wecutil ss sub3 /as:"*.private.mydomain.com" /ds:"*.public.mydomain.net,*.mydomain.tv" |
| 59 entries | ||