0

I need to create a SCCM 2007 report to check the time zone over a specific collection. I found something to do this, but is not working when i insert it in the Report SQL Statement.

select SMS_R_System.Name, SMS_R_System.SMSAssignedSites, SMS_R_System.IPAddresses, SMS_R_System.IPSubnets, SMS_R_System.OperatingSystemNameandVersion, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.LastLogonUserDomain, SMS_R_System.LastLogonUserName, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.NetbiosName, SMS_G_System_COMPUTER_SYSTEM.CurrentTimeZone from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.CurrentTimeZone != -360 order by name
4

1 回答 1

1

对于需要使用数据库视图的报告,请参阅下面的快速修改查询,它应该可以满足您的需要:

select 
    v_R_System.Name0,   
    v_GS_COMPUTER_SYSTEM.CurrentTimeZone0 
from v_R_System 
inner join v_GS_COMPUTER_SYSTEM on v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceId 
join v_FullCollectionMembership ON v_FullCollectionMembership.ResourceID = v_R_System.ResourceID
where 
    v_GS_COMPUTER_SYSTEM.CurrentTimeZone0 != -360 
    AND v_FullCollectionMembership.CollectionID = '<yourcollectionid>'
order by Name0

只需将“<yourcollectionid>”替换为您要查询的 id。

于 2013-10-22T10:08:48.617 回答