- 打开 PowerShell 窗口
- 输入命令
Remove-Item (Get-PSReadlineOption).HistorySavePath
- 关闭 PowerShell 窗口,然后重新打开 PowerShell 窗口。
- 此时发现已经清空 PowerShell 会话命令历史记录。
Windows10 清除 PowerShell 会话命令历史记录的方法
最新推荐文章于 2024-01-15 09:47:08 发布
Remove-Item (Get-PSReadlineOption).HistorySavePath