Re: Stop user from shutting down logon script
From: Sofia Engvall (ask_at_ask.ask)
Date: 01/17/05
- Next message: Sofia Engvall: "Arguments through wsf to vbs"
- Previous message: Torgeir Bakken \(MVP\): "Re: Stop user from shutting down logon script"
- In reply to: Torgeir Bakken \(MVP\): "Re: Stop user from shutting down logon script"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Stop user from shutting down logon script"
- Reply: Torgeir Bakken \(MVP\): "Re: Stop user from shutting down logon script"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 Jan 2005 14:51:53 +0100
"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:ODpmCUJ$EHA.3924@TK2MSFTNGP15.phx.gbl...
> Sofia Engvall wrote:
>> 1. How do I stop the user from shutting down the execution
>> of a vbs/wsf logon script?
> See 2.
Is there no other way than 2? I'm thinking of how kixtart throws people out.
>> 2. Is there a way to make windows execute a logon script before
>> showing the desktop.
>
> You can suppress this behavior (set it back to how Win2k behaves):
What I've seen 2k & xp behaves the same. They both show the desktop and then
runs the script. And people the to access the drives that aren't set up
yet...
> With Group Policy:
> Computer Configuration\Administrative Templates\System\Logon
> \Always wait for the network at computer startup and logon
>
> By registry edit; Set the value SyncForegroundPolicy to 1 (REG_DWORD) in
> this key:
>
> HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT
> \CurrentVersion\Winlogon\
Great! I'll check it out. :)
Does it work for both 2k & xp? It appears to be xp only :-(
> More here:
>
> Description of the Windows XP Professional Fast Logon Optimization Feature
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;305293
>
> Scripts May Not Run Before Windows Explorer Starts Even Though
> the "Run Logon Scripts Synchronously" Setting is Enabled
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;304970
>
>
>> 3. I'm thinking about using a fullscreen ie window for output.
>> I have found no function to force this window to the top.
>
> Setting the policy mentioned in 2., this is nothing to worry about
> (because nothing else than the IE window is showing while the logon
> script runs).
The problem is if the user run's the script using vpn and already has ie
windows in the background. Any ideas?
> Here is some IE example code you could use as a starting point for
> a logon script GUI:
>
> http://groups.google.co.uk/groups?selm=400F20F1.AD140C21%40hydro.com
I got the info I have from the object on my machine (IE6sp2). Does not
earlier versions of ie support .Fullscreen?
Exactly what is ".readyState = 4"? Do you have a list of functions and
properties and in which ie versions they work?
I didn't think of that you could have with's inside with's, cool! :-)
> In case people has used the search bar in IE in their previous logon
> session, you should turn it off before opening IE, setting the
> ShowBrowserBar property before you call the SetupMSIE sub, like the
> code in this post:
>
> http://groups.google.co.uk/groups?selm=40326016.D28ABB5B%40hydro.com
I guess there's a reason why you do this in a separate ie window, what?
I tried this: Turned on the search thing. Run my current IE script. I didn't
see the search thing. When I open another ie windows I get it though. Is
this another ie version variation? My function to open ie (where objIE is
the InternetExplorar.Application):
Function IEOpen()
objIE.Navigate "about:blank"
objIE.Document.Title = "Logon Script"
objIE.StatusBar = 0 : objIE.ToolBar = 0
objIE.Fullscreen = 1 : objIE.Visible = 1
objIE.Document.Body.Text = "#DDDDDD"
objIE.Document.Body.bgcolor = "#111111"
objIE.Document.Body.InnerHTML = "<BASEFONT face=Verdana><FONT size=3>"
End Function
>> 4. If anyone has tips on how to run a logon script at vpn logon
>> they are very welcome! :)
> See if your VPN software supports launching a script after the
> connection is done. If so, let the VPN script launch the logon script.
That's the problem, it doesn't.
Thanks!!! :-)
/Sofia
- Next message: Sofia Engvall: "Arguments through wsf to vbs"
- Previous message: Torgeir Bakken \(MVP\): "Re: Stop user from shutting down logon script"
- In reply to: Torgeir Bakken \(MVP\): "Re: Stop user from shutting down logon script"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Stop user from shutting down logon script"
- Reply: Torgeir Bakken \(MVP\): "Re: Stop user from shutting down logon script"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|