Got a wierd issue but I'm sure someone can answer me:
So the following powershell is used:
$a = 20mb
$a.gettype() outputs an int32
BUT
If I do a read-host, example below:
$b = read-host
20mb
$b.gettype() outputs a string
So then I try the following:
[int]$d = read-host
20mb
Then I receive a "Cannot convert value "20mb" to type "System.Int32""
Can anyone tell me how to use read-host to create an int32 for the read in value 20mb?
Thanks in advance.
Dave