The Windows cleanup.ps1 and optimize.ps1 scripts both conclude by defragging and zerofilling the disk. This change instead performs these actions only at the end of optimize.ps1.
Description
There are two advantages:
Slightly faster VM creation
No need for the SDelete utility to be downloaded and run, as the zerofill is done using pure powershell
Related Issue
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Chore (non-breaking change that does not add functionality or fix an issue)
Checklist:
[x] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
The Windows cleanup.ps1 and optimize.ps1 scripts both conclude by defragging and zerofilling the disk. This change instead performs these actions only at the end of optimize.ps1.
Description
There are two advantages:
Related Issue
Types of changes
Checklist:
Will find some time over the next few days to do through the rest of the checklist. Is https://github.com/chef-cookbooks/community_cookbook_documentation/blob/main/TESTING.MD the correct guidance for pre-merge tests?