Note that there are some explanatory texts on larger screens.

plurals
  1. POcscript - Invalid procedure call or argument when running a vbs file
    text
    copied!<p>I've been trying to use <a href="http://exchange.nagios.org/directory/Uncategorized/Windows-time-check-against-NTPD-%28check_time-2Evbs%29/details" rel="nofollow noreferrer">check_time.vbs</a> to check the Windows time.</p> <p>Here's the script: <a href="http://pastebin.com/NfUrCAqU" rel="nofollow noreferrer">http://pastebin.com/NfUrCAqU</a></p> <p>The help message could be display:</p> <pre><code>C:\Program Files\NSClient++\scripts&gt;cscript //NoLogo check_time.vbs /? check_time.vbs V1.01 Usage: cscript /NoLogo check_time.vbs serverlist warn crit [biggest] Options: serverlist (required): one or more server names, coma-separated warn (required): warning offset in seconds, can be partial crit (required): critical offset in seconds, can be partial biggest (optional): if multiple servers, else use default least offset Example: cscript /NoLogo check_time.vbs myserver1,myserver2 0.4 5 biggest </code></pre> <p>But I get the following error when running:</p> <pre><code>C:\Program Files\NSClient++\scripts&gt;cscript //NoLogo check_time.vbs 0.asia.pool.ntp.org 20 50 C:\Program Files\NSClient++\scripts\check_time.vbs(53, 1) Microsoft VBScript run time error: Invalid procedure call or argument </code></pre> <p>The screenshot:</p> <p><img src="https://i.stack.imgur.com/Ghm5v.png" alt="enter image description here"></p> <p>Manually execute <code>w32tm</code> still works fine:</p> <p><img src="https://i.stack.imgur.com/zwD3n.png" alt="enter image description here"></p> <p>What might be the cause of this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload