Results 1 to 4 of 4

Thread: Microsoft VBScript runtime error: Permission denied: 'GetObject'

  1. #1
    Join Date
    May 2008
    Posts
    10

    Microsoft VBScript runtime error: Permission denied: 'GetObject'

    Hi,
    I am trying to run the following program in a Windows 2000 machine.I am getting the error as " Microsoft VBScript runtime error: Permission denied: 'GetObject'".Please suggest me something.
    Option Explicit
    Dim refWMIService
    Dim objComputer
    Dim colComputer
    'get a reference to the SWbemServices object
    set refWMIService = GetObject("winMgmts:\\ipaddress")
    Set colComputer = refWMIService.ExecQuery _
    ("Select * from Win32_ComputerSystem")

    For Each objComputer in colComputer
    Wscript.Echo objComputer.UserName
    Next

    The purpose of the above program is to output the logged on user for the computer being queried.

  2. #2
    Join Date
    Sep 2005
    Posts
    1,481

  3. #3
    Join Date
    May 2006
    Posts
    2,819

  4. #4
    Join Date
    May 2008
    Posts
    10
    Thanks for the reply.I tried whatever mentioned in the link..But it didn't work..

Similar Threads

  1. Microsoft VBscript Runtime Error Message in windows XP
    By HALLBJORN in forum Portable Devices
    Replies: 4
    Last Post: 07-12-2010, 09:29 AM
  2. Replies: 3
    Last Post: 22-04-2009, 11:02 PM
  3. Replies: 2
    Last Post: 01-02-2008, 02:06 AM
  4. VBScript runtime error installing MS Win Installer Cleanup Utility
    By Han's Son in forum Vista Setup and Install
    Replies: 1
    Last Post: 05-11-2007, 01:12 PM
  5. Replies: 3
    Last Post: 08-03-2006, 01:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •