Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 735
  • Last Modified:

Group Policy script to open IE on login

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
J Molina
Asked:
J Molina
  • 16
  • 14
1 Solution
 
honestman31Commented:
try this
Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate2 "http://home.nelnet.info"
objExplorer.Visible = 1
objExplorer.Toolbar = 1
0
 
honestman31Commented:
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
 
J MolinaIT AdminAuthor Commented:
Hi,
Nothing happend now...i've updated the group policy but nothing.
?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
honestman31Commented:
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
 
J MolinaIT AdminAuthor Commented:
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
 
honestman31Commented:
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
 
honestman31Commented:
also remember that the extension of the file must be .vbs  ( not .txt )
0
 
J MolinaIT AdminAuthor Commented:
Running windows server 2003 with Windows 7 machines and few XP's
0
 
J MolinaIT AdminAuthor Commented:
Yes, i name it  OpenIE.vbs
0
 
honestman31Commented:
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
 
J MolinaIT AdminAuthor Commented:
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
 
honestman31Commented:
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
 
honestman31Commented:
also try to run gpupdate /force   on the client machine ,  just in case
0
 
J MolinaIT AdminAuthor Commented:
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
 
honestman31Commented:
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
 
honestman31Commented:
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
 
J MolinaIT AdminAuthor Commented:
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
 
J MolinaIT AdminAuthor Commented:
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
 
honestman31Commented:
also run gpupdate \force  on the client
0
 
J MolinaIT AdminAuthor Commented:
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
 
honestman31Commented:
"IE does come up on login, but not full screen"   --> Do you want full screen or what ?
0
 
J MolinaIT AdminAuthor Commented:
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
 
honestman31Commented:
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
 
honestman31Commented:
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
 
J MolinaIT AdminAuthor Commented:
Ok, Great, let me try those and i'll keep you informed! Thank You!
0
 
J MolinaIT AdminAuthor Commented:
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
 
honestman31Commented:
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
 
J MolinaIT AdminAuthor Commented:
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
 
honestman31Commented:
Glad I could help , please let me know if you need anything else
0
 
J MolinaIT AdminAuthor Commented:
Great Job!
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 16
  • 14
Tackle projects and never again get stuck behind a technical roadblock.
Join Now