Generate list of all computers with Drive X mapped to Fixed Drive

1
2
$computers = @("server1","server2") # or use get-content to pull in list from file, or Get-ADComputer to pull in list from AD
Invoke-Command $computers { Get-Volume | Where {($_.DriveType -eq "Fixed") -and ($_.DriveLetter -eq "X") } }

Leave a Reply

Your email address will not be published. Required fields are marked *