[英]Enable Windows command line history
I understand that the Windows Command Line tool does not store the input history issued by the user. 据我所知,Windows命令行工具不存储用户发出的输入历史记录。 Is there a way to automatically enable this, to allow post-mortem examination of the commands issued?
有没有办法自动启用此功能,允许对发出的命令进行事后检查?
Otherwise, is there an alternative to investigate what commands a particular system admin has performed in command line? 否则,是否有其他方法可以调查特定系统管理员在命令行中执行的命令?
The applicable OS are Windows 7, and all versions of Windows Servers 适用的操作系统是Windows 7和所有版本的Windows服务器
I believe by default windows cmd doesn't support this. 我相信默认情况下,Windows cmd不支持此功能。 So the direct answer to your question is that its just impossible.
所以你问题的直接答案是它不可能。
However you can achive the effect you're asking for by using PowerShell. 但是,您可以使用PowerShell实现您所要求的效果。 Look here Disclamer, I didn't use it by myself :)
看看这里 Disclamer,我自己没有用它:)
在命令提示符下按F7
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.