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

sivavani basetty 1 Reputation point


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

Kindly advice how to resolve this error ?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,055 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 110K Reputation points

    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:

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

    0 comments No comments