Logon Script does not run in XenApp 65 (Server 2008 R2)

Posted on 2013-05-12
Last Modified: 2013-05-18
Do logon scripts still work in Server 2008 R2?

Our users currently run in a XenApp 5 (Server 2003) environment. The scripts all run correctly.
However in the new XenApp 6.5 (Server 2008 R2) farm that I am testing, the scripts do not run.

There are no events produced that refer to the script running or failing.
Question by:Howzatt
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Assisted Solution

by:Vijaya Reddy Pinnapa Reddy
Vijaya Reddy Pinnapa Reddy earned 250 total points
ID: 39160218
Logon scripts still works in Windows Server 2008 R2.

For your try to install this hotfix and check the problem.

Author Comment

ID: 39160229
I think I read that article yesterday and installed the hotfix (not 100% that it is the same one, but will retry anyway).

Just to clarify, in Server 2008 R2, All I should need to do is it make sure the logon script batch file is entered under the logon script field under the user profile Tab in AD? I don't need to publish it via GPO instead?

Author Comment

ID: 39160252
The hotfix didnt change anything unfortunately. Still no script running.
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.


Assisted Solution

by:Vijaya Reddy Pinnapa Reddy
Vijaya Reddy Pinnapa Reddy earned 250 total points
ID: 39160267
where u put the script file?
Put the script in the netlogon share and then it should run on boot and try it.

Author Comment

ID: 39160271
Could it have something to do with users being able to view the scripts/policies folder in the domain root?

If I try browse to the UNC, I don't see any files on the Server 2008 R2 Server. However I can see the files if I browse the UNC on Server 2003

Author Comment

ID: 39160274
The scripts are in both Netlogon and Scripts folders.

Assisted Solution

JHalliday earned 125 total points
ID: 39161127
This might sound like a pedantic question but are you specifying the script in the users set-up in the users Profile tab of Active Directory (see below) ?

 Logon Script Field
This should be just the name of the script i.e. logon.bat OR it can be a full UNC path to a common folder that the user has Read access to i.e. \\myserver\myshare\logon.bat


LVL 10

Assisted Solution

by:Casey Herman
Casey Herman earned 125 total points
ID: 39161280
Is this a printer related script?

Author Comment

ID: 39161610
That's correct. I enter the script name in the Logon Script Field.
The script is used to map network shares to the users.

I think I know the issue now. Just realised that I cannot browse to any UNC path. It errors saying that "Accessing this resource has been disallowed".

Now I just need to find out if I set it in a local or Group Policy.

Accepted Solution

Howzatt earned 0 total points
ID: 39161650
The issue in the end was that I had enabled the setting in GPO to hide "Run" from the start menu. This for some reason also stops you from browsing UNC paths. I removed the setting and the script ran perfectly.

Author Closing Comment

ID: 39176884
Adding my answer as it shows the steps to resolve.

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

691 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