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

sivavani basetty 1 Reputation point
2021-05-04T17:44:55.533+00:00

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 Monitored
Not Monitored
Tag not monitored by Microsoft.
23,912 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 82,746 Reputation points
    2021-05-04T18:01:56.313+00:00

    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.

    No comments