vbs-ad-health-report icon indicating copy to clipboard operation
vbs-ad-health-report copied to clipboard

Error when running script

Open jdewoody71 opened this issue 6 years ago • 3 comments

Hello,

I've run this script on a Windows 2016 & 2008 R2 DC and get the same error both times:

Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\username\Desktop\ADHealthCheck.vbs(269, 2) SWbemServicesEx: Not found

At that point the script dies. The only section I've modified is the email settings. Any suggestions?

jdewoody71 avatar Jul 19 '18 16:07 jdewoody71

Even I am getting the same error. Can you please help to resolve?

shann1976 avatar May 03 '21 04:05 shann1976

I was getting this error as well. My issue was that my DC's aren't running DNS, so when it tries to do the service status check, there is no service to check. Commenting out lines 142 and 161 fixed it for me.

adminwillie avatar May 24 '21 20:05 adminwillie

I was getting this error as well. My issue was that my DC's aren't running DNS, so when it tries to do the service status check, there is no service to check. Commenting out lines 142 and 161 fixed it for me.

Same problem here. I don't think it's the DNS. I run it on a DC with DNS services etc. and returns the same problem.

Something else might be.

MichalisDBA avatar May 27 '21 11:05 MichalisDBA