Get file version remotely using PowerShell PS C:\> gc servers.txt | foreach { [system.diagnostics.fileversioninfo]::getversioninfo($_) }