Hi guys,
the result of $RDXtot is a number like 23,50
the result of $RDXused is a number like 10.50
so the question is, how can i change format of $RDXused in 10,50 ?
so with coma ',' and not with the dot '.'
Other question is: is it possible to convert automatically in TB if the number is bigger than 1000 MB or in MB format if less then 1000 MB ?
$Using:DriverLetter = 'X:'
$RDXstorage = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID = '$Using:DriverLetter'"
$RDXtot = "{0:N2}" -f ($RDXstorage.Size/1GB) + " GB"
$RDXused = ([Math]::Round($RDXstorage.Size/1GB,2)) - ([Math]::Round($RDXstorage.FreeSpace/1GB,2))