Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

WMI script error - code 800A0046

 
   Soft32 Home -> Win4 Arch -> General Discussion RSS
Next:  software setup  
Author Message
Elie Haddad

External


Since: Mar 27, 2007
Posts: 1



(Msg. 1) Posted: Tue Mar 27, 2007 11:01 am
Post subject: WMI script error - code 800A0046
Archived from groups: microsoft>public>windowsxp>general (more info?)

Hi,
i'm using a wmi script that check the floppy and cdrom on PC.
the code is as follow:

[CODE]
strComputer = Inputbox("Enter computer name:")
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colDisks = objWMIService.ExecQuery ("Select * from Win32_LogicalDisk")
For Each objDisk in colDisks
Select Case objDisk.DriveType
Case 2
strFloppyExist = objDisk.DeviceID
wscript.echo "Floppy Drive: " & strFloppyExist
Case 5
strCDExist = objDisk.DeviceID
wscript.echo "CDROM Drive: " & strCDExist
Case Else
'Wscript.Echo "Drive type could not be determined."
End Select
Next
[/CODE]

when running this code on any local pc it works fine.
But when connecting to a remote pc on the LAN it gives the following error:

Error: Permission Denied:'Get Object'
Code: 800A0046

By the way i'm an administrator user on all pcs.

Can u help me please to solve this problem?
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Error Code Help Please - Please can you help me. My computer keeps freezing, then it shuts down and restarts. I get a pop up saying the system...

error code 7 - I have acquired an older computer and have managed to erase the old files and old windows running system so I can load...

Error Code 0x80004005 error - Hello, When booting XP Professional I got the above error code. At the MS Help and support center I followed the..

Error code 1635 - ? - I installed the ‘Live’ version of MSN Messenger which didn’t seem to agree with the old Internet Explorer..

Error code 000D - I am trying to install a program from Roxio and keep getting this error message error code 000D.Can anyone suggest wha...

error code help needed... - I keep getting this error code when trying to log on and I have no idea what they mean. Just the blue screenof death.....
       Soft32 Home -> Win4 Arch -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]