Home » KBArticles » SCRIPT: Check File Version on multiple Servers

SCRIPT: Check File Version on multiple Servers

 Dim strFolder
        Dim arrServers
        Dim strProfile
      strProfile = “C$WindowsSysWOW64MacromedFlashflash10v.ocx”
       arrComputers =     Array(“server1″,”server2”)
        Set objFSO = CreateObject(“Scripting.FileSystemObject”)
        sOutput=”Script Results for:” & strprofile & vbcrlf & vbcrlf       
        For EACH strComputer in arrComputers
 sOutput = sOutput & objFSO.GetFileVersion (“\”& strComputer & strProfile) & vbtab & strComputer & vbcrlf
        On Error Resume Next               
        Next
        wscript.echo sOutput

Leave a Reply

Your email address will not be published.

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