Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Determine Internet explorer version

Posted on 2010-08-19
9
608 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
Does Powershell have you tied up in knots?

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

789 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