Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 7579

Powershell Script to find files from an SQL query

$
0
0

Hi Guys,

Sorry if this does not make sense...

A bit of background first, I have a software which runs off a SQL Server. The software will send windows objects such as docx and msgs to Windows directory folder on the same or separate server; an entry is made in the SQL database with a guid to show that an object has been stored and can be located by the software.

I wish to delete a large number of theses files, I would like to locate the files on the Storage server with Powershell but my selection needs to be based on an SQL query so that I can select items based on row values.

Has anyone managed to achieve this before?


Viewing all articles
Browse latest Browse all 7579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>