Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 173479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:21:06+00:00 2026-05-11T13:21:06+00:00

I have an interesting/annoying problem with some VBScripts running on Windows 2003 Server (they

  • 0

I have an interesting/annoying problem with some VBScripts running on Windows 2003 Server (they run fine on XP).

The scripts basically periodically call WMI objects to extract performance information and write it to a log file. It’s started by Scheduled Tasks at 12:05 each morning and runs until midnight (or would if it didn’t keep crashing). It’s owned by Administrator and the task is 'cscript xx.vbs blah blah blah'.

Sometimes it runs for hours, sometimes only a few minutes. The calls are of the form:

set objWMI = getObject('winmgmts:\\.\root\cimv2') :   :   : do lots of times:     set itemCpu = wmi.get('Win32_PerfRawData_PerfOS_Processor.Name='_Total'') 

The error it comes back with is a dialog box stating that the remote procedure call failed to execute but no extra information (it does give a 32-bit hex number and I’ll update this question with it next time it happens but my Google searches turned up very generic pages so I’m not sure the code will help).

It also used to crash out (same error) with the following line but I haven’t seen a problem with this one since I changed it to use Win32_Perf Raw Data_PerfOS_Memory.

set colMem = wmi.execQuery('select AvailableKBytes' & _     ' from Win32_PerfFormattedData_PerfOS_Memory',,48) 

I gather it’s not network-related since it’s on the same machine.

I’ve also tried to set objWMI to nothing and do another getObject every time through the loop but that didn’t help.

One other possible problem, it’s actually running inside VMWare Workstation (but so is the XP) – next week I’ll get a physical-PC setup of Win2k3 running to test it there.

The strange thin is, it sometimes runs for hours without problems, collecting the data and sending it to the log file. Other times, it crashes in ten minutes.

Any ideas from the Windows gurus out there among us?

UPDATE:

Okay, it finally failed again. Here’s my little effort at screen capture:

 +-------------------------------------------------+ |  Windows Script Host                          |X| +-------------------------------------------------+ |  /   Script:   C:\Program Files\blah\blah.vbs  | |  /\   Line:     271                             | |       Char:     2                               | |       Error:    The remote procedure call       | |                 failed and did not execute.     | |       Code:     800706BF                        | |       Source:   SWbemServicesEx                 | +-------------------------------------------------+ 

Line 271 is:

set itemCpu = wmi.get('Win32_PerfRawData_PerfOS_Processor.Name='_Total'') 

with wmi having been previously set with:

set wmi = getObject('winmgmts:\\.\root\cimv2') 

(this one is continuously being re-created inside the loop, so I don’t think it’s an issue with the RPC connection going stale).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:21:06+00:00Added an answer on May 11, 2026 at 1:21 pm

    The error 1722(0x6BF) is : The RPC server is unavailable.

    One suggestions : free all objects explicitly in your script

    To perform best diagnose try to sniff your network using Microsoft Network Monitor 3.2 and search for issue.(view this help How to capture network traffic with Network Monitor)

    Good look.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 105k
  • Answers 105k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It should go on the ul/ol, cf. http://www.w3.org/TR/CSS2/generate.html#list-style Edit: Near… May 11, 2026 at 8:45 pm
  • Editorial Team
    Editorial Team added an answer select_tag takes an options hash as its final parameter, in… May 11, 2026 at 8:45 pm
  • Editorial Team
    Editorial Team added an answer I suspect overflow:auto in .mybox but I can't test it… May 11, 2026 at 8:45 pm

Related Questions

So we have this web app where we support UTF8 data. Hooray UTF8. And
For some reason, I am having trouble thinking of a good way to rewrite
Reading about the G.729 codec , I found this interesting tidbit about Comfort Noise
I'm using Visual Studio 2008 Team System with SP1, and I've noticed an annoying

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.