Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Failing to get all TXT records using WQL #59

Open
3 tasks done
dev-mega-01 opened this issue Apr 16, 2024 · 0 comments
Open
3 tasks done

Failing to get all TXT records using WQL #59

dev-mega-01 opened this issue Apr 16, 2024 · 0 comments

Comments

@dev-mega-01
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

cimsession.QueryInstances("root\MicrosoftDNS", "WQL", $"SELECT * FROM MicrosoftDNS_TXTType WHERE DomainName = 'example.com'");

Failing to get all records available on specified domain however working if a single TXT record is provided.

Expected behavior

Should return all TXT records using query SELECT * FROM MicrosoftDNS_TXTType WHERE DomainName = 'example.com'"

Actual behavior

Message :	"The WS-Management service cannot process the request. The WMI provider returned an 'invalid parameter' error. "
		MessageId:	"HRESULT 0x8033811e"
		Source	"Microsoft.Management.Infrastructure"	string
		StackTrace	"   at Microsoft.Management.Infrastructure.Internal.Operations.CimSyncEnumeratorBase`1.MoveNext()\r\n   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) in System.Collections.Generic\\List.cs:line 713\r\n   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection) in System.Collections.Generic\\List.cs:line 283\r\n

Error details

No response

Environment data

Microsoft.Management.Infrastructure 2.0.0 
Windows server 2016
ASP.NET Core 3.1

Version

Microsoft.Management.Infrastructure 2.0.0

Visuals

No response

@dev-mega-01 dev-mega-01 changed the title Failing get all TXT records using WQL Failing to get all TXT records using WQL Apr 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant