Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

First Powershell Script

$
0
0

I just wrote my first script to delete old files from a storage server. I used an example I saw online and made adjustments to make it work in our environment. I have scheduled it using Martin's How-To and I will know tomorrow when I come back in to work if it ran or not.

If all goes as planned, twice a week it will remove backups that are more than 7 days old from our storage server. That way we will ensure a week's worth of backups and not have to worry aboutfilling up our storage drives.

I have been wanting to learn more about PowerShell and have been reading "Learn Windows PowerShell in a Month of Lunches" but without any way to see it in action in my own environment, I was getting antsy and frustrated. After a week and a half, I was getting bored with it.This is just the type of thing I need to help me finish it.


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

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