You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
449 B
Batchfile

@echo off
cd C:\_\hp_disk_monitoring\
REM Generates the array output health data and send mail if failed disks are found:
Powershell.exe -executionpolicy remotesigned -File C:\_\hp_disk_monitoring\disk_monitoring.ps1
REM Mounts the SMB volume where the frontend is hosted and copies the report:
net use x: \\MY_SMB_SERVER_IP\web /USER:MY_SMB_USER MY_SMB_PASSWORD
xcopy C:\_\hp_disk_monitoring\log.txt x:\hprack-mon\ /Y
net use x: /delete