question

sivavanibasetty-2804 avatar image
0 Votes"
sivavanibasetty-2804 asked XingyuZhao-MSFT edited

Error runnning VB script - WshShell.Exec: The system cannot find the file specified.

Hi,

We are trying to run VB script but getting below error.

C:\Windows\system32>cscript /NoLogo "<C:\Program Files\NSClient++\scripts\check_ad_fsmo.vbs>" DCName "PDC"
<C:\Program Files\NSClient++\scripts\check_ad_fsmo.vbs(30>, 2) WshShell.Exec: The system cannot find the file specified.

Script taken from below link
https://exchange.nagios.org/directory/Plugins/Operating-Systems/Windows-NRPE/check_ad_fsmo-2Evbs/details

Kindly advice how to resolve this error ?

not-supported
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @sivavanibasetty-2804 ,
Unfortunately, vbscript is currently not supported in the Q&A forums, the supported products are listed over here: https://docs.microsoft.com/en-us/answers/products (more to be added later on).
You can consider posting your question here.


0 Votes 0 ·

1 Answer

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

It seems that the script relies on a system tool — Netdom — which is not available on your Operating System. According to documentation, this tool seems to be included into certain Operating Systems only. If you have Windows 10, check these resources: https://www.bing.com/search?q=netdom+windows+10.

To find a replacement, you can ask a question, describing the problem.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.