Solved

Determine Internet explorer version

Posted on 2010-08-19
9
609 Views
Last Modified: 2012-06-21
Does any one have a poweshell script that will detect IE version from a text file with PC names ?
0
Comment
Question by:jfgray
  • 6
9 Comments
 
LVL 10

Expert Comment

by:wdurrett
ID: 33477149
Check this thread for your answer.

http://www.powergui.org/thread.jspa?messageID=35811

0
 

Author Comment

by:jfgray
ID: 33477370
I would like to do this were it will read the pc names from a text file located at c:\computers.txt
0
 
LVL 14

Expert Comment

by:athomsfere
ID: 33477418
you shouldn't even need powerscript, a command prompt should do it

http://support.microsoft.com/kb/556019
0
Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

 

Author Comment

by:jfgray
ID: 33478015
when I run this I get invalid character at line 1Char 1

@echo off
 
Srvlist=C:\Temp\Srvlist.txt
 
Echo Computer Name, Default Home Page >> Result.csv
 
SET Default_URL=
 
For /F “Tokens=*” %%a In (%srvlist%) Do (
 
Set Comp_name=%%a
 
Set RegQry=”\\%%a\HKLM\Software\Microsoft\Internet Explorer\Main” /v Default_Page_URL
 
REG.exe Query %RegQry% > CheckCC.txt
 
Find /i "Default_Page_URL" < CheckCC.txt > StringCheck.txt
 
FOR /f “Tokens=3” %%b in (CheckCC.txt) DO SET Default_URL=%%b
 
Echo %Comp_name, %Default_URL% >> Result.csv
 
)
0
 

Author Comment

by:jfgray
ID: 33478701
ok I am trying this

function check-remotefile {
   
      PROCESS {

$files = "\\$_\\c$\Program Files\Internet Explorer\iexplore.exe"

write-host dir $files | format-list VersionInfo

  }

            }


 Get-Content  C:\pshell\Active_Computers.txt | check-remotefile
0
 

Author Comment

by:jfgray
ID: 33478745
Any advice it returns

dir \\0000ADM87428L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000AVN38361L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000CAF40112L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000DTR65685L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000DTR78626L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000EXC65288D\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000EXC87407L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000FIC70019L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000FPL03855\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000FPL67320L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000HER86518L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000IDD70583L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000ISR107444L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000ISR87554L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000MDS71969L\\c$\Program Files\Internet Explorer\iexplore.exe
dir \\0000REP71452L\\c$\Program Files\Internet Explorer\iexplore.exe

Instead of version info
0
 

Accepted Solution

by:
jfgray earned 0 total points
ID: 33478824
OK figured it out here is what I came up with
==================================================================
Clear

function check-remotefile {
   
      PROCESS {

$files = "\\$_\\c$\Program Files\Internet Explorer\iexplore.exe"

 dir $files | format-list VersionInfo

  }

            }


 Get-Content  C:\pshell\Active_Computers.txt | check-remotefile

=============================================================
0
 

Author Comment

by:jfgray
ID: 33478841
This returns

VersionInfo : File:             \\1085VM87506TC1\c$\Program Files\Internet Explorer\iexplore.exe
              InternalName:     iexplore
              OriginalFilename: IEXPLORE.EXE.MUI
              FileVersion:      8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339)
              FileDescription:  Internet Explorer
              Product:          Windows® Internet Explorer
              ProductVersion:   8.00.6001.18702
              Debug:            False
              Patched:          False
              PreRelease:       False
              PrivateBuild:     True
              SpecialBuild:     False
              Language:         English (United States)
             
Any way to only get this

FileVersion:      8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339)
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question