How to Fix: WMI query fails with "A security package specific error occurred." Exception 80070721
WMI query fails with exception 80070721, resolving issue by appending DNS suffix.
📋 Table of Contents
A security package specific error occurred with exception code 80070721 when executing a WMI query on server srv01 in domain first.nl. This issue affects users who need to retrieve information about the local computer using WMI commands. The frustrating part is that this error occurs even though the DNS suffix (.second.nl) is correctly set up for the server.
To resolve this problem, we will explore the root causes of the error and provide two alternative methods to fix it: appending the DNS suffix in the Advanced TCP/IP Settings and using a different credential. We will also explain why the WMI query works when appending the DNS suffix.
⚠️ Common Causes
- The primary reason for this error is that the Windows operating system on server srv01 does not recognize its own DNS suffix (.first.nl) as the primary DNS suffix. This causes the WMI query to fail because it cannot find the correct DNS suffix to use for resolving hostnames.
- Another possible cause of this error could be a misconfiguration in the DNS settings or an issue with the Windows operating system's ability to resolve hostnames.
✅ Best Solutions to Fix It
Applying the DNS suffix in Advanced TCP/IP Settings
- Step 1: Open the Command Prompt as an administrator on server srv01 and navigate to the network adapter properties. Right-click on the network adapter and select Properties.
- Step 2: In the Properties window, click on Internet Protocol Version 4 (TCP/IPv4) and then click on Properties again. In the Properties window, select the Advanced tab and click on DNS Suffixes.
- Step 3: Add the DNS suffix (.second.nl) to the list of DNS suffixes and click OK to save the changes. This will allow the WMI query to use the correct DNS suffix when resolving hostnames.
Using a different credential
- Step 1: Open PowerShell on server srv01 and execute the following command: Get-WmiObject Win32_ComputerSystem -Credential (New-Object System.Management.Automation.PSCredential('second.nl ester', (Get-Credential 'second.nl ester').Password)). This will allow you to use a different credential for the WMI query.
- Step 2: Note that using a different credential may not be the most secure option and should only be used when necessary.
💡 Conclusion
By applying the DNS suffix in Advanced TCP/IP Settings or using a different credential, you can resolve the security package specific error with exception code 80070721 and successfully execute WMI queries on server srv01.
❓ Frequently Asked Questions
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Fix Pc crashes shortly after launching game (rainbow six siege). Compl
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: New PC build- no signal and no clue
Fix New PC build- no signal and no clue. Complete troubleshooting guid