win11 allows the use of script Set-ExecutionPolicy

Table of contents

Set-ExecutionPolicy RemoteSigned

notepad.exe $PROFILE


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.

Solution to failure in executing set-ExecutionPolicy RemoteSigned_Mr. Xiao Liu’s hard-working blog-CSDN blog

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.

Guess you like

Origin blog.csdn.net/jacke121/article/details/133200214