Powershell scripts


any 1 has script following job  on sql servers:

1. powershell script check free space on drives, if 10% free, send email adminstrator

2.  script keep track disks spaces, save table, then schedule run every month, later  analysis of growth?

 

thanks


sqlfriend

you can set scheduled task run want, @ last job, used script, ran once day. if that, html file sent, has the date when ran in name of file itself, should named diskspcae_20121207.html. if going run multiple times, , want include timestamp can modify line # 33, format date see fit.

as excluding drive, have on script again , let know, may simple where-object clause exclude s: drive, not sure @ time.


if find post has answered question, please mark answer. if find post helpful in anyway, please click vote helpful.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL