Table of contents
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy RemoteSigned
If an error is reported, execute:
Set-ExecutionPolicy -Scope CurrentUser
Then we will be prompted to enter, we enter the RemoteSigned we just entered.
4. Verify whether it is successful: enter get-ExecutionPolicy, and the system will reply Restricted, indicating that the status is prohibited.
If RemoteSigned is prompted, it means success.
notepad.exe $PROFILE
If an error is reported and the system path cannot be found, execute:
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
Then it's ok,
Write some scripts yourself and add them in,
function aq {
adb disconnect
}
Save and then open powdershell to perform shortcut operations.