<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>search on MIME type through Powershell ?</title><link>https://communities.bentley.com/products/projectwise/f/projectwise-powershell-extensions-forum/246754/search-on-mime-type-through-powershell</link><description>Hello, 
 Is there a way to search on MIME type through Powershell ? We want to find all the legacy V7 DGN&amp;#39;s in our 2 TB datasource. 
 With standard PWE tools it seems not possible. 
 Many Thanks, 
 Nicolas Tobbackx</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: search on MIME type through Powershell ?</title><link>https://communities.bentley.com/thread/770929?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 06:17:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:dcc9c3ac-178c-40b9-a121-1417616244c9</guid><dc:creator>NicolasT</dc:creator><description>&lt;p&gt;Thank you very much indeed Brian,&lt;/p&gt;
&lt;p&gt;We were able to identify the V7 files through SQL.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Nico Tobbackx and Jan Vantilt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: search on MIME type through Powershell ?</title><link>https://communities.bentley.com/thread/770540?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 14:18:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:eccebbee-003d-4c5e-816a-158e64627b5d</guid><dc:creator>Brian Flaherty</dc:creator><description>&lt;p&gt;You could use SQL to query for all documents with the specified mimetype. Something like the following should work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;$SQLResults_DocGUIDs = Select-PWSQL -SQLSelectStatement &amp;quot;SELECT o_docguid FROM dms_doc WHERE o_mimetype = &amp;#39;&amp;lt;ENTER MIME TYPE NAME HERE&amp;gt;&amp;#39;&amp;quot;

$pwDocs = Get-PWDocumentsByGUIDs -DocumentGUIDs $SQLResults_DocGUIDS.o_docguid&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>