V_R_System operatingSystemServicePac0 and operatingSystem0

A customer was asking why their production SCCM system had v_R_System with extra fields operatingSystemServicePac0 and operatingSystem0, but their lab system didn't.  I checked several other systems, all at R2, and none of them had these fields, one
of our systems did have the operatingSystemServicePac0 set. 
I did some more checking and resolved it down to the System_DISC table.  The only thing I can think of is that there is an inventory class that controls these fields.  But looking through the systems I don't see anything that's turned on that would
account for the difference.  I even dumped it to a MOF and looked through it, but nothing obvious turned up.
Having these two fields would be a lot more useful than the Operating_System_Name_and0, question is where is it being turned on.
Bob

This data most likely came from AD discovery.  Yes there are other ways to get it into the v_R_system view but AD discovery is the most common method to add data to this view.
http://www.enhansoft.com/

Similar Messages

  • Difference between Microsoft Windows NT Workstation 6.1 (Tablet Edition) and Microsoft Windows NT Workstation 6.1

    I am trying to pull a report for all Windows 7 machines. But, i could find 2 attributes in view V_r_system that are operating_system_name_and0 and operatingsystem0 where I can get the OS information. Few machines are showing as "Microsoft Windows NT
    Workstation 6.1" on operating_system_name_and0 and few are "Microsoft Windows NT Workstation 6.1 (Tablet Edition)".
    I am so curious to know about "Microsoft Windows NT Workstation 6.1 (Tablet Edition)", so I just compared those machines with V_GS_Computer_system view to know whether these machines are a normal Laptop or Tablet based laptop. But, those are ALL
    NORMAL LAPTOPS ONLY. however, those machines OSes are showing as "Microsoft Windows NT Workstation 6.1 (Tablet Edition)".
    But, the build numbers and OS versions are same as "Microsoft Windows NT Workstation 6.1" machines. So,
    I could not find any difference between "Microsoft Windows NT Workstation 6.1" machines and "Microsoft Windows NT Workstation 6.1 (Tablet Edition)" machines in terms of models number , OS build number.
    Could someone of you please why the operating_system_name_and0 attribute shows as "Microsoft Windows NT Workstation 6.1 (Tablet Edition)" for part of the machines.

    Thanks for your reply.
    How do we check without RDP on those machines? Because, I have around 11,000 machines which are showing as "Microsoft
    Windows NT Workstation 6.1 (Tablet Edition)" out of 40,000 machines. 
    Is there a way to find that touch screen info in SCCM DB or somewhere?

  • 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

  • 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

  • Is it possible to create a playlist and share it with another itunes user?

    Is it possible to create a playlist and share it with another itunes user?

    try this out
    Select distinct   
    v_R_System.Netbios_Name0 AS [Computer Name],  
    v_GS_COMPUTER_SYSTEM.UserName0 AS [User Name]
     from v_R_System
    left join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceID) 
    inner join v_fullcollectionmembership as b on (b.ResourceID = v_R_System.ResourceID) 
    left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = v_R_System.ResourceID
            inner join v_GS_SYSTEM e on e.resourceid = b.resourceid
     Where
    b.CollectionID = @collectionid
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • SCCM 2012 R2 client version 1101 and 1104 queries

    There are several samples of collection query code for SCCM 2012 R2 client version 5.00.7958.1000, which is the base R2 client version. Patches can change this to 5.00.7958.1101 and 5.00.7958.1104. But there is a problem. These two patches
    display as 1101 and 1104 when you go to Control Panel\Configuration Manager\General tab but when you go to Programs and Features and look in there the DisplayVersion is 5.00.7958.1000--so all query code samples are unable to different between the base versions
    and version 1101 and 1004. I have been unable to find out how to write a query that finds version s 1101 and 1104. Does anyone know how to do this? Thanks.

    Use ClientVersion from SMS_R_System within a console query or ClientVersion0 from V_R_system in a SQL query.
    Even this can be deceptive though because the agent only reflects the highest version number of one of its subcomponets. This post, specific to 2007, describes the complexity: http://blog.configmgrftw.com/configmgr-client-hotfix-versioning/.
    Specific to your question though, why do you care if either of these hotfixes are distributed to your clients? 2905002 is only necessary during WinPE (and if you are actually not using download on demand content during OSD) and 2910552 is only applicable
    if you are rolling out Win 8.1 using a single TS to your XP systems using a refresh methodology.
    Jason | http://blog.configmgrftw.com

  • Invalid object name 'dbo.v_R_System'

    Hi,
    About six months ago I implemented SCCM in our domain and it's been working great. This morning, when I attempted to run one of the Asset Intelligence reports in the console, I received the following error...
    An error has occurred during report processing. (rsProcessingAborted)
    ...uh oh! So I logged onto our SQL database server, opened up the Report Manager in IE and attempted to run the same report. This time I got a bit more...
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'DataSet0'. (rsErrorExecutingCommand)
    Invalid object name 'dbo.v_R_System'. Could not use view or function 'fn_rbac_R_System_Valid' because of binding errors.
    ...I'm no SQL admin, so time to ask Mr Internet. The only related post I could find was the first one you get when you search "dbo.v_R_System missing" on any search engine (the ones I tried anyway).
    ...which wasn't particularly helpful.
    One thing I did try, which I thought was worth a shot, was to create a new database in Reporting Services Configuration Manager. After a few minutes that populated nicely with all the reports,
    but I'm still getting the same problem.
    We've got a really simple environment. Two Windows Server 2008 R2 servers for SCCM,
    one running the site database and reporting server and the other doing everything else. Database is running on Microsoft SQL Server 2012.
    Any ideas?
    Cheers,
    Dave

    I was also missing that same view.  I can't believe it.  In production and in my test environment we are on ConfigMgr 2012 SP1 CU3.  I started the upgrade on my test environment and it failed saying that it couldn't find that view. 
    I went to our production environment and the view existed.  I scripted the creation of the view and then created the view in our test environment.  The upgrade successfully completed after that.  Thanks for leading me in the right direction!

  • SCCM query for taking report from all clients for a SW installed and its version

    Hi ,  I need to pull a report from all servers in my landscape to identify the servers where 'HP system management homepage' is installed and its version. I have SCCM 2007 R2 and need to run a query/report. Please help me how to do this. 
    I am a beginner in SCCM.
    Thanks in advance.
    Vivek Nambiar

    Hi Vivek,
    Try this SQL query and let us know if it helps. Use your SCCM SQL database or the 'Reports' feature on SCCM to run the same.
    SELECT
    dbo.v_R_System.Name0 as 'Host Name',
    dbo.v_R_System.User_Name0 as 'User Name',
    dbo.v_GS_OPERATING_SYSTEM.Caption0 AS 'Operating System',
    arp.DisplayName0 as 'Product Name',
    arp.Version0 as 'Product Version'
    FROM dbo.v_Add_Remove_Programs AS arp
    INNER JOIN dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID
    INNER JOIN dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
    WHERE arp.DisplayName0 LIKE 'HP system management homepage%' AND
    dbo.v_R_System.Operating_System_Name_and0 LIKE '%server%'
    ORDER BY arp.Version0, dbo.v_R_System.Name0
    ~ Rajeesh M | Blog: ScorpITs | Please remember to 'Mark as Answer' or 'Vote as Helpful' on the post that helps. It helps others reading the thread and
    recognizes useful contributions

  • SCCM 2007 query for workstations with client status 1 and o

    Hi everybody,
    I would like to write a sql query which gives me workstations with status 1  if the client is installed and active and 0 if the client is not active.Any help please?
    Thank you.
    Regards,
    Lebalbo

    Here you go.
    Select * from v_r_system R
    where R.client0 =1 and R.active0=0
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Is it possible to query a collection and get the last logged on user?

    Hi
    Is it possible in SCCM to query a collection to get the computer names and the last logon user for each computer? I cant seem to find how to do this?
    Thank you

    try this out
    Select distinct   
    v_R_System.Netbios_Name0 AS [Computer Name],  
    v_GS_COMPUTER_SYSTEM.UserName0 AS [User Name]
     from v_R_System
    left join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceID) 
    inner join v_fullcollectionmembership as b on (b.ResourceID = v_R_System.ResourceID) 
    left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = v_R_System.ResourceID
            inner join v_GS_SYSTEM e on e.resourceid = b.resourceid
     Where
    b.CollectionID = @collectionid
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • How to detect and fix an abnormal client

    Hello,
    In my environment there is some abnormal client (there is only few actions in the client actions or its blank and in the sccm console the client is no or null)
    Usually we run a script to rebuild the wmi repository and it fix that and if it doesn't, we uninstall and install the client.
    the script:
    net stop ccmexec
    net stop winmgmt
    del %windir%\system32\wbem\Repository
    cd %windir%\system32\wbem
    for /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
    for /f %%s in ('dir /s /b *.mof *.mfl') do mofcomp %%s
    net start winmgmt
    net start ccmexec
    now my question is how can we detect when the client is abnormal(on the client)? (run a startup script?)
    thanks a lot,
    Gal

    There is no need to check the abnormality from the client end as you will be able to see it as Non-Client when it doesn't report its inventory for certain period and also you can get it via querying through the DB..
    What I ll suggest is create a query based collection to get the list of computers that did not report its hardware inventory for certain period of time, and you could get the troublesome clients..
    Below query can be used to get the computers based on the its reporting time, change the day as per your convenience..
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ResourceId not in (select ResourceID from SMS_R_System where AgentName in ("Heartbeat Discovery") and DATEDIFF(day,AgentTime,GetDate())<=12)
    Run the below query to get it from DB, change the collection it to your all systems, and the days required..
    Declare @CloTbl table
    [Associate ID] varchar(25),
    [Computer Name] varchar(25),
    [SiteCode] varchar(5),
    [LastHWScan] varchar(255),
    [Days Since HWScan] int
    insert into @CloTbl select * from(
    select Sys.User_Name0 as 'Associate ID',SYS.Netbios_Name0 as 'Computer Name', SIS.SMS_Installed_Sites0 as 'SMS Site', WS.LastHWScan,
    DATEDIFF(day,WS.LastHWScan,GETDATE()) as 'Days Since HWScan' from v_R_System as SYS
    join v_GS_WORKSTATION_STATUS WS on SYS.ResourceID = WS.ResourceID
    join v_RA_System_SMSInstalledSites SIS on SYS.ResourceID = SIS.ResourceID
    join v_fullcollectionmembership coll on SYS.ResourceID =coll.ResourceID
    join v_GS_OPERATING_SYSTEM sys1 on SYS.ResourceID =sys1.ResourceID
    WHERE coll.CollectionID = 'CA1000AA')P
    select * from @CloTbl
    where [Days Since HWScan] >'9'
    order by [Days Since HWScan]
    Hope it suffices..
    bluerail

  • Computer Count and last login count

    Does anyone have a sql report that could be run for a total of model computer count, the model, and then the last user logged in.
    The problem we are having with our model and count report is that it is leaving off about 500 machines because they are not reporting a model so therefore our report is flawed.  Is there a way to get those machines to show up or just add last logged
    in user to track them down?

    Ya some dont have a model, Here is our current script:
    select
    GSCS.Manufacturer0 as [Manufacturer],
    GSCS.Model0 as [Model],
    count(*) as [Count]
    from v_R_System RS
    left join v_GS_COMPUTER_SYSTEM GSCS on RS.ResourceID = GSCS.ResourceID
    Group by GSCS.Model0, GSCS.Manufacturer0
    Order by GSCS.Model0
    Hardware inventory is enabled not sure why there are 500 machines out of our 4000 not showing a model.  Do I have to enable something special in hardware inventory?
    How could I add last user to this script.

  • SCCM 2007 Query to compare two machines and their collections

    I need a query/report in sccm to run against two machines.  One has the base image and standard applications, the other will have the base image plus additional applications installed from the RAP menu.  I'd like to query the two and find the difference
    between their add/remove programs, and also add the Package ID.  
    I found this query below, but it doesnt display the Package ID, which I'd like to have as well.
    Ultimately, I'd love the result to filter out the common aplications and only show what's missing from the base machine Vs the full-blown machine.
    ************* SQL STATEMENT BELOW HERE ************
    SELECT     one.Computer1Name AS [Computer 1 Name], one.Computer1Display AS [Display Name], one.Version0, two.Computer2Name AS [Computer 2 Name], 
                          two.Computer2Display AS [Display Name], two.Version0
    FROM         (SELECT     v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 AS Computer1Display, v_R_System.Netbios_Name0 AS Computer1Name, 
                                                  v_GS_ADD_REMOVE_PROGRAMS.Version0, v_GS_ADD_REMOVE_PROGRAMS.InstallDate0
                           FROM          v_GS_ADD_REMOVE_PROGRAMS INNER JOIN
                                                  v_R_System ON v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_R_System.ResourceID
                           WHERE      (v_R_System.Netbios_Name0 = @Computer1) AND (v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 IS NOT NULL)) 
                          AS one FULL OUTER JOIN
                              (SELECT     v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 AS Computer2Display, v_R_System_1.Netbios_Name0 AS Computer2Name, 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.Version0, v_GS_ADD_REMOVE_PROGRAMS_1.InstallDate0
                                FROM          v_GS_ADD_REMOVE_PROGRAMS AS v_GS_ADD_REMOVE_PROGRAMS_1 INNER JOIN
                                                       v_R_System AS v_R_System_1 ON v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID = v_R_System_1.ResourceID
                                WHERE      (v_R_System_1.Netbios_Name0 = @Computer2) AND (v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 IS NOT NULL)) AS two ON 
                          one.Computer1Display = two.Computer2Display
    ORDER BY [Computer 1 Name], [Computer 2 Name]

    This is as close that I managed to get.....
    SELECT     one.Computer1Name AS [Computer 1 Name], one.Computer1Display AS [Display Name], two.Computer2Name AS [Computer 2 Name], 
                          two.Computer2Display AS [Display Name]
    FROM         (SELECT     v_Advertisement.PackageID, v_ClientAdvertisementStatus.AdvertisementID, v_R_System.Netbios_Name0 AS Computer1Name, 
                                                  v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 AS Computer1Display
                           FROM          v_R_System INNER JOIN
                                                  v_GS_ADD_REMOVE_PROGRAMS ON v_R_System.ResourceID = v_GS_ADD_REMOVE_PROGRAMS.ResourceID INNER JOIN
                                                  v_ClientAdvertisementStatus ON v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_ClientAdvertisementStatus.ResourceID
    INNER JOIN
                                                  v_Advertisement ON v_ClientAdvertisementStatus.AdvertisementID = v_Advertisement.AdvertisementID
                           WHERE      (v_R_System.Netbios_Name0 = @Computer1) AND (v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 IS NOT NULL)) AS one FULL OUTER JOIN
                              (SELECT     v_Advertisement_1.PackageID, v_ClientAdvertisementStatus_1.AdvertisementID, v_R_System_1.Netbios_Name0 AS Computer2Name, 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 AS Computer2Display
                                FROM          v_R_System AS v_R_System_1 INNER JOIN
                                                       v_GS_ADD_REMOVE_PROGRAMS AS v_GS_ADD_REMOVE_PROGRAMS_1 ON 
                                                       v_R_System_1.ResourceID = v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID INNER JOIN
                                                       v_ClientAdvertisementStatus AS v_ClientAdvertisementStatus_1 ON 
                                                       v_GS_ADD_REMOVE_PROGRAMS_1.ResourceID = v_ClientAdvertisementStatus_1.ResourceID
    INNER JOIN
                                                       v_Advertisement AS v_Advertisement_1 ON v_ClientAdvertisementStatus_1.AdvertisementID
    = v_Advertisement_1.AdvertisementID
                                WHERE      (v_R_System_1.Netbios_Name0 = @Computer2) AND (v_GS_ADD_REMOVE_PROGRAMS_1.DisplayName0 IS NOT NULL)) AS two ON 
                          one.Computer1Display = two.Computer2Display
    ORDER BY [Computer 1 Name], [Computer 2 Name]

  • Query to replace old report where I could type in an exe name and pick an OU for it to recurse

    In SCCM 2007 there was a report I always used that allowed me to type in a .exe and then specify an OU, and it would show me all computers in that OU and it's sub-OU's that had that file name, and show me the version of that file.
    I can't seem to find a report that allows that in SCCM 2012, so I'm wondering if someone out there has a query I could setup that would essentially provide the same data to me. 

    Thanks.  I think I did something wrong though.  Here's what I put into the wql box and it says I have a syntax error
    select s.Netbios_Name0,
     max(ou.System_OU_Name0) as OU
    , sf.FileName,
    sf.FilePath
    ,sf.FileVersion
    from v_R_System s
    join v_GS_SoftwareFile sf on sf.ResourceID=s.ResourceID
    join v_RA_System_SystemOUName ou on ou.ResourceID=s.ResourceID
    where ou.System_OU_Name0 like 'my.domain.com/MainOU/SubOuIWant%'
    and sf.FileName like 'firefox%'
    group by s.Netbios_Name0,
     ou.System_OU_Name0,
    sf.FileName,
    sf.FilePath
    ,sf.FileVersion

  • SQL Query (Migrating report from SMS 2003 and SCCM 2012R2)

    Hello everyone,
    I solicit you because I have to work on migrating reports from SMS 2003 and SCCM 2012 R2.
    The following SQL query causes me some problems:
    SELECT DISTINCT SYS.Netbios_Name0 AS Computer, (SELECT SUM(ProcAddtl.NumberOfLogicalProcessors0) FROM v_GS_Processor_Addtl0 ProcAddtl WHERE ProcAddtl.ResourceID=SYS.ResourceID) [Cores], CS.NumberOfProcessors0 AS CPU, CPU.MaxClockSpeed0 As Speed, CPU.Name0, MEMORY.TotalPhysicalMemory0/1024 AS [RAM Mb], (SELECT LDISKS.Name0 + '=' + CONVERT(varchar(15), LDISKS.Size0/1024) + ' | ' as 'data()' FROM v_GS_LOGICAL_DISK LDISKS WHERE LDISKS.ResourceID=SYS.ResourceID AND (LDISKS.Name0='C:' OR LDISKS.Name0='D:') ORDER BY LDISKS.Name0 FOR xml path('')) [Logical Disk (Gb)], (SELECT LDISKS.Name0 + '=' + CONVERT(varchar(15), LDISKS.FreeSpace0/1024) + ' | ' as 'data()' FROM v_GS_LOGICAL_DISK LDISKS WHERE LDISKS.ResourceID=SYS.ResourceID AND (LDISKS.Name0='C:' OR LDISKS.Name0='D:') ORDER BY LDISKS.Name0 FOR xml path('')) [Free Space(Gb)],CS.Manufacturer0 AS Manufacturer, CS.Model0, OS.Caption0 AS 'OS', (SELECT CONVERT(varchar(10), NIC.Index0) + '=' + NIC.IPAddress0 + ' | ' as 'data()' FROM v_GS_NETWORK_ADAPTER_CONFIGUR NIC WHERE NIC.ResourceID=SYS.ResourceID FOR xml path('')) [Network], (SELECT Count(Name0) FROM v_GS_SCSI_CONTROLLER SCSI WHERE SCSI.ResourceID=SYS.ResourceID AND SCSI.Name0 Like '%Qlogic%') [# FC HBA], INFONOYAU.RoleServeur0 AS Role, INFONOYAU.Zone0 AS Zone
    FROM v_R_System SYS
    LEFT JOIN v_GS_COMPUTER_SYSTEM CS ON CS.ResourceID = SYS.ResourceID
    LEFT JOIN v_GS_PROCESSOR CPU ON CPU.ResourceID = SYS.ResourceID
    LEFT JOIN v_GS_X86_PC_MEMORY MEMORY ON MEMORY.ResourceID = SYS.ResourceID
    LEFT JOIN v_GS_OPERATING_SYSTEM OS ON OS.ResourceID = SYS.ResourceID
    LEFT JOIN v_GS_Informations_Noyau0 INFONOYAU ON INFONOYAU.ResourceID = SYS.ResourceID
    LEFT JOIN v_FullCollectionMembership COL ON COL.ResourceID = SYS.ResourceID
    WHERE COL.CollectionID = @CollectionID ORDER BY SYS.Netbios_Name0
    Can a charitable soul help me to migrate this query to a SCCM 2012R2 report?

    The following SQL query causes me some problems:
    Why? What's happening?
    Torsten Meringer | http://www.mssccmfaq.de

Maybe you are looking for