Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Property of a WMI Class is empty

46 views
Skip to first unread message

andr...@gmail.com

unread,
Sep 23, 2014, 4:46:13 AM9/23/14
to
Hallo,

if i try to enumerate a WMI Class from SCCM the property requesthistory is empty like this:

PS C:\> gwmi -Namespace "root\SMS\site_S01" -Query "SELECT * FROM SMS_UserApplicationRequest WHERE (CI_UniqueID='ScopeId_131EEA85-7B74-4542-89C7-6131F7C23110/Application_72fdfad0-3192-4f1d-974b-111db9c9dc0b/4')"


__GENUS : 2
__CLASS : SMS_UserApplicationRequest
__SUPERCLASS :
__DYNASTY : SMS_UserApplicationRequest
__RELPATH : SMS_UserApplicationRequest.RequestGuid="6E661DC5-88CA-4208-933A-0DB1F846DA0A"
__PROPERTY_COUNT : 11
__DERIVATION : {}
__SERVER : SCCM1
__NAMESPACE : root\SMS\site_S01
__PATH : \\SCCM1\root\SMS\site_S01:SMS_UserApplicationRequest.RequestGuid="6E661DC5-88CA-4208-933A-0DB1F846DA0A"
Application : 7-Zip 9.20
CI_UniqueID : ScopeId_131EEA85-7B74-4542-89C7-6131F7C23110/Application_72fdfad0-3192-4f1d-974b-111db9c9dc0b/4
Comments : brauch ich doch
CurrentState : 1
LastModifiedBy : SCCM2012\hansen
LastModifiedDate : 20140922163358.710000+000
ModelName : ScopeId_131EEA85-7B74-4542-89C7-6131F7C23110/Application_72fdfad0-3192-4f1d-974b-111db9c9dc0b
RequestGuid : 6E661DC5-88CA-4208-933A-0DB1F846DA0A
RequestHistory :
User : SCCM2012\hansen
UserSid :

If i use the SCCM Powershellmodule the requesthistory is filled will the correct values. The query is the same when i look in the sccm logfile:

PS S01:\> Get-CMApprovalRequest -Id "ScopeId_131EEA85-7B74-4542-89C7-6131F7C23110/Application_72fdfad0-3192-4f1d-974b-111db9c9dc0b/4"


Application : 7-Zip 9.20
CI_UniqueID : ScopeId_131EEA85-7B74-4542-89C7-6131F7C23110/Application_72fdfad0-3192-4f1d-974b-111db9c9dc0b/4
Comments : brauch ich doch
CurrentState : 1
LastModifiedBy : SCCM2012\hansen
LastModifiedDate : 22.09.2014 18:33:58
ModelName : ScopeId_131EEA85-7B74-4542-89C7-6131F7C23110/Application_72fdfad0-3192-4f1d-974b-111db9c9dc0b
RequestGuid : 6E661DC5-88CA-4208-933A-0DB1F846DA0A
RequestHistory : {
instance of SMS_UserApplicationRequestHistoryItem
{
Comments = "brauch ich doch";
ModifiedBy = "SCCM2012\\hansen";
ModifiedDate = "20140922163358.000000+000";
State = 1;
};
,
instance of SMS_UserApplicationRequestHistoryItem
{
Comments = "Kein Geld da";
ModifiedBy = "SCCM2012\\administrator";
ModifiedDate = "20140922083750.000000+000";
State = 3;
};
,
instance of SMS_UserApplicationRequestHistoryItem
{
Comments = "Zippen ist toll.";
ModifiedBy = "SCCM2012\\hansen";
ModifiedDate = "20140922082824.000000+000";
State = 1;
};
}
User : SCCM2012\hansen
UserSid : S-1-5-21-3190043756-3681905470-1510679150-1107


I think is not a SCCM Problem. It is my wmi Problem, that i have trouble to enumerate the property instances.

Any ideas.
Thank you.

André
0 new messages