Home Forums SQL Server 2008 SQL Server 2008 Administration Powershell: "a positional parameter cannot be found that accepts argument 'system.object '" RE: Powershell: "a positional parameter cannot be found that accepts argument 'system.object '"

  • Change

    $Output = Get-WmiObject Win32_logicaldisk Format-Table DeviceId, MediaType, Size, FreeSpace -auto

    to

    $Output = Get-WmiObject Win32_logicaldisk | Format-Table DeviceId, MediaType, Size, FreeSpace -auto