I am trying to query computers for local disks and the function that I have works well when querying my local machine, but when I query a server which has a number of local disks I get the following error:
Method invocation failed because [System.Object] does not contain a method named ‘op_Division’.
At C:\Users\xxx\Desktop\LocalDisk.ps1:43 char:5
-
$Prop=@{ -
~~~~~~~~- CategoryInfo : InvalidOperation: (op_Division:String) , RuntimeException
- FullyQualifiedErrorId : MethodNotFound