Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Microsoft VBScript runtime error: Permission denied: 'GetObject'

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-05-2008
Member
 
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.

Reply With Quote
  #2  
Old 05-05-2008
Member
 
Join Date: Sep 2005
Posts: 1,453
maybe this could help a bit : http://support.microsoft.com/kb/251361
Reply With Quote
  #3  
Old 05-05-2008
Member
 
Join Date: May 2006
Posts: 2,794
http://forums.techarena.in/tags/index.php/vbscript/
Reply With Quote
  #4  
Old 05-05-2008
Member
 
Join Date: May 2008
Posts: 10
Thanks for the reply.I tried whatever mentioned in the link..But it didn't work..
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Microsoft VBScript runtime error: Permission denied: 'GetObject'"
Thread Thread Starter Forum Replies Last Post
Microsoft VBscript Runtime Error Message in windows XP HALLBJORN Portable Devices 4 07-12-2010 09:29 AM
Using Internet Explorer gives Microsoft Visual C++ Runtime Library Runtime Error Abejar Windows Software 3 22-04-2009 11:02 PM
Microsoft VBScript runtime error '800a0046' - WMSSERVER Paul MediaCenter 2 01-02-2008 02:06 AM
VBScript runtime error installing MS Win Installer Cleanup Utility Han's Son Vista Setup and Install 1 05-11-2007 01:12 PM
VBScript runtime error: 800A0046 Permission denied: 'GetObject'" SKREECH Active Directory 3 08-03-2006 01:41 AM


All times are GMT +5.5. The time now is 03:38 AM.