B
bradn901cb
Guest
I feel like an idiot - I can't figure this one out.
I'm extremely new to Powershell, and even scripting in general.
I can't figure out how to do this:
$pct = $DiskDrive.FreeSpace /= $DiskDrive.Size
It doesn't work as / either.
The operation '[System.UInt64] /= [System.UInt64]' is not defined.
At C:\powershell\Test Scripts\freespace2.ps1:7 char:31
+ $pct = $DiskDrive.FreeSpace /= <<<< $DiskDrive.Size
From what I can tell /= will divide the objects' values.
Am I using this incorrectly? I just want a percentage of freespace
Thanks!!
--
bradn901cb
I'm extremely new to Powershell, and even scripting in general.
I can't figure out how to do this:
$pct = $DiskDrive.FreeSpace /= $DiskDrive.Size
It doesn't work as / either.
The operation '[System.UInt64] /= [System.UInt64]' is not defined.
At C:\powershell\Test Scripts\freespace2.ps1:7 char:31
+ $pct = $DiskDrive.FreeSpace /= <<<< $DiskDrive.Size
From what I can tell /= will divide the objects' values.
Am I using this incorrectly? I just want a percentage of freespace
Thanks!!
--
bradn901cb