This script formats the target computer’s hard disk. The script:
· Exits if WipeDisk is not equal to TRUE
· Determines the appropriate drive to format
· Formats the drive by calling cmd /c format <Drive> /fs:ntfs /p:3 /Y (where <Drive> is the drive letter of the hard disk drive to be formatted)
Value |
Description |
Input |
Environment variables. Contains the property values, custom property values, database connections, deployment rules, and other information that the scripts require to complete the deployment process |
Output |
· ZTIWipeDisk.log. Log file that contains events that this script generates · BDD.log. Log file that contains events that all MDT scripts generate |
References |
· CMD.exe. Allows running of command-line tools · Format.com. Formats the hard disk · ZTIUtility.vbs. Includes support functions and subroutines that the script uses |
Location |
distribution\Scripts |
Use |
cscript ZTIWipeDisk.wsf </debug:value> |
Arguments
Value |
Description |
/debug:value |
Outputs the event messages to the console and to the .log files. If the value specified in value is: · TRUE, event messages are sent to the console and the .log files · FALSE, event messages are sent only to the .log files (This is the behavior when the argument is not provided.) |
Properties
Name |
Read |
Write |
WipeDisk |
˜ |
|
Related Topics