<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Torsten&#039;s Blog &#187; WQL</title>
	<atom:link href="http://www.mssccmfaq.de/tag/wql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mssccmfaq.de</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 16:42:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Collection &#8211; Alle Distribution Points</title>
		<link>http://www.mssccmfaq.de/2011/10/24/collection-alle-distribution-points/</link>
		<comments>http://www.mssccmfaq.de/2011/10/24/collection-alle-distribution-points/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 17:53:49 +0000</pubDate>
		<dc:creator>Torsten</dc:creator>
				<category><![CDATA[ConfigMgr]]></category>
		<category><![CDATA[ConfigMgr 2007]]></category>
		<category><![CDATA[ConfigMgr 2012]]></category>
		<category><![CDATA[Collections]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[WQL]]></category>

		<guid isPermaLink="false">http://www.mssccmfaq.de/?p=10568</guid>
		<description><![CDATA[Hier das WQL-Statement für eine dynamische Collection (Sammlung), die alle Distribution Points enthält: 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.Name in (Select Servername from SMS_SystemResourceList where RoleName = &#8216;SMS Distribution Point&#8217;) Entsprechend lassen sicha auch Sammlungen für&#8217;SMS Fallback Status Point&#8217;, &#8216;SMS Reporting Point&#8217;, &#8216;SMS SQL Server&#8217;, &#8216;SMS Management Point&#8217;, &#8216;SMS SRS [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hier das WQL-Statement für eine dynamische Collection (Sammlung), die alle Distribution Points enthält:</p>
<p>select<br />
SMS_R_SYSTEM.ResourceID,<br />
SMS_R_SYSTEM.ResourceType,<br />
SMS_R_SYSTEM.Name,<br />
SMS_R_SYSTEM.SMSUniqueIdentifier,<br />
SMS_R_SYSTEM.ResourceDomainORWorkgroup,<br />
SMS_R_SYSTEM.Client<br />
from<br />
SMS_R_System<br />
where<br />
SMS_R_System.Name<br />
in<br />
(Select<br />
Servername<br />
from<br />
SMS_SystemResourceList<br />
where<br />
RoleName = <strong>&#8216;SMS Distribution Point&#8217;</strong>)</p>
<p>Entsprechend lassen sicha auch Sammlungen für&#8217;SMS Fallback Status Point&#8217;, &#8216;SMS Reporting Point&#8217;, &#8216;SMS SQL Server&#8217;, &#8216;SMS Management Point&#8217;, &#8216;SMS SRS Reporting Point&#8221; usw erstellen.<br />
(Vorsicht bei copy&#8217;n paste: WordPress ersetzt die &#8220;straight quotes&#8221; durch &#8220;smart quotes&#8221;)</p>
<div class="shr-publisher-10568"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.mssccmfaq.de%2F2011%2F10%2F24%2Fcollection-alle-distribution-points%2F' data-shr_title='Collection+-+Alle+Distribution+Points'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.mssccmfaq.de%2F2011%2F10%2F24%2Fcollection-alle-distribution-points%2F' data-shr_title='Collection+-+Alle+Distribution+Points'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.mssccmfaq.de/2011/10/24/collection-alle-distribution-points/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subselect / not in &#8211; Abfragen</title>
		<link>http://www.mssccmfaq.de/2009/12/14/subselect-not-in-abfragen/</link>
		<comments>http://www.mssccmfaq.de/2009/12/14/subselect-not-in-abfragen/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 11:30:52 +0000</pubDate>
		<dc:creator>Torsten</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Collections]]></category>
		<category><![CDATA[ConfigMgr]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[WQL]]></category>

		<guid isPermaLink="false">http://www.mssccmfaq.de/?p=10048</guid>
		<description><![CDATA[Eine Abfrage zu erstellen, welches System eine bestimmte Software installiert hat, ist einfach. Wenn man aber eine Collection haben will, die nur die Rechner enthält, welche eine  Software nicht hat, so wird&#8217;s etwas komplizierter. Folgendes Beispiel dient zur Verdeutlichung. Am besten startet man mit einer Liste der Rechner, die die Software installiert haben, so z.B. &#8220;zeige mir alle [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Eine Abfrage zu erstellen, welches System eine bestimmte Software installiert hat, ist einfach.<br />
Wenn man aber eine Collection haben will, die nur die Rechner enthält, welche eine  Software <em>nicht</em> hat, so wird&#8217;s etwas komplizierter. Folgendes Beispiel dient zur Verdeutlichung.</p>
<p>Am besten startet man mit einer Liste der Rechner, die die Software installiert haben, so z.B. &#8220;<em>zeige mir alle Rechner, die Winzip 9.0 installiert haben</em>&#8220;:</p>
<p><span style="color: #0000ff;">select distinct SMS_R_System.Name 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.DisplayName like &#8220;%Winzip 9.0%</span></p>
<p>Um sich jetzt die Rechner anzeigen zu lassen, die Winzip 9.0 nicht installiert haben muss man das &#8220;<strong>subselect &#8230; not in</strong>&#8221; &#8211; Statement verwenden.</p>
<p>&#8220;<em>Zeige mir alle Rechner, aber nicht die, die Winzip 9.0 installiert haben</em>&#8220;, was nichts anderes bedeutet als &#8220;<em>alle Rechner ohne Winzip 9.0</em>&#8220;:</p>
<p><span style="color: #ff0000;">select distinct Name from SMS_R_System where Name not in</span> (<span style="color: #0000ff;">select distinct SMS_R_System.Name 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.DisplayName like &#8220;%Winzip 9.0%&#8221;</span>)</p>
<p>In der GUI erkennt man auch sehr gut, dass der &#8220;Subselect&#8221; &#8211; Teil genau die erste Query (blau markiert) meines Beispieles ist, der nur der &#8220;not in&#8221; &#8211; Teil vorangestellt ist:</p>
<p><img class="alignnone size-full wp-image-10051" title="subselect_notin" src="http://www.mssccmfaq.de/wp-content/uploads/2009/12/subselect_notin.gif" alt="subselect_notin" width="281" height="298" /></p>
<div class="shr-publisher-10048"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.mssccmfaq.de%2F2009%2F12%2F14%2Fsubselect-not-in-abfragen%2F' data-shr_title='Subselect+%2F+not+in+-+Abfragen'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.mssccmfaq.de%2F2009%2F12%2F14%2Fsubselect-not-in-abfragen%2F' data-shr_title='Subselect+%2F+not+in+-+Abfragen'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.mssccmfaq.de/2009/12/14/subselect-not-in-abfragen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

