Solved

Logon Scripts

Posted on 2014-01-12
6
443 Views
Last Modified: 2014-01-31
I have a logon script located in the Netlogon share. Windows XP would not process the script. All works fine if run from the server manually. If I run the script from the  Netlogon share Windows XP does not process it. If I copy the script locally and execute, it runs fine. The home directory does not appear in my computer.

Can anyone provide any guidance on how to solve this issue?
0
Comment
Question by:mail2clk
6 Comments
 
LVL 19

Expert Comment

by:helpfinder
ID: 39775204
I assume you have working domain and a XP machine is member of this domain. Do you have this script set for a user you are logged in? (in profile tab in user properties in AD)
the same for home folder?
If so, is it working for the same user on different machine? Or is it working for different user on this XP machine?
0
 
LVL 35

Expert Comment

by:Mahesh
ID: 39775212
One another option is you could setup home directories for all users
You can use below article to setup home directories for all users
http://blogs.technet.com/b/askds/archive/2008/06/30/automatic-creation-of-user-folders-for-home-roaming-profile-and-redirected-folders.aspx
The above article will help you to create home directory for all users from active directory in one shot.
You can create root shared folder with permissions as indicated in above article
Then You can select all users at a time in a given OU, or through saved query and right click and go to properties, under properties, on profile tab you could just setup \\servername\rootshare\%username%
This variable will create home folder for all users underneath root shared folder with appropriate permissions and also get mapped automatically for them during logon.

Mahesh
0
 
LVL 23

Expert Comment

by:Danny Child
ID: 39775479
Check your eventlogs after the PC has booted, and see what errors are shown.  

also do
echo %logonserver%
at a CMD prompt to see which DC you're logging on with, and check the event logs there too.  Is the script appearing in the NETLOGON share on that server?

on the PC, can you see the contents when you do
\\DCname\NETLOGON
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 23

Expert Comment

by:Danny Child
ID: 39775484
Also, check the permissions on the Home folder are correct - can the user map a drive to there manually?

I'd also put a PAUSE command at the end of the logon script to force it to stop so you can see if it runs and generates any errors.  However, be careful with this if any other users will be logging on at the same time, as they'll get the
Hit Any Key To Continue...
as well!
0
 

Author Comment

by:mail2clk
ID: 39775559
The logon server is the exchange server and I checked the netlogon share and contains the same scripts as the netlogon share on the primary server. I added the pause command. If I run it from the Netlogon share the pause command does not work but I can see that the mapping of the drive completed successfully but does not appear in my computer. If I copy the script to the desktop the logon script works fine.
0
 
LVL 35

Accepted Solution

by:
Mahesh earned 500 total points
ID: 39775901
Just try to disconnect all mapped drives 1st on client computer and then logoff and log back on and see if you are getting mapped drives
May be drive letter conflict occuring

If that succeeded, then you can add below command on 1st line in logon script to disconnect all existing drives 1st and then reconnect again with net use command
net use * /d /y
net use * \\server\share\%username%

Mahesh
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reduce vmdk file & unallocated windows partion 12 77
why user can't see mapped share folder 8 41
cloning computer 13 63
SBS 2003 RWW Login 3 10
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

930 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

10 Experts available now in Live!

Get 1:1 Help Now