Solved

Logon script mapping important drive fails in a 2003-terminal-server farm

Posted on 2011-09-05
6
458 Views
Last Modified: 2012-05-12
On our Windows Server 2003 farm logon scripts that are processed via Logon Scripts map drives succsesfully in almost any situation.

Periodically though it doesn't work, and now I discovered that for one particular group of users this is almost allways the case, and those are users that have a startup-link placed in their profile (<userprofile>\Start Menu\Programs\Startup).

Whats happening in the state of Denmark?
0
Comment
Question by:jmateknik
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:Daelt
ID: 36483127
i dont get it very clearly.

Did you copy a script on their (<userprofile>\Start Menu\Programs\Startup)?
What is the purpose of this special setting in this group only?

0
 
LVL 1

Author Comment

by:jmateknik
ID: 36483317
The terminal-server farm is a hosting-solution for our customers, that use the same specialized Navision product from their terminal sessions.

The script fails in rare cases/periodically for users, but for one particular group of users it fails often. This group of users have this URL in their profile\Start Menu\Programs\Startup folder.

The script has nothing to do with the URL being initiated from the startup folder, but the URL points to an intranet site outside the network.

Hope this clarifies...

0
 
LVL 4

Expert Comment

by:Daelt
ID: 36483398
do you see the login script window when it fails?

On good test to do is also to try to launch the script manually from one of this user session.
Try to launch it from the netlogon folder and try to launch it locally (paste the script file in their session)

You should be able to see if there is any problem executing the script into the cmd window.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:jmateknik
ID: 36483779
do you see the login script window when it fails?
Nope, but I have tried enabling the policy 'Run logon scripts visible", and then it shows a commandprompt (the script is loaded)"
On good test to do is also to try to launch the script manually from one of this user session.
Try to launch it from the netlogon folder and try to launch it locally (paste the script file in their session)
Both scenarios maps the drive (runs the script correctly).

AND if I remove all user-data on a test-user with similar gropu policy settings, the drive is mapped.

I tried enabling the group policy "Run Logon Scripts synchronously" to .. [citat:] "..direct the system to wait for the logon scripts to finish running before it starts the Windows Explorer interface program and creates the desktop". This causes the script to not being run even without the URL in the startup-folder.

So - I'm still in trouble...
0
 
LVL 4

Accepted Solution

by:
Daelt earned 500 total points
ID: 36484076
Let the Run Logon Scripts synchronously to off

Stay in the same "System" tree of group policies :
- Check that Netlogon>Netlogon share compatibility is off or not configured
- Try enabling scripts>Run logon scripts Asynchronously, see the results

AND if I remove all user-data on a test-user with similar gropu policy settings, the drive is mapped.
Can you be more specific and give details please?
0
 
LVL 1

Author Closing Comment

by:jmateknik
ID: 36486939
I found the culprit which hadn't anything to do with Group Policy, but simply our script calling a different script to set global uservariables, but since this script then runs synchronously with the "motherscript", unfortunately in some situations the variables are set, and some they're not.

I give you a good and partyially for your effort - thanks for trying to help.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Installing a printer using group policy preferences is not that hard let’s take a look at it. First lets open up your group policy console and edit the policy you want to add it to. I recommend creating a new policy for each printer makes it a l…
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now