HP XP7 Storage User Manual
Page 103

Registration example
•
Create a configuration report at 21:00 every day (CreateReport.bat).
•
Download a configuration report at 22:00 every day (DownloadReport.bat).
Procedure
1.
Store the two script files in the C:\Reports folder.
C:\Reports
CreateReport.bat
DownloadReport.bat
2.
Run the Windows schtasks command to register the two script files as a task of Windows.
Make sure that the <Username for Windows> parameter of this command is a user who
has write permissions to the following two folders.
•
C:\Reports
folder
•
The log folder in the installation folder of the Report Configuration Tool.
schtasks /create /tn CreateReport /tr
"C:\Reports\CreateReport.bat" /sc DAILY /st. 21:00:00 /ru
<Username for Windows> /rp <Password for Windows> schtasks /create
/tn DownloadReport /tr "C:\Reports\DownloadReport.bat" /sc DAILY
/st 22:00:00 /ru <Username for Windows> /rp <Password for Windows>
3.
Run the schtasks /Query command to confirm that the Windows task is registered.
C:\>schtasks /Query
Task name Time of next execution Status
============= ====================== ===============
CreateReport 21:00:00, 2011/05/17
DownloadReport 22:00:00, 2011/05/17
Managing tasks 103