管理员身份运行cmd。

禁用: 在提示符后面输入bcdedit.exe /set nointegritychecks on后回车;

注意:如提示失败则是因secure boot policy设置保护引起,进入BIOS disable secure boot policy

启用: 在提示符后面输入bcdedit.exe /set nointegritychecks off后回车