Powershell Internet Explorer Version
I am looking for a powershell comand to find the version of internet explorerer installed on pc on the network?  We need a minimal version of Interent Explorer 8 to be used on workstations and want to find out which ones have it and which don't. 
January 6th, 2011 6:58pm

here you go:

gc Servers.txt | foreach
{ [system.diagnostics.fileversioninfo]::GetVersionInfo("\\$_\C`$
\program files\internet explorer\iexplore.exe") }
Free Windows Admin Tool Kit Click here and download it now
January 6th, 2011 7:16pm

If you need a quick list of all the computers on your network to feed to that:

net view |% {if ($_ -match "^\\\\(\S+)"){$matches[1]}}

January 6th, 2011 7:29pm

 

I tried your it out but am told this by Powershell:

PS C:\servers> gc Servers.txt | foreach

cmdlet ForEach-Object at command pipeline position 2
Supply values for the following parameters:
Process[0]: { [system.diagnostics.fileversioninfo]::GetVersionInfo("\\$_\C`$
Process[1]: \program files\internet explorer\iexplore.exe") }
Process[2]:
ForEach-Object : Cannot bind parameter 'Process'. Cannot convert the "{ [system.diagnostics.fileversioninfo]::Ge
nInfo("\\$_\C`$" value of type "System.String" to type "System.Management.Automation.ScriptBlock".
At line:1 char:25
+ gc Servers.txt | foreach <<<<
    + CategoryInfo          : InvalidArgument: (:) [ForEach-Object], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.ForEachObjectCommand

 

Free Windows Admin Tool Kit Click here and download it now
January 6th, 2011 7:59pm

You can also get it from the registry:

Invoke-Command -ComputerName (gc Servers.txt) {$env:COMPUTERNAME + " - "+ (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Internet Explorer').Version}

 

January 6th, 2011 8:03pm

it should be all in one line and servers.txt should have the pcs you want to check for:

gc Servers.txt | foreach {[system.diagnostics.fileversioninfo]::GetVersionInfo("\\$_\C`$\program files\internet explorer\iexplore.exe") }

Free Windows Admin Tool Kit Click here and download it now
January 6th, 2011 8:12pm

when I run the registry command locally without the invoke-command I get mixed results. It returns version 9.11.9600.18015.  I open IE and view About it shows version 11.  I look at the registry and version number is 9.11.9600.18015.  But the svcVersion key shows 11.0.9600.18015 which agrees with the About view.  The different versions show 9600.18015 if the matters.   svcUpdateVersion is 11.0.23.   Any thoughts on why I am not getting the installed version?  Thanks
September 10th, 2015 6:27pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics