text stringlengths 0 4.23k |
|---|
<maxSize>9000000</maxSize> |
</logging> |
<publishing> |
</publishing> |
</channel> |
Examples |
List the names of all logs: |
wevtutil el |
Display configuration information about the System log on the local computer in XML format: |
wevtutil gl System /f:xml |
Use a configuration file to set event log attributes (see Remarks for an example of a configuration file): |
wevtutil sl /c:config.xml |
Display information about the Microsoft-Windows-Eventlog event publisher, including metadata about the events that the publisher can raise: |
wevtutil gp Microsoft-Windows-Eventlog /ge:true |
Install publishers and logs from the myManifest.xml manifest file: |
wevtutil im myManifest.xml |
Uninstall publishers and logs from the myManifest.xml manifest file: |
wevtutil um myManifest.xml |
Display the three most recent events from the Application log in textual format: |
wevtutil qe Application /c:3 /rd:true /f:text |
Display the status of the Application log: |
wevtutil gli Application |
Export events from System log to C:\backup\system0506.evtx: |
wevtutil epl System C:\backup\system0506.evtx |
Clear all of the events from the Application log after saving them to C:\admin\backups\a10306.evtx: |
wevtutil cl Application /bu:C:\admin\backups\a10306.evtx |
Archive the specified (.evtx) log file in a self-contained format. A subdirectory (LocaleMetaData) is created and all locale-specific information is saved in that subdirectory: |
wevtutil archive-log "C:\backup\Application.evtx" /locale:en-us |
where |
Displays the location of files that match the given search pattern. |
Syntax |
where [/r <Dir>] [/q] [/f] [/t] [$<ENV>:|<Path>:]<Pattern>[ ...] |
Parameters |
Parameter |
Description |
/r <Dir> |
Indicates a recursive search, starting with the specified directory. |
/q |
Returns an exit code (0 for success, 1 for failure) without displaying the list of matched files. |
/f |
Displays the results of the where command in quotation marks. |
/t |
Displays the file size and the last modified date and time of each matched file. |
[$<ENV>:|<Path>:]<Pattern>[ ...] |
Specifies the search pattern for the files to match. At least one pattern is required, and the pattern can include wildcard characters (* and ?). By default, where searches the current directory and the paths that are specified in the PATH environment variable. You can specify a different path to search by using the format $ENV:Pattern (where ENV is an existing environment variable containing one or more paths) or by using the format Path:Pattern (where Path is the directory path you want to search). These optional formats should not be used with the /r command-line option. |
/? |
Displays help at the command prompt. |
Remarks |
Examples |
To find all files named Test in drive C of the current computer and its subdirectories, type: |
where /r c:\ test |
To list all files in the Public directory, type: |
where $public:*.* |
To find all files named Notepad in drive C of the remote computer, Computer1, and its subdirectories, type: |
where /r \\computer1\c notepad.* |
whoami |
Displays user, group and privileges information for the user who is currently logged on to the local system. If used without parameters, whoami displays the current domain and user name. |
Syntax |
whoami [/upn | /fqdn | /logonid] |
whoami {[/user] [/groups] [/priv]} [/fo <Format>] [/nh] |
whoami /all [/fo <Format>] [/nh] |
Parameters |
Parameter |
Description |
/upn |
Displays the user name in user principal name (UPN) format. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.