<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Query on System Management</title>
    <link>https://systemmanagement.ro/tags/query/</link>
    <description>Recent content in Query on System Management</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 11 May 2022 21:33:26 +0300</lastBuildDate>
    <atom:link href="https://systemmanagement.ro/tags/query/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Oracle SQL: Update table with data from another table</title>
      <link>https://systemmanagement.ro/oracle-sql-update-table-with-data-from-another-table/</link>
      <pubDate>Wed, 11 May 2022 14:57:56 +0300</pubDate>
      <guid>https://systemmanagement.ro/oracle-sql-update-table-with-data-from-another-table/</guid>
      <description>Suppose you have a column in Table1 that you need to update with data from another column in Table2. Let’s do it!</description>
    </item>
    <item>
      <title>Power Query – Week start and end dates in same column</title>
      <link>https://systemmanagement.ro/power-query-week-start-and-end-dates-in-same-column/</link>
      <pubDate>Sat, 02 Nov 2019 09:12:37 +0200</pubDate>
      <guid>https://systemmanagement.ro/power-query-week-start-and-end-dates-in-same-column/</guid>
      <description>Someone asked me the other day below thing: “On the same column I want a
Range of dates not Duration between two dates So I have a Creation date and fulfillment
date I need to come up with a column of weekly Range like for example 10/21 – 10/27
10/28 – 11/01 11/02 – 11/09…</description>
    </item>
    <item>
      <title>Find OS Architecture using Win32_OperatingSystem class</title>
      <link>https://systemmanagement.ro/find-os-architecture-using-win32_operatingsystem-class/</link>
      <pubDate>Fri, 19 Oct 2012 17:45:00 +0300</pubDate>
      <guid>https://systemmanagement.ro/find-os-architecture-using-win32_operatingsystem-class/</guid>
      <description>WMI queries to find 64 and 32 bit computers: SELECT * FROM Win32_OperatingSystem
WHERE OSArchitecture = “64-bit” SELECT * FROM Win32_OperatingSystem WHERE OSArchitecture
= “32-bit”</description>
    </item>
    <item>
      <title>Computers without Java 6 Update 30</title>
      <link>https://systemmanagement.ro/computers-without-java-6-update-30/</link>
      <pubDate>Fri, 19 Oct 2012 17:44:00 +0300</pubDate>
      <guid>https://systemmanagement.ro/computers-without-java-6-update-30/</guid>
      <description>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 inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.Version &amp;lt; “6.0.300” and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like “Java(TM) 6%”</description>
    </item>
    <item>
      <title>Count Adobe Reader versions</title>
      <link>https://systemmanagement.ro/count-adobe-reader-versions/</link>
      <pubDate>Fri, 19 Oct 2012 17:39:00 +0300</pubDate>
      <guid>https://systemmanagement.ro/count-adobe-reader-versions/</guid>
      <description>SELECT DISTINCT TOP (100) PERCENT DisplayName0, Version0, COUNT(Version0) AS Total FROM dbo.v_GS_ADD_REMOVE_PROGRAMS GROUP BY DisplayName0, Version0 HAVING (DisplayName0 LIKE ‘%Adobe Reader%’) ORDER BY Total DESC, DisplayName0</description>
    </item>
    <item>
      <title>Collections with computers without Forefront Endpoint Protection 2010 client</title>
      <link>https://systemmanagement.ro/collections-with-computers-without-forefront-endpoint-protection-2010-client/</link>
      <pubDate>Fri, 19 Oct 2012 17:32:00 +0300</pubDate>
      <guid>https://systemmanagement.ro/collections-with-computers-without-forefront-endpoint-protection-2010-client/</guid>
      <description>A customer asked me today to help him with creating some collections with client computers that do not have FEP 2010 installed so he can advertise the antivirus client to those computers. You can find the queries bellow. All Windows 7 without Forefront Endpoint Protection 2010 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 inner join SMS_G_System_COMPUTER_SYSTEM on…</description>
    </item>
    <item>
      <title>Report with computer models and manufacturers</title>
      <link>https://systemmanagement.ro/report-with-computer-models-and-manufacturers/</link>
      <pubDate>Mon, 13 Sep 2010 11:08:44 +0300</pubDate>
      <guid>https://systemmanagement.ro/report-with-computer-models-and-manufacturers/</guid>
      <description>SELECT TOP (100) PERCENT Manufacturer0 AS Manufacturer, Model0 AS Model, COUNT(Model0) AS Total FROM dbo.v_GS_COMPUTER_SYSTEM GROUP BY Model0, Manufacturer0 ORDER BY Total DESC, Manufacturer, Model</description>
    </item>
    <item>
      <title>Collection with client Computers without ConfigMgr client</title>
      <link>https://systemmanagement.ro/collection-with-client-computers-without-configmgr-client/</link>
      <pubDate>Mon, 13 Sep 2010 10:33:27 +0300</pubDate>
      <guid>https://systemmanagement.ro/collection-with-client-computers-without-configmgr-client/</guid>
      <description>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 inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_R_System.Client = 0 and SMS_G_System_OPERATING_SYSTEM.Caption not like “%Server%” or SMS_R_System.Client is null and SMS_G_System_OPERATING_SYSTEM.Caption not like “%Server%”</description>
    </item>
    <item>
      <title>Collection based on computer model</title>
      <link>https://systemmanagement.ro/collection-based-on-computer-model/</link>
      <pubDate>Sun, 14 Feb 2010 10:24:42 +0200</pubDate>
      <guid>https://systemmanagement.ro/collection-based-on-computer-model/</guid>
      <description>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 inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model like “%HP ProBook 4710s%”</description>
    </item>
    <item>
      <title>Upgrade Configuration Manager client</title>
      <link>https://systemmanagement.ro/upgrade-configuration-manager-client/</link>
      <pubDate>Thu, 14 Jan 2010 18:54:08 +0200</pubDate>
      <guid>https://systemmanagement.ro/upgrade-configuration-manager-client/</guid>
      <description>Recently I reinstalled ConfigMgr server in my company and was looking for
an easy method to upgrade all Configuration Manager clients to 4.00.6487.2000 version.
Put some notes on the table and finally made the following plan: Create a report
that counts all client versions. (This is optional, just for informational purposes).
Report query is:SELECT TOP…</description>
    </item>
    <item>
      <title>WMI query for processor manufacturer</title>
      <link>https://systemmanagement.ro/wmi-query-for-processor-manufacturer/</link>
      <pubDate>Tue, 10 Nov 2009 12:56:08 +0200</pubDate>
      <guid>https://systemmanagement.ro/wmi-query-for-processor-manufacturer/</guid>
      <description>Following the post regarding how to install drivers based on computer model using WMI query, here is another query you can use in your task sequences to install some processor specific software for example. To find the processor manufacturer during a task sequence, insert a condition for the step you need, and select Query WMI.…</description>
    </item>
    <item>
      <title>Create collection with all Windows XP SP 1-2-3 systems</title>
      <link>https://systemmanagement.ro/create-collection-with-all-windows-xp-sp-1-2-3-systems/</link>
      <pubDate>Mon, 24 Aug 2009 08:48:47 +0300</pubDate>
      <guid>https://systemmanagement.ro/create-collection-with-all-windows-xp-sp-1-2-3-systems/</guid>
      <description>To create a collection with all Windows XP SP1 systems, use the query bellow:
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 inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID
= SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Caption like “%Windows
XP%” and SMS_G_System_OPERATING_SYSTEM.CSDVersion = “Service Pack 1” Similarly,
to create a collection with all Windows XP SP2 systems, just change the Service
Pack version number: select…</description>
    </item>
    <item>
      <title>All .mp3 files on Desktop and My Documents folder</title>
      <link>https://systemmanagement.ro/all-mp3-files-on-desktop-and-my-documents-folder/</link>
      <pubDate>Tue, 16 Jun 2009 18:48:19 +0300</pubDate>
      <guid>https://systemmanagement.ro/all-mp3-files-on-desktop-and-my-documents-folder/</guid>
      <description>Want to know if your users store mp3 files on Desktop or My Documents folders? Add .mp3 file type to Software Inventory Client Agent properties Navigate to Site Database – Site Management – Site Name – Site Settings – Client Agents and double click Software Inventory Client Agent Select Inventory Collection tab Click the new…</description>
    </item>
    <item>
      <title>Create a collection with all x64 systems</title>
      <link>https://systemmanagement.ro/create-a-collection-with-all-x64-systems/</link>
      <pubDate>Mon, 16 Mar 2009 09:55:07 +0200</pubDate>
      <guid>https://systemmanagement.ro/create-a-collection-with-all-x64-systems/</guid>
      <description>As I have some free time, I’m testing different things with SCCM, mainly in creating different collections that I might need. Bellow you can find the query that will show you all x64 systems, client and server operating systems. 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 inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId…</description>
    </item>
    <item>
      <title>Create a collection with all mobile (laptops, notebooks, portable) systems</title>
      <link>https://systemmanagement.ro/create-a-collection-with-all-mobile-laptops-notebooks-portable-systems/</link>
      <pubDate>Mon, 09 Mar 2009 02:27:42 +0200</pubDate>
      <guid>https://systemmanagement.ro/create-a-collection-with-all-mobile-laptops-notebooks-portable-systems/</guid>
      <description>Someone just asked how to create a collection with all laptop computers? Well, if there is a good naming convention on site, this query will be easy to make. But, otherwise, we need to use chassis type value because, for example, laptops and notebooks are not the same things according to Microsoft. The full list…</description>
    </item>
    <item>
      <title>Create a collection with systems without Adobe Reader 9</title>
      <link>https://systemmanagement.ro/create-a-collection-with-systems-without-adobe-reader-9/</link>
      <pubDate>Sun, 01 Mar 2009 18:49:34 +0200</pubDate>
      <guid>https://systemmanagement.ro/create-a-collection-with-systems-without-adobe-reader-9/</guid>
      <description>Recently, I needed a collection with all computers that do not have Adobe
Reader 9 installed. I created a collection with this query: SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
not like “%Adobe Reader 9%”. Everything was fine except the fact that my computer
was also listed, despite the fact that I have Adobe Reader 9 installed. Well, I’m
not an…</description>
    </item>
  </channel>
</rss>
