`

Windows 模拟生成日志 命令

 
阅读更多

转自http://technet.microsoft.com/en-us/library/bb490899.aspx,用来备份

 

例子:

eventcreate /t error /id 100 /l application /d "Create event in application log" 

eventcreate /t information /id 1000 /so winmgmt /d "Create event in WinMgmt source" 
eventcreate /t error /id 2001 /so winword /l application /d "new src Winword in application log" 
eventcreate /s server /t error /id 100 /l application /d "Remote machine without user credentials" 
eventcreate /s server /u user /p password /id 100 /t error /l application /d "Remote machine with user credentials" 
eventcreate /s server1 /s server2 /u user /p password /id 100 /t error /so winmgmt /d "Creating events on Multiple remote machines" 
eventcreate /s server /u user /id 100 /t warning /so winmgmt /d "Remote machine with partial user credentials"

 

语法:

Parameters

/s   Computer   Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.

/u   Domain \ User   Runs the command with the account permissions of the user specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command.

/p   Password   Specifies the password of the user account that is specified in the /u parameter.

/l { APPLICATION | SYSTEM Specifies the name of the event log where the event will be created. The valid log names are APPLICATION and SYSTEM.

/so   SrcName   Specifies the source to use for the event. A valid source can be any string and should represent the application or component that is generating the event.

/t { ERROR | WARNING | INFORMATION | SUCCESSAUDIT | FAILUREAUDIT Specifies the type of event to create. The valid types are ERROR, WARNING, INFORMATION, SUCCESSAUDIT, and FAILUREAUDIT.

/id   EventID   Specifies the event ID for the event. A valid ID is any number from 1 to 65535.

/d   Description   Specifies the description to use for the newly created event.

/? Displays help at the command prompt.

分享到:
评论

相关推荐

    windowsnt 技术内幕

    备份磁带集的循环 理解备份记录和存储循环 设置备份选项 使用Windows NT备份恢复数据 为一次计划好的备份工作创建一个备份脚本文件 使用AT命令调度一次备份 NT备份程序在并行设备上的使用 Windows NT虚拟内存模型...

    smpp等短信协议模拟器

    目录: bin 存放所有运营时所用Jar文件。... 在系统启动后,自动会在当前目录下生成相关日志文件。 日志名称为当天的日期。例如:20050120.log。 退出: 如果需要退出系统,请输入指令:exit。

    Windows环境下32位汇编语言程序设计_随书光盘

    Windows 日志记录钩子的例子 - 监听键盘动作 Chapter12\Counter ;有问题的程序 - 一个计数程序 Chapter12\Thread ;用多线程的方式解决上一个程序的问题 Chapter12\Event ;使用事件对象 Chapter12\ThreadSynErr ;一...

    操作系统课程设计-进程调度程序的实现(JAVA语言)

    2、设计模拟指令格式,并以文件形式存储,程序能够读取文件并自动生成指令序列。 3、根据文件内容,建立模拟进程队列,并能采用时间片轮转调度算法对模拟进程进行调度。 任务要求: 1、进程的个数,进程的内容(即...

    SMPPSimulator

    SimpleUMS-2为SimpleTeam所提供的第二代网络通信集成系统。... 在系统启动后,自动会在当前目录下生成相关日志文件。 日志名称为当天的日期。例如:20050120.log。 退出: 如果需要退出系统,请输入指令:exit。

    注册表批量修改权限命令

    此屏幕保护程序不仅精确模拟“蓝屏”,而且也模拟重新启动(完成 CHKDSK),并可在 Windows NT 4、Windows 2000、Windows XP、Server 2003 和 Windows 9x 上工作。 CacheSet CacheSet 是一个允许您利用 NT 提供的...

    Windows Sysinternals Suite v2019.06.29.zip

    此屏幕保护程序不仅精确模拟“蓝屏”,而且也模拟重新启动(完成 CHKDSK),并可在 Windows NT 4、Windows 2000、Windows XP、Server 2003 和 Windows 9x 上工作。 CacheSet CacheSet 是一个允许您利用 NT 提供的...

    Sysinternals 微软系统监控实用工具

    此屏幕保护程序不仅精确模拟“蓝屏”,而且也模拟重新启动(完成 CHKDSK),并可在 Windows NT 4、Windows 2000、Windows XP、Server 2003 和 Windows 9x 上工作。 CacheSet v1.0(2006 年 11 月 1 日) CacheSet ...

    SysinternalsSuite

     此屏幕保护程序不仅精确模拟“蓝屏”,而且也模拟重新启动(完成 CHKDSK),并可在 Windows NT 4、Windows 2000、Windows XP、Server 2003 和 Windows 9x 上工作。  CacheSet  CacheSet 是一个允许您利用 NT ...

    ES-workshop:事件源研讨会的迭代零

    PostSharp for AOP提供诸如日志记录之类的功能 构建和测试解决方案 NUnit和Rhino模拟用于单元和集成测试 OctoPack将Nuget生成为要部署的工件 #前提条件您需要在系统上安装以下组件 Visual Studio 2013专业版或更高...

    调试开发工具集

    此屏幕保护程序不仅精确模拟“蓝屏”,而且也模拟重新启动(完成 CHKDSK),并可在 Windows NT 4、Windows 2000、Windows XP、Server 2003 和 Windows 9x 上工作。 CacheSet CacheSet 是一个允许您利用 NT 提供的...

    oracle数据库修复

    支持从ASM中直接抽取出数据文件和其他任意存储在ASM中的文件(包括控制文件、日志文件和归档日志等),即使相关的磁盘组不能成功mount 支持的Oracle数据库版本包括7,8i,9i,10g,11g 支持多种平台的数据库,包括AIX...

    sysinternals 工具集合 (20090226版)

    此外,它还对事件日志和 Windows 2000/XP 休眠文件(当休眠笔记本电脑时保存系统内存的地方)进行碎片整理。  Process Monitor  进程监视器,这是一个高级的Windows监视工具,不但可以监视进程/线程,还可以关注到...

    Git权威指南PDF完整版

    11.4.3 浏览日志:git log/ 146 11.4.4 差异比较:git diff/ 150 11.4.5 文件追溯:git blame/ 151 11.4.6 二分查找:git bisect/ 152 11.4.7 获取历史版本/ 156 第12章 改变历史/ 157 12.1 悔棋/ 157 12.2 多步悔棋...

    微软Sysinternals Suite工具包 2018.12.18 官方版.zip

    此屏幕保护程序不仅精确模拟“蓝屏”,而且也模拟重新启动(完成 CHKDSK),并可在 Windows NT 4、Windows 2000、Windows XP、Server 2003 和 Windows 9x 上工作。CacheSet CacheSet 是一个允许您利用 NT 提供的...

    MaxDOS 5.6s U盘版

    很好用的U盘系统盘制作工具这次出的所谓MaxDOS 密码读取工具,其实只是读取了安装日志LOG里的设置值,并不是真正的MD5值被编译,本来不想保留这个东西的,但是如果不保留这个LOG文件的话,又无法完成自动卸载,怕有些人又...

    Visual C++程序开发范例宝典(光盘) 第四部分

    实例077 公交线路模拟 第3章 图形技术 3.1 绘制图形 实例078 绘制正弦曲线 实例079 绘制艺术图案 实例080 画图程序 实例081 绘制立体模型 实例082 利用IFS算法绘制自然景物 3.2 图像预览 实例083 图片...

    Visual C++程序开发范例宝典(光盘) 第八部分

    实例077 公交线路模拟 第3章 图形技术 3.1 绘制图形 实例078 绘制正弦曲线 实例079 绘制艺术图案 实例080 画图程序 实例081 绘制立体模型 实例082 利用IFS算法绘制自然景物 3.2 图像预览 实例083 图片...

Global site tag (gtag.js) - Google Analytics