简体   繁体   English

启用Windows命令行历史记录

[英]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.

相关问题 从Matlab执行时缺少Windows命令行历史记录 - Missing windows command line history when executed from Matlab 为什么 Windows 控制台会在一段时间后丢失命令行历史记录(向上箭头)? - Why do Windows consoles lose command-line history (up arrow) after a time? 如何为Git启用命令行 - How to enable command line for Git 如何在python解释器中启用vim风格的命令行编辑在cygwin环境中安装anaconda windows - How to enable vim style command line editing in python interpreter in anaconda windows install in cygwin environment 通过命令行设置 Windows 服务的“启用错误停止操作”复选框 - Setting a Windows Service's 'Enable actions for stops with errors' check box via command line 从SSH命令行历史记录中删除特定的历史记录 - Remove specific history from SSH command line history 在Windows命令解释器中历史记录缓存的押韵或原因? - Rhyme or reason to history buffer in Windows command interpreter? 是否从程序修改Windows命令提示符历史记录? - Modify Windows Command Prompt History from a Program? Heroku Toolbelt Windows - Rails 控制台命令历史 - Heroku Toolbelt Windows - Rails Console Command History 在 Windows 批处理文件中禁用命令历史记录 - Disable command history in a windows batch file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM