Jump to content
Sign in to follow this  
Kirk

Folder Check Script

Recommended Posts

We have a backup folder and i'd like to create a script to check the folder and report sites that are missing recent backups. Any ideas?

Share this post


Link to post
Share on other sites

I don't know your backup setup exactly, but it sounds like a job for powershell and a monitor. You can use powershell to check the modified date of a folder or something, then a monitor using that powershell looking for a bad condition. https://gavsto.com/remote-monitor-series-finding-machines-where-bitlocker-is-not-protecting-drives/ Explains lightly how to do powershell remote monitors.

Share this post


Link to post
Share on other sites

Oh, I just noticed that that post didn't mention quotes inside of your block of powershell code. You have to escape all of your double quotes. Normally you do that by putting a \ before the quote. Or, if possible avoid using double quotes and only use single quotes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×