Page 2 of 3 <123>
Topic Options
#163005 - 2006-06-07 11:03 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
this is totally usual case (seen it many times)
but the reason for it seems to be unknown for all.

tweaked even the timeouts on server and client back then, when tried to figure it out.
it only happened on some xp clients, so it was left unsolved.
_________________________
!

download KiXnet

Top
#163006 - 2006-06-08 03:04 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
From what I can tell, it would seem to be tied to the user, not the workstation. I have roaming profiles in my environment, so I can move users at will. I had a couple of them log into different machines this morning, and they still didn't get their drives. Any thoughts on what in a user profile might prevent them from running the executable? I know it isn't running because I am not getting error logs from them, although I am getting logs from others.
Top
#163007 - 2006-06-08 04:35 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
one word to your code :

Quote:


IF @ERROR NOT = 0





syntactically isn't correct as NOT isn't a conditional operator but a logical one and will cause the script to die on an unhealable "error in expression" in the case @error is anything else than 0 (At least that's I think it will do)

This one would fit better:

Code:

if @error <> 0



or even

Code:

if @error



as this will evaluate a true condition if @error is anything else than 0
_________________________



Top
#163008 - 2006-06-08 05:19 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

From what I can tell, it would seem to be tied to the user, not the workstation. I have roaming profiles in my environment, so I can move users at will. I had a couple of them log into different machines this morning, and they still didn't get their drives. Any thoughts on what in a user profile might prevent them from running the executable? I know it isn't running because I am not getting error logs from them, although I am getting logs from others.



Make up your mind. What is it? They get drives that disappear or they don't get anything?
Quote:

I have users reporting that the mapped drive literally disappears from their "My Computer" windows



Which problem are we chasing?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#163009 - 2006-06-08 06:32 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
How do you change the timeouts? I have one particular drive that I know is timing out for some clients (large drive with poor directory structure). If given enough time, the drive will come up, so I need a way to make the client wait for that drive to map.
Top
#163010 - 2006-06-08 06:35 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
Lighten up, Francis...
I am seeing both problems. On some clients, the script doesn't appear to be running at all (they may not even be calling the executable, I haven't been able to tell yet). I am also getting reports from a small number of clients where the drives disappear from their "My Computer" after login, although they do map initially.


Edited by svivian (2006-06-08 07:35 PM)

Top
#163011 - 2006-06-08 06:37 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
I just recently changed to @error<>0. I found that just @error was sometimes reporting error 0 (though that may have been my scripting). Thank you.
Top
#163012 - 2006-06-14 08:39 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
Still having these two problems: Some users are not getting mapped drives when they log in. They don't seem to be running the script automatically. The errorlogging built into the script seems to be catching problems, so I know it works. These users aren't even generating logs, so I am assuming they aren't even getting to the executable for some reason. So that's problem One.

Problem 2 is that some users get their mapped drives ok, but a short time later the drive disappears from the network drives section of their My Computer. They can't access the drive at all, so I know it isn't just that the drive is not visible, it is actually not mapped anymore. Anyone have any idea of what might cause either of these two?

I have seen articles/posts elsewhere on the web similar to my problem One, though never any solutions. I have not seen anything like problem 2.

Top
#163013 - 2006-06-14 11:34 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the problem one sounds like their gpo logonscript setting is wrong.
or where ever you set your logonscript.
at least reading your text sounds like, the script never run on these dudes.

the problem two is a real problem and it has been discussed before.
don't remember any solution posted ever anywhere though.
_________________________
!

download KiXnet

Top
#163014 - 2006-06-15 04:13 AM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
1. Did you explore the Fast Logon Optimization feature?
2. My guess is that you were making them persistent before and that there is some sort of network or NAS reliability issue at play here. Did you try making them persistent again?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#163015 - 2006-06-15 02:05 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Well the problems you appear to be having will more than likely trace back to some
sort of setup, or configuration issue with Active Directory otherwise most of us would be
having a similar issue. Please use the information below to help you locate tools and articles
to help assist you in tracking down possible network issues.

If there is reliability issues with the network then the diagnostics should hopefully show that too
unless it is very sporadic which doesn't seem to be the case since you report that users have the issue
often.
 
A possible quick check that might reveal something is to check the Event logs on the client for issues with logon and policies
and hopefully that might show something obvious. If not then you need to start doing some basic network and AD
diagnostics to see where the issue resides.
 
See the bottom of the post for Tool Downloads that may be required for dianostics work.
 
Domain and Forest Trust Tools and Settings
http://technet2.microsoft.com/WindowsSer...3.mspx?mfr=true
 
    Some main Network diagnostic tools
  • Dcdiag.exe: Domain Controller Diagnostic Tool
  • Netdiag.exe: Network Connectivity Tester
  • Dnsdiag.exe: SMTP DNS Diagnostic Tool

 
Network Services Management Support Tools
http://technet2.microsoft.com/WindowsSer...3.mspx?mfr=true
 
 
Other possible areas to check out
 
Replication Does Not Work After Upgrading to Windows 2000
http://support.microsoft.com/kb/249261/
 
How To Diagnose and Test TCP/IP or NetBIOS Network Connections in Windows Server 2003
http://support.microsoft.com/kb/323388
 
Group Policy Home Page
http://www.microsoft.com/windowsserver2003/technologies/management/grouppolicy/default.mspx
 
Group Policy Troubleshooting
Updated: March 02, 2005
http://technet2.microsoft.com/WindowsSer...3.mspx?mfr=true
 
Troubleshooting Group Policy application problems (2000)
http://support.microsoft.com/default.aspx?scid=250842
 
Troubleshooting Group Policy in Microsoft® Windows® Server (document download)
http://www.microsoft.com/downloads/detai...;displaylang=en
 
Active Directory Operations Overview
http://www.microsoft.com/technet/prodtec...de/default.mspx
 
Active Directory Operations Overview - Troubleshooting Active Directory—Related DNS Problems
http://www.microsoft.com/technet/prodtec...t1/adogd10.mspx
 
Active Directory Operations Guide
Appendix A - Tasks Reference
This appendix lists all tasks, and pointers to their associated procedures, in alphabetical order.
You can build tear sheets for your operations staff by cutting and pasting procedures into a separate document.
These procedures can be part of an operations task assigned to an operator, or part of a task to troubleshoot an Active Directory component.
http://www.microsoft.com/technet/prodtec...2/adogdapa.mspx
  
Active Directory Operations Guide
Appendix B - Procedures Reference
This appendix lists all procedures in alphabetical order.
You can build tear sheets for your operations staff by cutting and pasting the task and its procedures into a separate document.
http://www.microsoft.com/technet/prodtec...2/adogdapb.mspx
 
NBLookup is a command line diagnostic tool that uses the User Datagram Protocol (UDP) to send
NetBIOS name queries to Microsoft Windows Internet Naming Service (WINS) servers

http://support.microsoft.com/kb/830578/
 
 
 
Windows 2003 Tool DOWNLOADS
 
Windows Server 2003 Resource Kit Tools 12MB
(DNSDIAG, REGINI, ROBOCOPY [XP010], SHOWACLS, etc...)
http://www.microsoft.com/downloads/detai...;displaylang=en
 
Windows Server 2003 Resource Kit Tool Updates
http://www.microsoft.com/windowsserver2003/techinfo/reskit/tools/default.mspx
 
Windows Server 2003 Service Pack 1 32-bit Support Tools 5.3MB
(DCDIAG, NETDIAG, NETDOM, NLTEST, XCACLS, etc...)
http://www.microsoft.com/downloads/detai...;displaylang=en
 
Windows Server 2003 Service Pack 1 Administration Tools Pack 4/28/2005
http://www.microsoft.com/downloads/detai...;displaylang=en
 
Sonar.exe: File Replication Service (FRS) Status Viewer
http://www.microsoft.com/downloads/detai...;DisplayLang=en
 
Microsoft ® Windows Server ™ 2003 Performance Advisor
http://www.microsoft.com/downloads/detai...;displaylang=en
 
Group Policy Inventory (GPInventory.exe)
http://www.microsoft.com/downloads/detai...;displaylang=en
 
Group Policy Management Console with Service Pack 1
http://www.microsoft.com/downloads/detai...;DisplayLang=en
 

Top
#163016 - 2006-06-15 02:32 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
I turned off Logon Optimization. We have roaming profiles, so it should be off in the domain anyway. I have also explicitly mapped the drives persistent. So far that hasn't solved the problem. I doubt that the NAS is the problem, as it is brand new. It could be network, but we have been revamping the network lately, so we have been paying particular attention to network performance. That's partly why this is so frustrating: the infrastructure is pretty close to optimum. Even AD seems to be working well. To have this kind of random glitch is inexplicable.
Top
#163017 - 2006-06-15 02:36 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Well run DCDIAG and NETDIAG and report back.

They are quick easy commands to run.

Maybe try isolating some test users WITHOUT the piece of junk roaming profiles.
Your choice, but dang I dislike roaming profiles and glad I've not had to work anywhere with them.

Doing some basic tests just has to reveal the issue.

If you have to get rid of the roaming profile for testing a couple users, run just a batch file to do the mapping and see what you get.



Edited by NTDOC (2006-06-15 02:39 PM)

Top
#163018 - 2006-06-15 02:39 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
So, since I have seen posts concerning users who don't run the script, and you have seen the issue where drives map, but then drop out later, and neither of these problems seems to have a solution, I've got my work cut out for me. I checked those users, and all seem to have the logon script mapped appropriately. I know for a fact that the script and the executable all replicated to all domain controllers. I'm going to go digging through ADSIEDIT to see if I can see anything wonky about the logon script in their actual user objects. There may be a hint there. Unfortunately, I don't have much longer to futz around with KiXtart. The mapped drives these users aren't getting are necessary for an in-house application to function. If I can't get it working within the next day or so, we will have to look at another solution.
Top
#163019 - 2006-06-15 02:42 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Well you can look into ADSIEDIT but if you have that type of problem then someone has been screwing around where they should not have.

basics, basics, basics. Why look for the exotic first?

Top
#163020 - 2006-06-15 03:13 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
I ran DCDIAG and NETDIAG, and all tests were ok. Nothing seems to be broken. I will track down one or two clients and see what if anything their event logs say.
Top
#163021 - 2006-06-15 03:47 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Sorry,first off - never got the info how you call your script.
Second - the timeouts that are occuring, check your settings for timeouts and increase 'em, that is what I think was A solution Jooel to that problem (have seen it in one of our own old domains, but wasn't part of setting it up or anything - nor fixing it ).
Third - check dns/wins resolving, perhaps this can be one faulty factor.
Forth - Good luck .


Edited by Björn (2006-06-15 03:49 PM)
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

Top
#163022 - 2006-06-15 05:05 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
The script is being called by entering the executable name directly in the logon script field in ADUC on the profile tab. Someone will have to educate me on where the timeout settings are. I am looking into the possibility, at least regarding the script never running, that there is a problem with the computer account. I am having the machines removed from the domain, their accounts deleted, and then re-added to the domain as new names. I will see if this resolves the not-mapping issue. Then all I have to do is figure out the "drives get mapped, then disappear" problem.
Top
#163023 - 2006-06-15 05:08 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
If the computer accounts were a problem hopefully you'd have seen "something" in the event logs.

If worse comes to worse you can also do a network trace on the system and see what's happening.

Top
#163024 - 2006-06-15 05:16 PM Re: KiXtart logon script doesn't map all drives/sometimes drives disappear
svivian Offline
Fresh Scripter

Registered: 2006-06-07
Posts: 26
I know batch files work to map the drives, since that is what we were using prior to KiXtart. We switched so we could have a more unified environment, with a central point from which to manage network resource usage. Therefore the difference has to be KiXtart, as I didn't change anything else at the time I implemented it. The old .bat files were just a bunch of net use statements, without even a /delete to clear out old mappings.

Unfortunately, we have to have the roaming profiles, as a large percentage of our user base changes desks regularly (sales guys, who get moved to keep them from getting in a rut). Especially since we have a couple of buildings, it makes moving far easier when the PCs can stay plugged in and set up. Actually, the only issue we have had with them is that sometimes the users don't listen when we tell them not to keep craploads of files in their My Documents. As long as the profile stays under 20-30MB, it works pretty well. Having an all XP/2003 environment probably helps a lot.

Top
Page 2 of 3 <123>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.076 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org