hi there, im kinda new in sccm, and in creating custom reports.
actualy i need a huuuuuge information in one report.
-netbios name
-ad container
-current user
-top console user
-vendor
-model
-processor type
-numer of processor cores
-GHz of processor
-how many ram is there
-os version and name
-video card model and its ram
-hdd type and size
-hardware production date (when created)
-last logon
i tryed to do something, but its insane to understood how its works and writes
oh, forgot to tell that im using sccm 2007
got some code already with half of everything, but i still getting error "Must Declarare the scallar Variable @CollectionID"
if i remove this lines
rsys.Name0 AS 'Computer Name', Caption0 as 'Operating System',
CSDVersion0 as 'Service Pack',
and
inner join v_GS_OPERATING_SYSTEM os ON rsys.ResourceID=os.ResourceID
inner join v_FullCollectionMembership fcm on os.ResourceID=fcm.ResourceID
WHERE
fcm.CollectionID=@CollectionID
everything goes great.
and if i put that lanes in different sections (2xSelect and from) everything still working great
SELECT
V_R_SYSTEM.Name0 AS 'PC Name',
rsys.Name0 AS 'Computer Name', Caption0 as 'Operating System',
CSDVersion0 as 'Service Pack',
v_GS_PROCESSOR.Name0 AS 'Processor',
v_GS_COMPUTER_SYSTEM.Manufacturer0,
v_GS_COMPUTER_SYSTEM.Model0,v_GS_X86_PC_MEMORY.TotalPhysicalMemory0 AS 'RAM (MB)'
FROM
v_r_system
inner join v_GS_PROCESSOR on v_R_system.ResourceID=v_GS_PROCESSOR.ResourceID
inner join v_GS_COMPUTER_SYSTEM on v_GS_COMPUTER_SYSTEM.ResourceID=v_r_system.ResourceID
inner join v_GS_X86_PC_MEMORY on v_GS_X86_PC_MEMORY.ResourceID=v_r_system.ResourceID
inner join v_RA_System_SMSInstalledSites on v_RA_System_SMSInstalledSites.ResourceID=v_r_system.ResourceID
inner join v_GS_OPERATING_SYSTEM os ON rsys.ResourceID=os.ResourceID
inner join v_FullCollectionMembership fcm on os.ResourceID=fcm.ResourceID
WHERE
fcm.CollectionID=@CollectionID
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
hi there, im kinda new in sccm, and in creating custom reports.
actualy i need a huuuuuge information in one report.
-netbios name
-ad container
-current user
-top console user
-vendor
-model
-processor type
-numer of processor cores
-GHz of processor
-how many ram is there
-os version and name
-video card model and its ram
-hdd type and size
-hardware production date (when created)
-last logon
i tryed to do something, but its insane to understood how its works and writes
oh, forgot to tell that im using sccm 2007
got some code already with half of everything, but i still getting error "Must Declarare the scallar Variable @CollectionID"
if i remove this lines
rsys.Name0 AS 'Computer Name', Caption0 as 'Operating System',
CSDVersion0 as 'Service Pack',
and
inner join v_GS_OPERATING_SYSTEM os ON rsys.ResourceID=os.ResourceID
inner join v_FullCollectionMembership fcm on os.ResourceID=fcm.ResourceID
WHERE
fcm.CollectionID=@CollectionID
everything goes great.
and if i put that lanes in different sections (2xSelect and from) everything still working great
Share this post
Link to post
Share on other sites