<?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>Using Get-PWDocumentsBySearch to locate files by Property values</title><link>https://communities.bentley.com/products/projectwise/f/projectwise-powershell-extensions-forum/136690/using-get-pwdocumentsbysearch-to-locate-files-by-property-values</link><description>I am trying to find a way to locate all the files in my datasource that are associated with a defunct application and associate them with a &amp;quot;new&amp;quot; application. I have not been able to find a way to search on files based on their property values - such</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Using Get-PWDocumentsBySearch to locate files by Property values</title><link>https://communities.bentley.com/thread/456715?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 17:23:56 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:79c77207-eda5-49e5-bc1f-7943dcb2ffc9</guid><dc:creator>Jdgooldy1980</dc:creator><description>&lt;p&gt;Don&amp;#39;t know if you have seen this cmdlet but this should get you to the application association&lt;/p&gt;
&lt;p&gt;$application = &amp;quot;Microsoft Word&amp;quot;&lt;/p&gt;
&lt;p&gt;#set the document application assoication&lt;/p&gt;
&lt;p&gt;Set-PWDocumentApplication -InputDocuments $docs -Application $application -Verbose&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000080;font-family:Lucida Console;font-size:xx-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Get-PWDocumentsBySearch to locate files by Property values</title><link>https://communities.bentley.com/thread/413730?ContentTypeID=1</link><pubDate>Thu, 25 May 2017 18:01:32 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fec3e277-a866-41ea-829e-83293b6fd4f9</guid><dc:creator>Robert Biggar</dc:creator><description>yep. that worked. Thank You!&lt;br /&gt;
&lt;br /&gt;
added a &amp;quot;Global&amp;quot; search named &amp;quot;Microstation7&amp;quot;&lt;br /&gt;
Then accessed it: Get-PWDocumentsBySearch -SearchName &amp;quot;Microstation7&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Still looking for a way to change &amp;quot;Application&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Update-PWDocumentProperties - &amp;quot;allows you to reset the document name, description, file name or &lt;br /&gt;
    version string&amp;quot;&lt;br /&gt;
Update-PWDOcumentAttributes - changes the &amp;quot;document attribute record&amp;quot; - which works for the custom attributes&lt;br /&gt;
&lt;br /&gt;
...any Idea how you get to &amp;quot;Applicaton&amp;quot; or &amp;quot;Status&amp;quot;..etc.?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Get-PWDocumentsBySearch to locate files by Property values</title><link>https://communities.bentley.com/thread/413689?ContentTypeID=1</link><pubDate>Thu, 25 May 2017 12:02:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:60699dcd-f3d5-4080-bb55-c2739ff54178</guid><dc:creator>Paul Patterson</dc:creator><description>How about setting up a saved search in the datasource, and then using the cmdlet to return the files via the saved search?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>