Posted On March 31, 2019

Error: Windows cannot load extensible counter DLL MSSQLSERVER, the first DWORD in data section is the Windows error code.

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Error: Windows cannot load extensible counter DLL MSSQLSERVER, the first DWORD in data section is the Windows error code.
 Resolution:
 
  • Give everyone read/execute access to binn\sqlctr80.dll or msmdctr90.dll
 
# Set file
$sqlctr = 'd:\pathto\sql\installation\binn\sqlctr80.dll'

# Set properties
$identity = "BUILTIN\Everyone"
$fileSystemRights = "ReadAndExecute"
$type = "Allow"

# Create new rule
$NewAcl = Get-Acl -Path $sqlctr
$fileSystemAccessRuleArgumentList = $identity, $fileSystemRights, $type
$fileSystemAccessRule = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $fileSystemAccessRuleArgumentList

# Apply new rule
$NewAcl.SetAccessRule($fileSystemAccessRule)
Set-Acl -Path $sqlctr -AclObject $NewAcl
  • Check result:
(Get-ACL -Path $sqlctr).Access | Format-Table IdentityReference,FileSystemRights,AccessControlType,IsInherited,InheritanceFlags -AutoSize

Leave a Reply

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

Related Post

Windows Update Error Code 0x80244022

Symptom: There were some problems installing updates, but we'll try again later. If you keep…

Windows: Disable Low Disk Space Warning

To disable these balloon messages follow the steps below: 1. Open the Registry Editor by…

PowerShell: Kill a Windows Service Forcefully

# killService.ps1 $serviceName='vmms' function killService($serviceName='Spooler',$restart=$false){ $processId=Get-WmiObject -Class Win32_Service -Filter "Name LIKE '$serviceName'"|Select-Object -ExpandProperty ProcessId if($processId.count…