删除powershell 历史记录

Remove-Item (Get-PSReadlineOption).HistorySavePath

通过命令提示符进入管理员模式

Start-Process powershell -Verb runAs

Start-Process powershell -Verb runAs -ArgumentList '-NoExit', '-Command', "Set-Location -Path '$PWD'"