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

Install FreePBX

Add port UDP 5060 NAT entry in firewallSet up new user (extension)Applications >> Extensions >>…

Symantec Antivirus 10.1: How to delete a Quarantined file

Double-click on the SAV shield icon in your Notification Area (lower right-hand corner of screen).From…

Remove Bloatware on a Windows 10 Default Installation

1. Run PowerShell as Administrator 2. Issue these commands to download the Windows10Debloater script: #…
Other project: DragonCoin.com