I am using Altiris to install Windows Server SP2 on several servers. But this cannot be done when the hard disk space is too low.
I want to make a pre-job that reports the hard disk free space so when this value is too low there will be an error code (and the job stops).
So far I have this line of code:
dir c:\|find /i "bytes free" >> drivespacefree.txt
But now the reported value has too be checked if it is under 2.000.000.000 bytes.