项目

一般

简介

PowerShell

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