Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
scripts
hosting
jscript
remote
scripting.wsh
scriptlets
vbscript
virus.discussion
  
 
date: Tue, 1 Jul 2008 00:56:01 -0700,    group: microsoft.public.scripting.wsh        back       


Classes and members disappear when limited user   
I'd like to be able to see Win32_PhysicalMedia information when logged in as
a Limited User in XP (not admin rights). It works ok when logged in as Admin,
WMIDiag has just given a clean bill of health, and Win32_DiskDrive class
produces information correctly, but Win32_PhysicalMedia produces a count of 0
for this code
set WMI = GetObject("WinMgtmts:/root/cimv2")
set objs = WMI.InstancesOf("Win32_PhysicalMedia")
wscript.echo objs.count

Alternatively, if the hard disk serial number as found on the SerialNumber
property of the physical drives is available in another class which I can
read as a limited user please let me know. I am not attempting to write to
any property with WMI, but I can't read this when running as a Limited User.

Interestingly, DiskDrive misses out Signature property, which would do for
my application when run as a Limited User but is present when run from an
Admin account.
date: Tue, 1 Jul 2008 00:56:01 -0700   author:   mrfixitfox

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us