text
stringlengths
0
4.23k
<Address>
<Srcenabled>
<Srcenabled>
<Username>
<Password>
<Desc>
<Uri>
<Uri>
<Configmode>
<Configmode>
<Expires>
<Expires>
yyyy-MM-ddThh:mm:ss[.sss][Z]
<Query>
<Query>
<Dialect>
<Transportname>
<Transportport>
<Deliverymode>
<Deliverymode>
<Deliverymax>
<Deliverytime>
<Deliverytime>
<Heartbeat>
<Heartbeat>
<Content>
<Content>
<Locale>
<Locale>
<Readexist>
<Readexist>
<Readexist>
<Readexist>
<Logfile>
<Publishername>
<Enableport>
<Enableport>
<Enableport>
<Hostname>
<Type>
<Type>
<Comusername>
<Compassword>
<Compassword>
<Quiet>
<Quiet>
<Quiet>
Examples
To show the contents of a configuration file, type:
<Subscription xmlns=https://schemas.microsoft.com/2006/03/windows/events/subscription>
<Uri>https://schemas.microsoft.com/wbem/wsman/1/windows/EventLog</Uri>
<!-- Use Normal (default), Custom, MinLatency, MinBandwidth -->
<ConfigurationMode>Normal</ConfigurationMode>
<Description>Forward Sample Subscription</Description>
<SubscriptionId>SampleSubscription</SubscriptionId>
<Query><![CDATA[
<QueryList>
<Query Path=Application>
<Select>*</Select>
</Query>
</QueryList>]]
</Query>
<EventSources>
<EventSource Enabled=true>
<Address>mySource.myDomain.com</Address>
<UserName>myUserName</UserName>
<Password>*</Password>
</EventSource>
</EventSources>
<CredentialsType>Default</CredentialsType>
<Locale Language=EN-US></Locale>
</Subscription>
To view the output configuration information for a subscription named sub1, type:
wecutil gs sub1
Example output:
EventSource[0]:
Address: localhost
Enabled: true
Description: Subscription 1
Uri: wsman:microsoft/logrecord/sel
DeliveryMode: pull
DeliveryMaxSize: 16000
DeliveryMaxItems: 15
DeliveryMaxLatencyTime: 1000
HeartbeatInterval: 10000
Locale:
ContentFormat: renderedtext
LogFile: HardwareEvents
To display the runtime status of a subscription named sub1, type:
wecutil gr sub1
To update the subscription configuration named sub1 from a new XML file called WsSelRg2.xml, type:
wecutil ss sub1 /c:%Windir%system32WsSelRg2.xml
To update the subscription configuration named sub2 with multiple parameters, type:
wecutil ss sub2 /esa:myComputer /ese /un:uname /up:* /cm:Normal
To delete a subscription named sub1, type:
wecutil ds sub1
wevtutil
Enables you to retrieve information about event logs and publishers. You can also use this command to install and uninstall event manifests, to run queries, and to export, archive, and clear logs.