Solved

Determine Internet explorer version

Posted on 2010-08-19
9
604 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
 

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
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 …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

12 Experts available now in Live!

Get 1:1 Help Now