Windows XP login scripts

  • Thread starter Thread starter Tim Brown
  • Start date Start date
T

Tim Brown

I am running Windows XP workstation and I want to run a program from the
server automatically via a login script when logging on. I have not been
successfull in getting the command to run from a login script (under Windows
XP) and therefore I have had to put it into a GPO under 'run these programs
at user logon'. This works OK but it then becomes part of the registry.
The problem here is that when a laptop starts off the network the program
still tries to load.

The command line is: start "c:\program files\internet explorer\iexplore"
http:\\intranet.ids.ac.uk

Is there a way of avoiding the laptops from trying to open this program when
offline?
 
Hi Tim,

If you put the command in registry, it will run when you use the same user
to log on unless you write a problem to determine whether it is online and
conditionally start this program. I am afraid that we are unable to isolate
a command in registry depending if it is only.

Actually, logon scripts should work on Windows XP successfully. If you put
the logon script on the domain controller as a domain logon script, the
computer will execute this script when it logs onto the domain and it will
be executed offline as the client is unable to receive the script. I am not
sure about how you configure this kind of policy and how it does not work.
Could you please carefully follow the article below to configure logon
script?

321707 HOW TO: Automatically Run Programs When Users Log On to Windows 2000
http://support.microsoft.com/?id=321707

265016 How to Run a Domain Logon Script in the Foreground with the Start.exe
http://support.microsoft.com/?id=265016

If it still not works, you can use Gpresult on command line to see if it
receives the logon script successfully. Also, you can read userenv.log in
your system to see how the scripts are processed.

Please let me know if this solves this issue or if you need further
assistance. I look forward to hearing from you.

Regards,

Eric Shen
Product Support Services
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! - www.microsoft.com/security
 
I have done some more experimenting and found that the command to load an
intranet page from the global login script does work but when it loads it
does not release the OS to load itself. The intranet page has to be closed
before the OS will load any further. Is there a word or symbol which can be
put in front of the command to let it continue to load the OS after loading
the intranet page and therefore leaving the intranet page open?
 
Hi Tim,

It is possible that you have configured this script as a computer logon
script in group policy instead of a user logon script. Please make sure
that you assigned the logon script in user configuration instead of
computer configuration. Computer logon script will be applied to any
computers in this domain and user logon script is for users in this domain
only.

If you configure computer logon script, the user cannot logon before the
computer logon script finishes. User logon script is running asynchronously
with user logon so they can occur at the same time. If you continue to
experience problem, please check the following:

1. What's the code inside the logon script? Please send to me.

2. Run GPresult on the client's command prompt and you will see whether it
is a computer logon script. Please send the results to me.

Please let me know if this solves this issue or if you need further
assistance. I look forward to hearing from you.

Regards,

Eric Shen
Product Support Services
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! - www.microsoft.com/security
 
Hi Tim,

This setting (Run logon scripts Synchronously) should be disabled so
Windows can continue to load when logon script is running. This setting is
used to direct the system to wait for the logon scripts to finish running
before it starts the Windows Explorer interface program and creates the
desktop.

If you enable this policy, Windows Explorer does not start until the logon
scripts have finished running. This setting assures that logon script
processing is complete before the user starts working, but it can delay the
appearance of the desktop. If you disable this policy or do not configure
it, the logon scripts and Windows Explorer are not synchronized and can run
simultaneously.

Please disable this policy and then check if this issue persists. You can
run GPResult /s to see detailed information. I look forward to hearing from
you.

Regards,

Eric Shen
Product Support Services
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! - www.microsoft.com/security
 
Thanks for all your help! You have pointed me in the right direction as I
have the command running from the default domain policy logon script
asynchronously and all is working, thanks.
 
Hi Tim,

I am pleased to hear that. Have a nice weekend.

Regards,

Eric Shen
Product Support Services
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! - www.microsoft.com/security
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top