Skip to content

Commit

Permalink
Resolved #84
Browse files Browse the repository at this point in the history
#84 Resolved

Squashing more bugs!
  • Loading branch information
eliweitzman committed May 27, 2024
1 parent e5486df commit c1343b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ETT.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ $LoadingProgressBar.Value = 60

$LoadingLabel.Text = "Getting Drive Info..."
$drivespace = Get-WmiObject -ComputerName localhost -Class win32_logicaldisk | Where-Object caption -eq "C:" | foreach-object { Write-Output " $($_.caption) $('{0:N2}' -f ($_.Size/1gb)) GB total, $('{0:N2}' -f ($_.FreeSpace/1gb)) GB free " }
$freedrivespace = Get-WmiObject -ComputerName localhost -Class win32_logicaldisk | Where-Object caption -eq "C:" | foreach-object { Write-Output $('{0:N2}' -f ($_.FreeSpace/1gb)) }
$LoadingProgressBar.Value = 70

$LoadingLabel.Text = "Getting RAM Info..."
Expand Down Expand Up @@ -419,7 +420,7 @@ else {

#Drivespace Check
if ($drivespaceCheckActive -eq $true) {
if ($drivespace -ge $drivespaceMinimum) {
if ($freedrivespace -ge $drivespaceMinimum) {
$complianceStatus = 'Compliant'
$drivespaceCompliant = $true
}
Expand Down

0 comments on commit c1343b4

Please sign in to comment.