[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Determine Internet explorer version

Posted on 2010-08-19
9
Medium Priority
?
616 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
[X]
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
  • 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
Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

650 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