Solved

Group Policy script to open IE on login

Posted on 2010-11-08
30
715 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
ID: 34088813
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
ID: 34088829
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
ID: 34088942
Hi,
Nothing happend now...i've updated the group policy but nothing.
?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 10

Expert Comment

by:honestman31
ID: 34089022
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
ID: 34089064
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
ID: 34089163
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
ID: 34089329
also remember that the extension of the file must be .vbs  ( not .txt )
0
 

Author Comment

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

Author Comment

by:jbm1
ID: 34089486
Yes, i name it  OpenIE.vbs
0
 
LVL 10

Expert Comment

by:honestman31
ID: 34089537
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
ID: 34089804
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
ID: 34091977
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
ID: 34092552
also try to run gpupdate /force   on the client machine ,  just in case
0
 

Author Comment

by:jbm1
ID: 34093017
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
ID: 34093142
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
 
LVL 10

Expert Comment

by:honestman31
ID: 34093257
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
ID: 34093281
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
ID: 34093562
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
ID: 34093644
also run gpupdate \force  on the client
0
 

Author Comment

by:jbm1
ID: 34094770
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
ID: 34094797
"IE does come up on login, but not full screen"   --> Do you want full screen or what ?
0
 

Author Comment

by:jbm1
ID: 34094839
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
ID: 34095100
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
ID: 34095387
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
ID: 34095455
Ok, Great, let me try those and i'll keep you informed! Thank You!
0
 

Author Comment

by:jbm1
ID: 34096237
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
ID: 34096474
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
ID: 34097211
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
ID: 34097287
Glad I could help , please let me know if you need anything else
0
 

Author Closing Comment

by:jbm1
ID: 34097550
Great Job!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the biggest threats facing all high-value targets are APT's.  These threats include sophisticated tactics that "often starts with mapping human organization and collecting intelligence on employees, who are nowadays a weaker link than network…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 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

16 Experts available now in Live!

Get 1:1 Help Now