RE: vb script called from login script exits when login script ter



That's a bummer to hear that it can't be done normally, but I will try the
method suggested. I haven't had a chance to try it yet but hopefully will
later this week.

The reason we need to do this is, tied to us moving from Novell NetWare to
Windows. In Novell our login times (from the time the user types in their
user ID and password and hit Enter on the Novell login screen to the time the
user gets their desktop) was about 30 seconds. With the pure Windows login
and running Windows login scripts the login time is about 1 minute and 10
seconds (give or take 10 seconds) with a very bare bones login script. So
we're looking at the login script and separating out what absolutely has to
run before the user gets their desktop (drive mappings, some critical
software installs and patches) and what can wait until after the user gets
logged in and starts working (printer deployment and a few other things).

On a side note, our Corporate folks have already worked with Microsoft
Support on the slower login issue and according to them it's down to as short
a time as it's going to get. We are down from about 4 minutes to the 1:10 so
that was an improvement but still not as good as our NetWare login times.


"WenYuan Wang [MSFT]" wrote:

Hello CLH,
Thanks for your reply.

I'm sorry I misunderstood the issue before. Now, I understood your issue as
below:
The synchronous part of VBScript works fine. Explorer.exe waits until the
script has completed before running. The issue is that asynchronous part of
VBScipt is terminated after the synchronous part of logon script is
finished.
Please correct me if I misunderstood anything here again.

I reproduced this issue on my side.
After performed further research, I noticed this behavior is by design.

*If your Windows 2000 logon script runs synchronously, all child processes
are stopped when the logon script ends.*
http://www.jsifaq.com/SF/Tips/Tip.aspx?id=7938
[7938 " When your Windows 2000 logon script ends, child processes started
by the script also end? 15-Apr-04]

We cannot combine these two part of login script in one script.
My suggestion is that you may set the asynchronous part of your Logon
Script as Logon Script in (Administrative Templates|System|logon|"Run this
progame at user login"). Thereby, it will be executed after user gets their
desktop.
Under my test, this way seems work fine on my side.

Would you please try the above method and let me know if it works on side?
If you face any further issue or there is anything unclear, please feel
free to let me know. We are glad to assist you.

Hope this helps,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • Re: Hacker activity?
    ... >login to a server, most as root but some are attempts to login to ... >telnet, all come from the same remote server, and all fail. ... >getting some odd cgi calls to a script on a secure ssl server. ... Make sure root cannot login to your system via ssh. ...
    (freebsd-questions)
  • Re: Mapped Drives Diasppear????
    ... But for the user Administrator I dont have anything on that tab for the ... Logon Script, I do not want a logon script for it. ... which is run by everyone when they login. ...
    (microsoft.public.windows.server.sbs)
  • Abusing poor programming techniques in webserver scripts V 1.0
    ... $login = Request.Form ... fool the database parser. ... verified in the script of access to the database, ... The SQL statement will be parsed by the database manager, ...
    (SecProg)
  • Re: Authenticate Computer and Users to particular User Group
    ... Objective: Login authentication must be verified using this scenario: ... If computer is member of "AA or BB computer" group ... appreciate it if someone could help me out with a starter script. ... PowerShell has some drawbacks for logon scripts: ...
    (microsoft.public.scripting.wsh)
  • e107 remote commands execution
    ... Login bypass / remote code execution / cross site scripting ... "e107 is a content management system written in php and using the popular ... a script byrgod at <a href="http://rgod.altervista.org " ... //so, you see, we activate public uploads and .php extensions for attachments ...
    (Bugtraq)