Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Mandeep Dulai,
Step 1 - Run SQL Script to create table to hold file configuration values ( eg. file name, path)
Step 2 - Create a SQL Agent job with a step of type Powershell and copy and paste the powershell script into the step