Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Windows 7 Login Scripts ?????????????

Reply
Thread Tools Display Modes

Re: Windows 7 Login Scripts ?????????????

 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      12-31-2009


"leemartin1985" <> said this in news item
news:...
>
> Have a strange one, hope someone can help.
>
> I am migrating our users from XP to Windows 7 and have looked at our
> legacy login scripts in an attempt to improve them. They use legacy apps
> like syncdir and If member to function, which is fine, but i wanted to
> script the lot.
>
>
> Basically I have a VBS scripted everything out and tested it fine. If i
> run this script logged in then it exectutes perfectly. Now the problem.
>
>
> Knowing that this works, I have a new Group Policy for Windows 7 and
> have point the login script section to my login script.
>
> When I login i get an error message.
>
> It says
>
> Line : 110
> Char 4
> Error: ActiveX component cant create object:
> 'InternetExplorer.Application'
> Code 800A01AD
> Microsfot VBScript runtime error
>
> Here is this section of the script, which is basically where i create
> the IE Window
>
> line 110 - Set oExplorer =
> CreateObject("InternetExplorer.Application")
>
> oExplorer.Navigate2 "about:blank"
> oExplorer.Width = 550
> oExplorer.Height = 300
> oExplorer.Top = 300
> oExplorer.Left = 300
> oExplorer.Toolbar = false
> oExplorer.Menubar = false
> oExplorer.Statusbar = false
> oExplorer.Visible = True
>
> What is weird, is like i say if i run this logged in no problems at
> all. after this fails, if i run it again logged in its fine. if i the
> delete some files ( as its a synchronisation script) and then log out
> and back in again it magically starts working again.
>
> now been fiddling with this all morning and think i have pinpointed it
> that once it has corrected itself again, if i then run a gp/update on
> the machine, once i have logged off/rebooted hey presto the problem
> returns.
>
> So basically first time i login in, it does not work, if i log out and
> then back in again then it is fine.
>
> seems like almost it does not have permission first time round????
>
> LIKE I SAID THIS IS ON A WINDOWS 7 MACHINE!!!!!!!!!!!!!!
>
> Apprecaite any help...............
>
>
> Thanks
>
> Lee
>
>
> --
> leemartin1985
> ------------------------------------------------------------------------
> leemartin1985's Profile: http://forums.techarena.in/members/169348.htm
> View this thread: http://forums.techarena.in/server-scripting/1288216.htm
>
> http://forums.techarena.in
>


It's a little hard working out from your description when exactly the script
fails. Would it be at first logon time, perhaps after a cold boot? If so
then the cause might be some missing ActiveX component, one that gets loaded
only later on. Have you tried inserting this statement just before you
create the oExplorer object:

wscript.sleep 20000

The other thing I do not understand is this statement: "Basically I have a
VBS scripted everything out". Please clarify.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Update Error Code: 80070005 Joe Davis Windows Update 33 05-05-2010 08:03 AM
Error number 80073712 naraku4656 Windows Update 51 02-18-2010 11:36 PM
Why is it Windows *7*? Charles Lavin Windows Vista General Discussion 46 01-07-2010 08:37 PM
try this Linky Wu Windows Server 0 12-21-2009 08:44 AM
"Some updates could not be installed" Antnee20x Windows Update 7 12-18-2009 07:01 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59