Showing posts with label diskpart. Show all posts
Showing posts with label diskpart. Show all posts

25 July 2023

Rescan disks remotely for a list of computers

 Get-Content .\records.txt | %{Invoke-Command -ComputerName $PSItem -ScriptBlock {@('RESCAN','EXIT') | diskpart}}