check disk space


hi,

     i have check disk space on remote servers..and alert (send email) if free space goes below threshold value..any ideas please how implement using power shell...any appreciated.

thanks

#send file email alerts

 

if(test-path "$env:userprofile\server disks $datetime.txt") { 	send-mailmessage -attachments "$env:userprofile\server disks $datetime.txt" }

 

for more read:

get-help send-mailmessage -full

 





Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group