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

$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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.