PowerShell konvertieren Text 20MB in Bytes

$str = '3GB'

$int64 = [int64]$str.Replace('GB','') * 1GB
Muddy Manx