Sorry for the verbose nature of this note, but I couldnt really make it any shorter .
platform win2000 and XP
I am having a problem with WMI, and getting consistant results from the admin account and from the user account.
I run a C++ program, modelled on the wbemtest application in the SDK.
Under the admin account I get all the correct information I require.
However under the user account ( user privelage only), I get slightly different results.
These entries were retrieved under an admin account
key is (Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE0")
Signature = 10499291 (0xA034DB)
key is (Win32_OperatingSystem.Name="Microsoft Windows XP Professional|C:\\WINDOWS|\\Device\\Harddisk0\\Partition1")=
Name= "Microsoft Windows XP Professional|C:\WINDOWS|\Device\Harddisk0\Partition1"
SerialNumber="55274-337-4885514-22195"
SystemDevice="\Device\HarddiskVolume1"
key is (Win32_PhysicalMedia.Tag="\\\\.\\PHYSICALDRIVE0")=
SerialNumber=" 117URW"
PNPDeviceID="<NULL>"
The same entries retrieved under a user account are as follows :-
key is (Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE0")
Signature=<null>
could not get key,(Win32_OperatingSystem.Name="Microsoft Windows XP Professional|C:\\WINDOWS|\\Device\\Harddisk0\\Partition1")
could not get key,(Win32_PhysicalMedia.Tag="\\\\.\\PHYSICALDRIVE0")
under admin account, I run wbemtest and retrieve the entire win32_operating system class, the name attribute returned is
Name = "Microsoft Windows XP Professional|C:\\WINDOWS|\\Device\\Harddisk0\\Partition1";
under the user account , if I run wbemtest and search for win32_operating system, I get the name attribute returned as :-
Name = "Microsoft Windows XP Professional|C:\\WINDOWS|";
notice the name is truncated in comparision to the admin version.
My questions are :-
Why is the signature attribute in the Win32_Diskdrive class not being returned under a normal user. ?
Why the difference in the name attribute from the win32_operatingsystem class ?
Why doesnt win32physicalmedia get found at all under the normal user account, in either my program, or wbemtest.
Any advice will be much appreciated.
Thanks for your help in advance
John
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"John Maher" <john....@microfocus.com> wrote in message
news:0de301c2ed5c$93610b60$a001...@phx.gbl...
Thanks for the response. I take it then that this will be logged as a problem with WMI. If so could you let me know the tracking/incident number.
Some more information for you.
It isnt only the info that I gave below, but it would seem that a lot of the attributes behave in this way.
If you wish me to send a more detailed log of what is transpiring under both the admin and the user account so you can see for yourself I will do so.
Another point is that this seems to be even more severe under terminal services.
Regards
John Maher
>.
>
You can report this to PSS (Product Support Service) and get a public
tracking ticket I believe.
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"John Maher" <john....@microfocus.com> wrote in message
news:391f01c2f2c1$68ef5340$2f01...@phx.gbl...