Skip to content

Commit 6a6bdb5

Browse files
committed
Update free-disk-space-windows.ps1
1 parent 7685c91 commit 6a6bdb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ci/scripts/free-disk-space-windows.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $ErrorActionPreference = 'Stop'
55
Get-Volume | Out-String | Write-Output
66

77
# Exclude directory from Defender to make this faster
8-
Add-MpPreference -ExclusionPath C:\
8+
#Add-MpPreference -ExclusionPath C:\
99

1010
$available = $(Get-Volume C).SizeRemaining
1111

@@ -30,3 +30,5 @@ Get-Volume | Out-String | Write-Output
3030

3131
$saved = ($(Get-Volume C).SizeRemaining - $available) / 1gb
3232
Write-Output "total space saved $saved GB"
33+
34+
exit 1

0 commit comments

Comments
 (0)