DNS Management Pack 10.0.6.0 bug in DS for monitor "Microsoft Windows Server DNS Zone NSLookup"
A script bug has been introduced with MP version 10.0.6.0, causing the monitor "Microsoft Windows Server DNS Zone NSLookup" to fail.
Error: The system cannot find the file specified
Cause: Line 103 - chcp 437 && nslookup.exe...
Can do something like this:
strSYSTEMpath = objShell.ExpandEnvironmentStrings("%systemroot%")
strCommand = strSYSTEMpath & "\System32\chcp.com 437 && NSLookup.exe -timeout=" & CStr(intQueryTimeout) & " -querytype=" & strQueryType & " " & strHostName & " " & strServerName
Jacob Fjeldsted commented
While looking at this problem, can you also look at the DNS zone discovery script: https://systemcenterom.uservoice.com/forums/293064-general-operations-manager-feedback/suggestions/16026715-fix-dns-management-pack
Alex Kim commented
Having the same issue!
There are may more like us: https://social.technet.microsoft.com/Forums/en-US/1a53c873-b64a-4845-a764-1859fcb820f9/windows-dns-nslookup-failed-for-zones-ns-record-the-system-cannot-find-the-file-specified?forum=operationsmanagermgmtpacks.
How long does it take to fix a single like of code?
Ramya Vastrad, SCOM PM commented
We are looking into this issue. Thanks for the feedback.
Bob Cornelissen commented
caused by the change of this command to now run under pwoershell. It does not accept the double ampersand in the command line when run from powershell. change the ampersands for a single semicolon and it will work. Please update the pack asap. Have a customer here with over a thousand alerts in 10 minutes after importing the pack.