No problem! BTW, I don’t know if you’re aware of this, but you don’t need to hard-code the value 1073741824. PowerShell gives you a more readable version of that: 1GB
$totalSpaceGB = $wmiDriveSize.Size / 1GB $freeSpaceGB = $wmiDriveSize.FreeSpace / 1GB