PowerShell¶
- 查看版本
$PSVersionTable
- 设置允许执行脚本
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
- 不存储txt
1)临时:Set-PSReadLineOption -HistorySaveStyle SaveNothing 2)打开psl->notepad $PROFILE(如果提示文件不存在,执行 New-Item -Path $PROFILE -Type File -Force),输入: Set-PSReadLineOption -HistorySaveStyle SaveNothing