PowerShell Convertir texto 20 MB a bytes
$str = '3GB'
$int64 = [int64]$str.Replace('GB','') * 1GB
Muddy Manx
$str = '3GB'
$int64 = [int64]$str.Replace('GB','') * 1GB