Showing posts with label Internet Explorer. Show all posts
Showing posts with label Internet Explorer. Show all posts

Friday, July 19, 2013

Set Internet Explorer Home Page using Powershell.

 

Hi,

Sometime in scripts or or in login scripts we want to set a users Internet Explorer home page to our Intranet site or to some other specific URL.

This became very handy and useful some times.

the code is below.

 

$myURL = "http://microsoft.com"
set-ItemProperty -Path 'HKCU:\Software\Microsoft\Internet Explorer\main' -Name "Start Page" -Value $myURL

In above code, we are setting a $myURL in to the registry key “HKCU:\Software\Microsoft\Internet Explorer\main”


Now lets test it.


 19-07-2013 20-45-26


i run the above code, and now my homepage should be set to “http://microsoft.com”


19-07-2013 20-46-47


wow!


Lets try one more, lets try to set google as a home page


19-07-2013 21-45-47


and let open the IE again.


Bingo ! working :)


19-07-2013 21-48-15


I hope you will like this little tweak.


and Happy weekend Guys :)


 




Thanks

Aman Dhally

 

 


clip_image001 clip_image002 clip_image003 clip_image005clip_image007

Monday, July 23, 2012

Reset "Internet Explorer" Settings to default using PowerShell script.


Hi,

Few days back we deployed an internal software, that software is Web based application, and users just need to open it on their browsers and start working on them.

Few of the users facing some problem and when we talked to our software development team they told us that they all need to reset their internet explorer settings to default.

Resetting "Internet Explorer" setting to default is an easy job, but when you need to do it on 20+ computers , that became hard.

First i thought to write a "How To" to the users but you know users always thinks they are clever and they don't follow everything which we mentioned in the "HOW TO" documents.

then i thought to automate it using the powershell script. The script is one-liner but i added few logic in to it.
You can include this script in any Desktop management script or so.

Download the script form this link : http://gallery.technet.microsoft.com/scriptcenter/Reset-Internet-Explorer-20f838e7

Few Screenshots of the script.

If the script found that IE window is open. it throw an error.

23-07-2012 16-10-52

23-07-2012 15-31-17

23-07-2012 15-39-12

Download the script form this link  :http://gallery.technet.microsoft.com/scriptcenter/Reset-Internet-Explorer-20f838e7 

Thanks for reading.

Thanks!
Aman Dhally
Buy-More-Twitter-Followers 4fb29548b6adc linkedin
003dfccd