BackupEventlog method of the Win32_NTEventlogFile Class
Applies to: desktop apps only
The BackupEventLog method saves the specified event log to a backup file. If a backup file with the same name exists, the method fails.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 BackupEventlog( [in] string ArchiveFileName );
Parameters
- ArchiveFileName [in]
-
Path and file name of the backup file to be created.
Note If the ArchiveFileName comes from a source that you do not know or trust, then this parameter value should be verified before using it in a call to BackupEventlog.
Return value
| Return code | Description |
|---|---|
|
Success |
|
Privilege missing |
|
Invalid parameter |
|
Archive file name already exists. This value is returned starting with Windows Vista.
|
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/9/2012