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

PowerShell: Discover Domains and Trusts in Microsoft Windows Environment

PS C:\Windows\system32> Get-ADTrust -Filter *Direction : BiDirectionalDisallowTransivity : FalseDistinguishedName : CN=kimconnectschools.org,CN=System,DC=kimconnect,DC=k12,DC=ca,DC=usForestTransitive : TrueIntraForest : FalseIsTreeParent…

Quickbooks Enterprise 6 Data Server Migration

In Quickbooks 2006 and newer, there's a server component that needs to be installed. Thus,…

Fix DFS Replication Problems

1. Remove failed server from Replication Group 2. Right-click "System Volume Information" >> Properties >>…