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

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Beautiful!! Thank you!

    ReplyDelete
  3. How can we set it for all user profiles on a machine ?

    ReplyDelete

Note: Only a member of this blog may post a comment.