Making Sherry Kissinger's Local Admin Custom Report work in SCCM 2012

Dear All,

I follow the step from sherry Kissinger everything is  working fine. http://mnscug.org/blogs/sherry-kissinger/244-all-members-of-all-local-groups-configmgr-2012 and I would like to create a custom report for this.

as I follow this at below :-

declare @olddcm datetime
declare @oldhinv datetime
set @oldDCM=DATEADD(DAY,-3, getdate())
set @oldHinv=DATEADD(DAY,-3, getdate())
select sys1.netbios_name0
,lgm.name0 [Name of the local Group]
,lgm.account0 as [Account Contained within the Group]
, lgm.category0 [Account Type]
, lgm.domain0 [Domain for Account]
, lgm.type0 [Type of Account]
, case when ws.lasthwscan < @oldhinv then 'Last Hinv might be out of date'
 when cs.lastcompliancemessagetime < @olddcm then 'CI evaluation might be out of date'
 when ws.lasthwscan < cs.lastcompliancemessagetime then 'CI evaluated since hinv, not necessarily unreliable'
  else 'Recent CI Eval, Hinv since CI Eval = Fairly Reliable'
end as [Reliability of Information]
from
v_gs_localgroupmembers0 lgm
join v_gs_workstation_status ws on ws.resourceid=lgm.resourceid
join v_r_system_valid sys1 on sys1.resourceid=lgm.resourceid
left join v_CICurrentComplianceStatus cs on cs.resourceid=lgm.resourceid
left join v_LocalizedCIProperties_SiteLoc loc on loc.ci_id=cs.ci_id
where loc.displayname = 'local group members into WMI'
order by sys1.netbios_name0, lgm.name0, lgm.account0

anything wrong on my step ? as I can't create any report as above is from sccm 2007 as I am using sccm 2012 .please advise.

November 26th, 2013 6:27pm

Yes, I know this is an old post, I'm just trying to clean them up.

What error are you getting? Without this information it is impossible for anyone to help you.

Free Windows Admin Tool Kit Click here and download it now
January 5th, 2014 5:29pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics