Posted On April 21, 2022

Windows UAC Error This App has been blocked for your protection mmc.exe taskschd.msc

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Windows UAC Error This App has been blocked for your protection mmc.exe taskschd.msc
Error Message:
User Account Control

This App has been blocked for your protection.
A administrator has blocked you from running this app. For more information, contract the administrator.

mmc.exe

Publisher: Unknown
File origin: Hard drive on this computer
"C:\Windows\System32\mmc.exe" "C:\Windows\system32\taskschd.msc" /s
Resolution:

Option 1: Disable UAC

$uacRegKeyHive='REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System'
$keyName='EnableLUA'
$disable=0

Set-ItemProperty -Path $uacRegKeyHive -Name $keyname -value $disable
Restart-Computer -force

Option 2: Change Cryptographic Service run-as Account

$serviceName='CryptSvc'
$serviceAccount='NT AUTHORITY\NETWORK SERVICE'
$servicePassword=$null
$serviceStart='Automatic'
$service=gwmi win32_service -filter "name='$serviceName'"
$service.change($null,$null,$null,$null,$serviceStart,$null,$serviceAccount,$servicePassword)
sc.exe failure $service.name reset= 0 actions= restart/5000

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Microsoft IIS-7 Application Pools

Why run applications inside Application pools? It's a recommended practice to isolate applications even if…

HAProxy Example for SSH & OpenVNP forwarding

# Source: https://limbenjamin.com/articles/running-https-ssh-vpn-on-port-443.html   global tune.ssl.default-dh-param 2048   defaults timeout connect 5000 timeout client 50000 timeout…

PowerShell: Connecting via WinRM with a Timeout

$credentials=get-credential $sessionTimeout=New-PSSessionOption -OpenTimeout 120000 # 2 minutes $sessionIncludePort=New-PSSessionOption -IncludePortInSPN -OpenTimeout 120000 $session=if($credentials){ try{ New-PSSession -ComputerName…