richardstuartpowell
asked on
Audit all domain computers for browser version
Hi,
I need to check all of the computers in our domain and create a report that lists each workstation and the version of internet explorer they have installed on them (or if they have a different web browser installed). This should be relatively straightforward but I have been searching the internet for days and I can't find any way to achieve this.
NB: All workstations running Windows XP - domain is W2K3 with approx. 200 computers.
Please help - this is urgent!
Richard Powell
I need to check all of the computers in our domain and create a report that lists each workstation and the version of internet explorer they have installed on them (or if they have a different web browser installed). This should be relatively straightforward but I have been searching the internet for days and I can't find any way to achieve this.
NB: All workstations running Windows XP - domain is W2K3 with approx. 200 computers.
Please help - this is urgent!
Richard Powell
Hi Richard
This is a question I answered before and should help to start you off.
https://www.experts-exchange.com/questions/26924043/Powershell-Report-on-Number-of-Client-PCs-in-Forest-by-Internet-Explorer-Version.html
Jawa29
This is a question I answered before and should help to start you off.
https://www.experts-exchange.com/questions/26924043/Powershell-Report-on-Number-of-Client-PCs-in-Forest-by-Internet-Explorer-Version.html
Jawa29
ASKER
Hi jawa29
I've looked at your script but I'm not 100% sure how to use it.
Can you send me the finished script to scan all of the computers in a domain called iems.toytown.com please?
When I run the script I just get the black DOS window with no messages whatsoever - it just sits there and it's not creating the text file (Set oTextFile = oFSO.OpenTextFile("C:\IE_V ersion_Res ults.csv", ForWriting, True) either - do I just need to wait a while?
Rich.
I've looked at your script but I'm not 100% sure how to use it.
Can you send me the finished script to scan all of the computers in a domain called iems.toytown.com please?
When I run the script I just get the black DOS window with no messages whatsoever - it just sits there and it's not creating the text file (Set oTextFile = oFSO.OpenTextFile("C:\IE_V
Rich.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
My script requires that you have all of your domain computers (or ones you want to scan) in a file called computers.txt. If you don't have that already, use this code to dump all computers to a file.
Regards,
Rob.
Regards,
Rob.
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Set objRootDSE = GetObject("LDAP://RootDSE")
'strRootDSE = objRootDSE.Get("configurationNamingContext")
Set objNetwork = CreateObject("WScript.Network")
Set objComputers = GetObject("WinNT://" & objNetwork.UserDomain)
objComputers.Filter = Array("Computer")
Set objOutputFile = objFSO.CreateTextFile("computers.txt", True)
For Each objComputer In objComputers
objOutputFile.WriteLine objComputer.Name
Next
objOutputFile.Close
Set objOutputFile = Nothing
MsgBox "Done"
ASKER
Superb response + excellent solution / script !
Thanks a million :-)
Rich.
Thanks a million :-)
Rich.
As far as getting the version of IE goes, this should do it. As for determining other browsers, that's more difficult because there's so many.....
Regards,
Rob.
Open in new window