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,476

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

  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, 10:29 AM
  2. Replies: 3
    Last Post: 22-04-2009, 11:02 PM
  3. Replies: 2
    Last Post: 01-02-2008, 03: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, 02:12 PM
  5. Replies: 3
    Last Post: 08-03-2006, 02:41 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,661,054.28794 seconds with 17 queries