Tag Info

New answers tagged

0

Try Test-Path -LiteralPath $objDrive.DeviceID or Test-Path -LiteralPath $objDrive.ProviderName. Example with Select-Object and calculated property: $colDrives = Get-WmiObject Win32_MappedLogicalDisk -ComputerName localhost foreach ($objDrive in $colDrives) { $array += $objDrive | Select-Object DeviceID, ProviderName, @{ Name = ...



Top 50 recent answers are included