Window exception prompt: "To protect your computer, this application has been blocked."

Table of contents

1.Window exception prompt picture:

 2. Additional solutions that need to be implemented for the home version:

3. Local Group Policy Editor (the subsequent home version and professional version will be the same)

 4. After disabling it, restart the computer and the program can run normally.


1.Window exception prompt picture:

 2. Additional solutions that need to be implemented for the home version:

Code:

@echo off
pushd "%~dp0"
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"

pause

 Create a new text file on the local desktop and paste the above code into it

Then save as batch file

 

 When saving, add a .bat after the name, then select "All Files" as the file type below, and then click "Save"

 

 After saving, click Run as administrator on the desktop

Wait for the system to automatically download components

Note : This process takes some time

3. Local Group Policy Editor ( the subsequent home version and professional version will be the same )

Win+R key to open "Run", enter "gpedit.msc", press Enter to open the local policy

  The specific path is opened in order: Computer Configuration--Windows Settings--Security Settings--Local Policies--Security Options

 

 Right-click Properties and disable [User Account Control: Run all administrators in administrator-approved mode]

 4. After disabling it, restart the computer to run the program normally.

Guess you like

Origin blog.csdn.net/qq_55917018/article/details/132446425