I have this line of code in my powershell script:
$a=$mailboxtomigrate.totalitemsize | Select-String "GB", "MB", "KB" | Out-String
is there way to add if else statement to it? the result is "MB" or "KB" I want to covert it to GB, how do I do this?
thank you in advance