Solved

Group Policy script to open IE on login

Posted on 2010-11-08
30
711 Views
Last Modified: 2012-08-13
I'm trying to used vbscript to open IE to a specific site (intranet site) when users logon.
I've created  the vbscript but it opens in full screen or theather mode, which make it difucult for user who
may not know the f11 feature to go back to regular screen, so what i need it's to open up with regular screen.
this is the script i have:

Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate "http://home.nelnet.info"
objExplorer.Visible = 1

Please help! i need this done ASAP!

THANK YOU GUYS!
0
Comment
Question by:jbm1
  • 16
  • 14
30 Comments
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
try this
Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate2 "http://home.nelnet.info"
objExplorer.Visible = 1
objExplorer.Toolbar = 1
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
also try to add this

Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate "http://home.nelnet.info"
objExplorer.Visible = 1
objExplorer.Toolbar = 1
objExplorer.FullScreen = false
0
 

Author Comment

by:jbm1
Comment Utility
Hi,
Nothing happend now...i've updated the group policy but nothing.
?
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
nothing happened means what ?  no explorer  or you still getting the full screen ?
you placed this policy in computer on in users?
please
use the second code
1- run gpupdate on the DC
2-  restart the client machine

Also please make sure there is no conflict with other policy  , I mean could be another script that makes I.E runs in the full screen mode

0
 

Author Comment

by:jbm1
Comment Utility
Sorry, yes i mean that I've erase what i had on notepad, then i put the 2nd code, save it, then User configuration > Windows settings > Scripts (Logon/Logoff) > then double click on logon > I copy and paste to show profiles folder, then I've added it. Click ok.

Was that right? or can you give me the correct steps?

thank You again.

0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
are running 2008  or 2003 server ?
it  should be in USER --> Scripts -->Logon  folder ( in 2003 server  )
after you click ok , go to command line and run  gpupdate
restart the client machine  ( the windows xp or vista or 7 machine )
 
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
also remember that the extension of the file must be .vbs  ( not .txt )
0
 

Author Comment

by:jbm1
Comment Utility
Running windows server 2003 with Windows 7 machines and few XP's
0
 

Author Comment

by:jbm1
Comment Utility
Yes, i name it  OpenIE.vbs
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
I just tried that on virtual machines and it is just works fine .
Please check the attached picture to make sure we are in the same page , and you are adding the policy to the domain not to the domain controller
2EA4.jpg
0
 

Author Comment

by:jbm1
Comment Utility
I believe that is where added the script, but I will check first thing in the morning and confirm with you...

NOTE: If that's where i added the script, i did gpupdate on the DC server, restart the workstion a few time, waited for about 45 minutes and nothing happend,(no IE start up on login) what would you say would the issue?

Thank You
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
try  to use on the DC
gpupdate /force

restart the client machine
if still not getting the  IE  on the client machine  then from the DC ping the client machine  and from the client machine ping the DC  , to make sure they can see each others.  if the ping did not work  then yoy have a problem with your network , if the ping works on both sides then there is something wrong with your script
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
also try to run gpupdate /force   on the client machine ,  just in case
0
 

Author Comment

by:jbm1
Comment Utility
Hey, it Work!

But, it's not it doesn't come up normal-full screen, but i also don't want it to show theather mode or full screen mode that user won't be able to know how to get out of.
Let me know!
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
are u sing the code I provided you ?  this code ( objExplorer.FullScreen = false  )  will force IE to be in normal mode not in full screen mode.

however just try this one , and make sure you  run gpupdate /force    after you edit the script
Set objExplorer = CreateObject("InternetExplorer.Application")

objExplorer.FullScreen = false

objExplorer.Visible = 1

objExplorer.Toolbar = 1

objExplorer.Navigate "http://home.nelnet.info"

Open in new window

0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 10

Expert Comment

by:honestman31
Comment Utility
Also please let me know if you have another policy in  " Computer Configuration"  --> "windows settings"  that may force IE to start in full screen mode
0
 

Author Comment

by:jbm1
Comment Utility
Yeah i did, i copy it and paste onto it.

But i'll try that right now and give you an update shortly.

Thank You!
0
 

Author Comment

by:jbm1
Comment Utility
No other policy in Computer configuration > windows settings.

Ok, i've made the changes, I copy it and paste into it.
Also, on the add a scrip screen, i put the sript name but i left blank the "Script Parameters" hope that's ok

now i'll run the gpupdate \force on the server.

will give an update shorty.

0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
also run gpupdate \force  on the client
0
 

Author Comment

by:jbm1
Comment Utility
hey, i did just that, but it's still the same: IE does come up on login, but not full screen, which is what i'm looking for, i search if there was any other scripts; but there isn't any.
What else can we do?
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
"IE does come up on login, but not full screen"   --> Do you want full screen or what ?
0
 

Author Comment

by:jbm1
Comment Utility
Yes I want "regular full screen" with the options for minimize, all the tools & address and also the menu bar. Just as if you were to open Internet explorer from your desktop!

Can we tweat it someone???
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
ok ,this should be the code
Play with  
iHeight = 600
iWidth       = 800
until you get the best result you want
Set objExplorer = CreateObject("InternetExplorer.Application")

objExplorer.Navigate "http://home.nelnet.info"

objExplorer.FullScreen = false

iHeight = 600

iWidth 	= 800

objExplorer.Visible = 1

objExplorer.Toolbar = 1

objExplorer.Width = iWidth

objExplorer.Height= iHeight

Open in new window

0
 
LVL 10

Accepted Solution

by:
honestman31 earned 500 total points
Comment Utility
Also this one ( better )  , don't forget   gpupdate /force
Set objExplorer = CreateObject("InternetExplorer.Application")



objExplorer.FullScreen = True

iWidth = objExplorer.Width

iHeight = objExplorer.Height

objExplorer.FullScreen = False



objExplorer.AddressBar = false

objExplorer.MenuBar = true

objExplorer.StatusBar = true

objExplorer.ToolBar = true

objExplorer.Visible = false



objExplorer.Top = 0

objExplorer.Left = 0

objExplorer.Width = iWidth

objExplorer.Height = iHeight -50

objExplorer.Visible = true

objExplorer.Navigate "http://home.nelnet.info"

Open in new window

0
 

Author Comment

by:jbm1
Comment Utility
Ok, Great, let me try those and i'll keep you informed! Thank You!
0
 

Author Comment

by:jbm1
Comment Utility
The same! it brings up IE but not full page; i've try the last one you posted. Should I try the first post?
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
to make sure if the script is working or not  just  create a file in your desktop  name it  whatever.vbs   then insert the code in it  and save it  .. double click on it, if it works fine they way you want it then  copy the code to  the grope policy and save it  and remember to run gpupdate /force  on the DC  and on the client machine as well  . and then reboot the client machine ,,  if after all of this you are not getting the result you want then you have a network problem or another problem .( you may try another client machine and let me know  )
0
 

Author Comment

by:jbm1
Comment Utility
It work now! it's not like a regular full screen, but it covers almost the entire screen. Thank you for the assistance; it's greatly appreciated!
JM
0
 
LVL 10

Expert Comment

by:honestman31
Comment Utility
Glad I could help , please let me know if you need anything else
0
 

Author Closing Comment

by:jbm1
Comment Utility
Great Job!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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