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

PowerShell: Copying Only Files From a Folder

Function (snippet): function copyOnlyFiles{ param( [Parameter(Mandatory=$true)][string]$sourceFolder, [Parameter(Mandatory=$true)][string]$destinationFolder ) $totalSizeBytes=0; # Get-ChildItem "C:\Temp"|?{!$_.PSIsContainer}|%{robocopy "C:\Temp" "C:\TempCopy" $_}…

PowerShell: How To Install VMM Agent on Hyper-V Nodes

# Update these variables to match your system $appName='Microsoft System Center Virtual Machine Manager Agent…

PowerShell: Nesting Functions Inside Functions

Demo 1: calling a function from within another function function A{ Param($functionToCall) Write-Host "Calling function:…