SCCM Report
Hi,
I am new to SCCM reports and all I want to find is the MAC address, System Name and System Serial Number. I need to do this by either collection or IP subnet but cannot seem to get the code correct. I have the following so far:
SELECT
a.Hardware_ID0 as [MAC Address],
a.Netbios_Name0 as [System Name],
b.serialnumber0 as [System S/No]
FROM v_r_system a,
v_gs_pc_bios b
WHERE a.ResourceID = b.ResourceID
This gets all the information required but it is for our whole estate and like i said I need to get it for a collection or IP subnet. Can someone please help?
regards
Kevin
How about below Report query: which gives you mac address and hostname list:
Select
v_R_System.Netbios_Name0, SYS.User_Name0,
v_RA_System_MACAddresses.MAC_Addresses0
from
v_R_System, v_R_System SYS, v_RA_System_MACaddresses,
v_fullcollectionmembership
where
v_ra_system_macaddresses.resourceid=v_r_system.resourceid
and v_fullcollectionmembership.resourceid=v_ra_system_macaddresses.resourceid
and SYS.resourceid=v_r_system.resourceid
Similar Messages
-
SCCM Report for Applicable and Installed Updates Collection Wise
Hi All, I was looking for a report on Applicable and Installed Updates Collection Wise and got this below query on the Internet and want to create a SCCM report with this below query. How to make this query working in SCCM report?
Do I need to add prompts, if yes please guide me on adding prompts.
SELECT
DISTINCT
SYS.Name0
AS [Server Name], SIS.SMS_Installed_Sites0 AS [Site Code], UCS.Status AS [Patch Status Code],
CASE WHEN UCS.Status = '2' THEN 'Applicable' WHEN UCS.Status = '3' THEN 'Installed' ELSE '' END AS 'Patch Status', UI.BulletinID AS [Bulletin ID],
UI
.ArticleID AS [Article ID], UI.
Title
FROM
v_R_System AS SYS LEFT OUTER
JOIN
v_Update_ComplianceStatusAll
AS UCS ON SYS.ResourceID = UCS.ResourceID INNER
JOIN
v_UpdateInfo
AS UI ON UCS.CI_ID = UI.CI_ID INNER
JOIN
v_RA_System_SMSInstalledSites
AS SIS ON SYS.ResourceID = SIS.
ResourceID
WHERE
(UCS.Status IN ('2', '3')) AND (UI.ArticleID IN ('972270', '974392', '973904', '969947')) AND (SYS.Name0
IN
(SELECT DISTINCT v_FullCollectionMembership.
Name
FROM v_FullCollectionMembership INNER
JOIN
v_R_System
ON v_R_System.ResourceID = v_FullCollectionMembership.ResourceID AND v_R_System.Active0 = 1 AND
v_FullCollectionMembership
.CollectionID IN ('Collection ID'
ORDER
BY
[Patch Status Code]Yes it can be done and please run the query which i have shared in the thread
I again pasted the query for you below..
SELECT DISTINCT
SYS.Name0 AS [Server Name], CASE WHEN UCS.Status = '2' THEN 'Applicable' WHEN UCS.Status = '3' THEN 'Installed' ELSE '' END AS 'Patch Status',
UI.BulletinID AS [Bulletin ID], UI.ArticleID AS [Article ID], UI.Title
FROM v_R_System AS SYS LEFT OUTER JOIN
v_Update_ComplianceStatusAll
AS UCS ON SYS.ResourceID = UCS.ResourceID INNER JOIN
v_UpdateInfo AS UI ON UCS.CI_ID
= UI.CI_ID
WHERE (UCS.Status IN ('2', '3')) AND (SYS.Name0 IN (SELECT DISTINCT v_FullCollectionMembership.Name
FROM v_FullCollectionMembership INNER JOIN
v_R_System ON v_R_System.ResourceID = v_FullCollectionMembership.ResourceID AND v_R_System.Active0 = 1 AND
v_FullCollectionMembership.CollectionID
IN ('XXX00000')))
Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights -
SCCM Report for Laptop Battery Condition
Good morning,
We are in a situation where we're needing to monitor conditions of laptop batteries in the school district I manage. I have added the laptop batteries class(Win32_Battery) and have all required/requested information checked under this class. This
has been set for a week, so all devices should be inventoried by now.
How do you recommend my getting a report together that shows battery condition/etc? The fields I would like to see are ones such as:
Win32_Battery
battery status
design capacity
design voltage
Expected Life
Error Description
Full Charge Capacity
Really anything that will help us in knowing which laptops batteries need replacing.
I am not that knowledgeable about SQL reporting/SCCM reporting, so any help in getting this is greatly appreciated. Any resources that you can point me in for getting more familiar with creating my own reports would be greatly appreciated. I
don't even know where to begin.
Thank you!Good you have added the class. Please use the following link for the detailed information about Win32_Battery:
https://msdn.microsoft.com/en-us/library/aa394074(v=vs.85).aspx
Last Full Charge should guide your decision on replacement.
Following link will help you as well:
http://www.helpwithwindows.com/Windows7/Check-your-laptop-battery-health-in-Windows-7.html
-RG -
I need to create an SCCM report to show last logged on user on all machines and the Active Directory department attribute of that last logged on user.
You problem is here.
right
join v_R_User USR on USR.ResourceID
= CS.ResourceID
USR.ResourceID != CS.ResourceID, you need to map the username to the user logon to the PC. By using the user’s department information you will
end up with unreliable results.
Anyways you need to make these changes to your query.
left
join v_R_User USR on USR.Unique_User_Name0
= CS.UserName0
http://www.enhansoft.com/ -
SCCM report on last time each Office application was used
I have set up the correct SCCM software metering rules for each of the Office suite executables like Outlook.exe, MsWord.exe etc. I would like to report on usage of each executable in the Office suite. This is useful for us because we can work out things
like if a user only uses Outlook and nothing else in the Office suite then we can move them to Outlook Web Access and uninstall Office, therefore reducing the number of Office licenses required.
I'm sure the data is there but not sure how to extract it. For all the machines in the environment, I would like to have a report showing something like this:
Name Last date Outlook.exe used Last date Excel.exe used
PC001 01/01/2011 15/03/2011
PC002 02/02/2011 Never run
PC002 Never run Never run
There doesn't seem to be an existing report that I could use / modify, just wondering if anyone has attempted this before?I wonder, what is the use of this report. I think, you can try to create a custom report with the help of two links given below?
http://myitforum.com/cs2/blogs/jmarcum/archive/2011/05/19/157675.aspx (Beginners Guide to Writing SCCM Reports)
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=22052 ()Creating Custom Reports By Using Configuration Manager 2007 SQL Views)
Anoop C Nair - Twitter @anoopmannur
MY BLOG:
http://anoopmannur.wordpress.com
SCCM Professionals
This posting is provided AS-IS with no warranties/guarantees and confers no rights. -
SCCM report query that displays count of cpus per host and if host is physical or virtual
Hello,
I have this query that displays the count of CPUs per host. How can I add a column to show if the host a physical or virtual?
SELECT
DISTINCT(CPU.SystemName0) AS [System Name],
CPU.Manufacturer0 AS Manufacturer,
CPU.Name0 AS Name,
COUNT(CPU.ResourceID) AS [Number of CPUs],
CPU.NumberOfCores0 AS [Number of Cores per CPU],
CPU.NumberOfLogicalProcessors0 AS [Logical CPU Count]
FROM [dbo].[v_GS_PROCESSOR] CPU
GROUP BY
CPU.SystemName0,
CPU.Manufacturer0,
CPU.Name0,
CPU.NumberOfCores0,
CPU.NumberOfLogicalProcessors0I see that you have posted this exact question in another forum for CM12, however this is an CM07 forum.
Are you CM07 or CM12?
If you are CM12, use my answer here.
http://www.systemcentercentral.com/forums-archive/topic/sccm-report-query-for-cpu-cores/
If you are CM07, this is NOT a simple how exactly do you detect that a computer is a VM? You can guess by looking at the manufacturer name but it is only a guess.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
SCCM Reports Will Not Run - SQL Connection Issue
We have SCCM 2012 R2 CU2 and SQL 2012 SP1 CU6. We used to build our SCCM suites with SQL on the site server and have never had this problem that we now have on a new suite but this time we hosted SQL on its own server (SQ01) separate from the site server.
SCCM made the SQL server a component server (makes sense) and forced us to put Reporting Services on the SQL server (when trying to put it on the site server it would not find the instance-CM01, as that one has SSRS on it). The site server is ABC01. We've
already fixed a couple errors in regards to this issue.
The Reporting Services installed on SQ01 fine. When you go to reports in admin console it loads the 419 default SCCM reports just fine. But none of them will run properly. They open up but a popup appears with this error in the error details popup:
"An error has occurred during report processing....AbortedException: An error has occurred during report processing...ReportProcessingException: Cannot create a connection to data source AutoGen__(many numbers). System exception..."
If you go to SQ01, open Reporting Services Config Mgr, connect to instance SC01, click the URL under Report Manager URL, it prompts you for a logon (but should not do so) and you can log in with the service account selected when the Reporting services were
installed in SCCM Admin Console, drill down into ConfigMgr_ABC, click on the default created data source named {bunch of numbers}, and herein there are two more problems....1) it doesn't save the pwd for the service account, when clicking test connection we
often have to reenter it, and 2) the ConnectionString has this entry for Source="ABC01.fqdn/CM01" but it will never connect with that. If we change it to just "CM01" and it is currently holding the pwd, it will test connect successfully
but after just a few minutes it won't because something has reset the connection to "ABC01.fqdn/CM01" and forgotten the pwd. It is apparent that something is overwriting the settings in a way SQL currently doesn't like.
Also, we have an alias within SQL in this format "SQ01.fqn/CM01" when SQL already has a "CM01" alias. This seems to be a problem too.
Any input appreciated.
Ben JohnsonWYOK, I'm duly web-embarrassed. Apparently due to some firewall blockage, my Admin Console on my workstation (which is in a different VLAN from these servers), could not save the changed Reporting Services configs to SQL. When we made the changes using the
Admin Console on ABC01, it all started working.
Ben JohnsonWY -
SCCM Report for hard disk mode (IDE/AHCI)
May I ask you if anyone of you is aware of and has an example on how to create a SCCM report to find out if the hard disk mode is set to IDE or AHCI?
Many thanksYes, I know this is an old post, I’m trying to clean them up, Did you figure this out, if so how?
This information is not collected by default and therefore you will need to collect it first before you can report on it.
http://www.enhansoft.com/ -
SCCM report data are missing inside report since Update SCCM 2012 to R2 Cu1
Hi All,
I encountered an issue regarding certains SCCM reports after migrating to SCCM R2 CU1.
After this upgrade, I've already encountered some issues on differents reports .. reports where we need to select a collection or patches or computers from a drop list (all theses drop list were empty).
I resolved these issues by adding the "read" security permission in the security role dedicated to our Support Team. (Read permission is now applied on Collections, Packages ect...)
This sort of report works well now.
But this same Team show me another issue where I did not find any resolution.
In the categorie called "Hardware - General", we have a report named "Computer information for a specific computer" where, as you know, we normally could find some informations regarding a computer.
In fact, the only informations which are visible through this report are the NetbiosName,Username, Domain User & computer and IP adress.
All others informations are not displayed.
If I use this report with a user who has admin rights in SCCM (which is not the fact with my support team of course) ...all informations are displayed normally.
It seems that it looks like the first read rights issue that I encountered at the beginning, but I did not find where could be the cause of this issue
Does anyone has already seen this sort of issue ?In CM12R2 RBA is now enabled for report. So this tell me that you have NOT grant the support team access to the data and therefore this is normal.
There is a quick fix for this see Brian post.
http://www.mnscug.org/blogs/brian-mason/162-report-user-role
http://www.enhansoft.com/ -
I am trying to create a Macro based Excel file that would contain a Macro, when executed would download a SCCM Report into a CSV file. At the moment I have to manually go to the webpage, wait for the report to be created and then click on a "Export
to a file" button then choose a location and save. All is fine but I wanted to have some kind of automation. Since the webpage is created using SSRS reporting I cannot use standard HTML call out procedures like in these YouTube videos:
Excel VBA Pull Data From A Website
Get web page data into Excel using VBA
I have tried these VBA lines:
Sub Get_SCCM()
Dim IE As New InternetExplorer
IE.Visible = True
IE.navigate "www.google.co.uk"
Do
DoEvents
Loop Until IE.readyState = READYSTATE_COMPLETE
Set TextBox = IE.document.getElementsByName("q")
TextBox.Item(0).Value = "OK"
End Sub
This Macro executes without any problems and you can see that the "OK" has been input into the Google searchbox. But When I tried this code:
Sub Get_SCCM()
Dim IE As New InternetExplorer
IE.Visible = True
IE.navigate "http://<Server_Name>/Reports/Pages/Report.aspx?ItemPath=%2f<Reports_Name>%2fInfrastructure%2f<Name>%2f<Report_File_Name>"
Do
DoEvents
Loop Until IE.readyState = READYSTATE_COMPLETE
End Sub
I receive an error:
Run-time error '-2147417848 (80010108)'
Automation error
The object invoked has disconnected from its clients
Even does not work when trying to add extra lines like IE.document etc.
Any suggestions on how to export a CSV file with the report from SCCM webpage using VBA in Excel.
Thanks!SSRS reports can be automatically sent to a file. Ask your admin how to configure a custom scheduled report. The report can go to disk or beemailed on the scheduled.
¯\_(ツ)_/¯ -
Hi Guys,
I am looking for a sccm report which should provide total number of actual patches installed by us on all the machines (present in target collection). For couple of updates after sync it shows installed already on some machines.
Example:
CName | Total Patches | Already Installed | Installation triggered by Deployment | Collection ID
AW001 (123) (2) (17) CL00001
AW002 (123) (1)
(21) CL00001
AW003 (123) (1)
(26) CL00001
I am specially looking for 'Installation triggered by Deployment ' number
I would appriciate very much your the help.
Thanks,
ChandanHi Chandan,
You could try to create your custom report based on Software Updates Status views.
Software Updates Views in Configuration Manager
http://technet.microsoft.com/en-us/library/dn581945.aspx
Best Regards,
Joyce -
Trying to deploy MS14-051/KB 2976627, SCCM reporting 'Update is not required'?
hey all,
i'm trying to deploy MS14-051/KB 2976627 as part of our August Windows updates, and i've noticed that over 90% of our computers have not installed the update yet, SCCM report shows 'Update is not required'.
if i dig through the links in the report to any computers that are affected, i get a blank page with no details where there should be a description/reason outlining why the update is not required.
from what i've read, there aren't any other updates required for this to be installed, and it's a critical update so i'm confused as to why it isn't installing. we're running IE 9 on Windows 7 x64 for most of our computers.
i reviewed the other August updates that are part of this deployment, and they appear to be installing fine.
any help is greatly appreciated!This update was expired shortly after it's release.
http://support.microsoft.com/kb/2976627
That is why it isn't required
http://www.sccm-tools.com http://sms-hints-tricks.blogspot.com -
When the “V_GS_Add_Remove_Programs” or “V_GS_Quick_Fix_Engineering” queried for installed date (the views that contains information on updates/application
installed date), the “installDate0” Column returns “Null” or is
"blank" on most of the rows.
The machine in this example is “X”
2. As you can see from the machines X's add remove Programs installed Date is given clearly.
Appreciate your help on this as its for an audit report of windows updates and applications installed date, I know that some applications do not populate this value but my argument is if its visible from Programs and Features why isn't the data being collected.
Best Regards,
MichaelDuplicated post.
http://social.technet.microsoft.com/Forums/en-US/678489ad-3289-4fd6-8e84-bbaf487abacf/sccm-reporting-software-updates-apllication-the-installed-date-is-missing-or-null-in-reports?forum=configmanagergeneral
http://www.enhansoft.com/ -
Sccm reporting for add/remove programs is not accurate
Hi freinds
I have made a custome query to find computers where antivirus is not installed in entire site. It was working fine. But last week I have observed that one windows server 2008 r2 has got symantec enpoint protection installed but sccm report is including
that server.
could anyone please share ideas to solve it?
here is the sccm query:
select v_r_system.netbios_name0,v_r_system.user_name0,v_GS_OPERATING_SYSTEM.Caption0 AS "Operating System",v_GS_SYSTEM_ENCLOSURE.SerialNumber0 AS "Serial Number" from v_r_system
join v_GS_OPERATING_SYSTEM on v_GS_OPERATING_SYSTEM.ResourceID = v_r_system.ResourceId
JOIN v_GS_system on v_GS_system.ResourceID = v_r_system.ResourceId
JOIN v_GS_system_Enclosure on v_GS_system_Enclosure.ResourceID = v_r_system.ResourceId
where v_GS_system.Name0 not in
select distinct v_GS_system.Name0 from v_GS_system
LEFT OUTER JOIN v_GS_ADD_REMOVE_PROGRAMS on v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_r_system.ResourceId
LEFT OUTER join v_GS_ADD_REMOVE_PROGRAMS_64 on v_GS_ADD_REMOVE_PROGRAMS_64.ResourceID = v_r_system.ResourceId
where
v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 = 'Symantec AntiVirus'
or v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 = 'Symantec AntiVirus Client' or
v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 = 'Norton Antivirus Client' or
v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 = 'Norton AntiVirus Corporate Edition' or
v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 = 'Symantec Endpoint Protection' or
v_GS_ADD_REMOVE_PROGRAMS_64.DisplayName0 = 'Symantec AntiVirus Win64' or v_GS_ADD_REMOVE_PROGRAMS_64.DisplayName0 = 'Symantec Endpoint Protection' or
v_GS_SYstem.SMSID0 = 'GUID:6578610F-BFD0-4693-98B5-B6FB50129FB5' or
v_GS_SYstem.SMSID0 = 'GUID:E64FF1A8-EF5B-46DD-8859-02D7A3E8818A' or
v_GS_SYstem.SMSID0 = 'GUID:52EA60BD-F3DD-4615-9CCD-AFE0B7F28D41' )It sounds like you have some 3rd. party Console tools installed (right click tools). Those are using various scripts to connect to the clients and is not really controlled via ConfigMgr.
Kent Agerlund | My blogs: blog.coretech.dk/kea and
SCUG.dk/ | Twitter:
@Agerlund | Linkedin: Kent Agerlund |
Mastering ConfigMgr 2012 The Fundamentals -
Hi,
SCCM reports aren't working for some reasons either from web or from console.
They are taking too long and keeps on the screen where it says "loading" and finally it comes up with below errors.
Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response.
Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response.
Microsoft.ConfigurationManagement.ManagementProvider.SmsException
Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response.
Stack Trace:
at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ParameterPresenter.GetParameters()
at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ParameterPresenter.LoadParameters(IReport report, Collection`1 navigationParameters, IResultObject resultObject)
at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ReportViewerPresenter.Worker_DoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
System.InvalidOperationException
Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response.
Stack Trace:
at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ParameterPresenter.GetParameters()
at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ParameterPresenter.LoadParameters(IReport report, Collection`1 navigationParameters, IResultObject resultObject)
at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ReportViewerPresenter.Worker_DoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
I have tried searching for "Client found response content type of '', but expected 'text/xml'." on web but didn't get anything useful.
Could you please assist?Hey Peter,
Actually there were very few who got exactly this error
Client found response content type of '', but expected 'text/xml'.
They were facing different errors like
Client found response content type of 'text/xml', but expected 'text/xml' + etc..
Many tried reinstalling the Reporting point role but even that didnt fixed the issue.
I am just trying to make sure if there are any alternatives to this before i have to reinstall the reporting
service role (as there are many customized SQL reports we use)
I believe this is something which happened after upgrading to R2 and affecting some reports and not all.
Maybe you are looking for
-
Cisco VPN 3002 to Cisco ASA 5505
I want to remove a Cisco VPN 3002 Hardware client and replace it with a Cisco ASA 5505. Is there a way to do this? I want to have the remote user and group authentication and no split tunneling.? Thanks for your help.
-
I have an iPhone 5c and an ipad 3. using the latest version of iOS. I can't delete the old iCloud account on the devices without putting in a password but I don't have it, nor a way to change it via email since the email acct is an old one.
-
Trouble calling cfmodule with dynamic location
I have the following cfmodule tag running... <cfset tagpath = #request.localpath# &membership/EWSTags/EWSTagReach.cfm"> <cfmodule id="EWSTagSearch" template="#tagpath#" > But when I attempt to run it I get the following error: The filename, directory
-
Can you make a puzzle from a photo? I'd like this. Also, can you have a photo transposed on a cup? <Personal Information Edited by Host>
-
I was able to stream mp3s from safari and navigate away from the safari app with the mp3 still playing in the background. Now for some reason I am unable to do that. It stops playing when I hit the home button or if my phone locks. How do I fix this?