Solved

Determine Internet explorer version

Posted on 2010-08-19
9
607 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
This article will help you understand what HashTables are and how to use them in PowerShell.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now