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: Export Event Logs by a Certain Date Range

# User defined variables $daysLimit=7 $startdate=(get-date).adddays(-$daysLimit) $computername=$env:computername $logName='Application' $filterTypes='Error','Warning' $logPath="c:\temp\eventlogs-from-$($startdate.tostring('yyyy-MM-dd'))-to-$((get-date).tostring('yyyy-MM-dd')).csv" # Get the event logs…

Quick Script to Test SharePoint Online Credentials

$principle = "[email protected]" $password = 'PASSW0RT' $sharePointUrl = "https://SOMESHAREPOINT.COM/SitePages/Home.aspx" $credential=New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $principle,$(ConvertTo-securestring $password…

PowerShell: Compare File Counts of 2 Directories

$folder1='C:\Temp' $folder2='C:\Temp2' $username=$null $password=$null function compareFileCounts{ param($folder1,$folder2,$mountAsUser,$mountAsPassword) function mountPathAsDrive($path,$driveLetter,$mountAsUser,$mountAsPassword){ function convertPathToUnc($path,$computername=$env:computername,$credentials=$null){ $pathIsUnc=$path -match '^\\\\' $pathIsReachable=if($credentials){test-path…