SOS,,,DC server automatically create folder under server when user login in client
- Dear all,
I have a problem. when user login from Client PC, the DC server will automatically create a profile folder under "document and setting". under the profile folder,is a folder named application data,,,but no data in this folder.
the problem is when this happened, user can not access the server. restart solve this problem,but several hours later, it will happen again....
also, if no network mapping in user's login scripts(such as net use......), it has not this problem.
I can not find what's the problem, any help would be appreciatd...
Thanks in advance..
Ant
----
when i login ,the login scripts will do "net use...." i got the message
System error 85 has occurred, The local device name already in use
so I modified the scripts , add "net delete..." then got the message
the current directory is invalid- Edited byiamant Saturday, October 31, 2009 4:40 AMmore info
- Edited byiamant Saturday, October 31, 2009 4:41 AM
- Changed TypeBruce-LiuModeratorTuesday, November 17, 2009 3:19 AM
All Replies
- Good day Ant,
Are you implementing Roaming Profile? please let me know so that I can advice you what to do...
Cheers... thank you radical,,
no roaming profile,,
everything works fine before, i had this problem four days ago,so now, every half day, i need to restart server..
thanks again..- Hi Ant,
If a new Profile Folder is getting created upon login, then it indicates that because of some reason User was not able to access it's SID present in the Registry and so it creates another Profile, a temporary one.
You can test this yourself. Try logging in with the User, once you see a new Profile being created, go to System Properties - Advanced - Settings under User Profile Option - check the User Name and Type...... It would say 'Temp' which means User was not able to get the Local Profile.
This might happen if the Profile of the User was not saved properly while logging off the last time. You can download and Run 'User Profile Hive Cleaner' and run it on the Client Machine. This will remove all the stale SID's.
Also you mentioned that you have Mapped Drives coming through Scripts. Make change in the 'Logoff Script' and use a switch to Unmap the Drives prior to Logoff.
Apart from this check the Permissions on the Profile File (Ntuser.dat).... Failing to access this file may also cause issues.
Also let me know, are you getting this problem with only one User or all of them.
Revert back with the Results.
cheers
Nitin - Hi,Nitin,
Thanks for your reply..
all of user have this problem...but everytime restart the server solve the problem.
Thanks,
Ant - Hi Ant,
Ok can you provide some more details about the same.
> How many Domain Controllers are there in the environment and what is the version of OS ?
> Are Users logging in to the Server through RDP or are they facing issues on their respective Client Machines ?
> Did you try running UPHC (User Profile Hive Cleaner) on the Server ( **Only applies if Users logs in to the Server** )
Did you try the steps i mentioned earlier like editing the logoff script and checking the Profile type from system properties ?
You can also do this --
When a User logs in to the Server a Profile SID is created in the Registry at the following location --
HKLM/Software/Microsoft/WindowsNT/CurrentVersion/ProfileList
You will find SID of every User logged in to the Server. On the Right hand Pane you will see the name of the User associated with the SID. In case you are getting issues with the User Profile, you can go to this location and check if the User SID is present or not.
Sometimes if the Users do not have Permissions to access this Registry Key, then also they face such issues. In this case you can give Permissions to the Domain Users on the Profile List Registry manually.
Revert back with the results.
cheers
Nitin - Hi,Nitin,
> How many Domain Controllers are there in the environment and what is the version of OS ?
4 domain controllers, in different area..only mine has this problem. server version is server 2003,and clients are xp sp2
> Are Users logging in to the Server through RDP or are they facing issues on their respective Client Machines ?
no any problem in clent machines.
> Did you try running UPHC (User Profile Hive Cleaner) on the Server ( **Only applies if Users logs in to the Server** )
yes
Did you try the steps i mentioned earlier like editing the logoff script and checking the Profile type from system properties ?
yes, the check on the computer and type is local....
You can also do this --
When a User logs in to the Server a Profile SID is created in the Registry at the following location --
HKLM/Software/Microsoft/WindowsNT/CurrentVersion/ProfileList
You will find SID of every User logged in to the Server. On the Right hand Pane you will see the name of the User associated with the SID. In case you are getting issues with the User Profile, you can go to this location and check if the User SID is present or not.
all presented.
Sometimes if the Users do not have Permissions to access this Registry Key, then also they face such issues. In this case you can give Permissions to the Domain Users on the Profile List Registry manually.
---------------
one more thing is:
under server "document and setting" folder, there are only 2 folder named " application data" and "local setting" ,and 2 files named "ntuser.dat" and "ntuser.dat.log".... nothing else.. and under these 2 sub-folder are empty..
We tested it again today and found if we dont access the shared folder on the server,no profile folder will be created..but once we access the server shared folder,,the problem come...
Thanks
Ant - Hi Ant,
I did not get this statement. Please povide details.
"We tested it again today and found if we dont access the shared folder on the server,no profile folder will be created..but once we access the server shared folder,,the problem come... "
cheers
Nitin - Hi,Nitin,
When a user login without login scripts( normally we have a login script for user to connect the network drive by command net use.....), then,,no profile created in server. but after this user login, if this user try to access the network drvier which shared by server such as \\server\folder.... the server will create a profile...
because every user has a login script, so when they login, many profile folders were created by server.
we dont know why..
also we found, when this problem happens, at the same time,, connect shared network folder became very slow...
Thanks,
ant - Hi Ant,
Can you paste the contents of the Script here ?
Thanks
Nitin Hi, Nitin,
the script just has one command:
net use x: \\server\office
i think it should be ok.
when the server has problem, I get the netstat info:
Active ConnectionsProto Local Address Foreign Address State
TCP server:http server.mydomain.com:3136 TIME_WAIT
TCP server:http server.mydomain.com:3153 TIME_WAIT
TCP server:epmap gb-file.mydomain.com:3868 ESTABLISHED
TCP server:epmap hq-file.mydomain.com:14171 ESTABLISHED
TCP server:epmap hq-b305-17.mydomain.com:1138 ESTABLISHED
TCP server:epmap pd-file.mydomain.com:1397 ESTABLISHED
TCP server:epmap pd-file.mydomain.com:1399 ESTABLISHED
TCP server:epmap server.mydomain.com:3160 ESTABLISHED
TCP server:epmap dx-b422-24.mydomain.com:1168 ESTABLISHED
TCP server:epmap dx-b422-16.mydomain.com:1266 ESTABLISHED
TCP server:epmap dx-b422-04.mydomain.com:1138 ESTABLISHED
TCP server:epmap dx-403.mydomain.com:1622 ESTABLISHED
TCP server:epmap dx-208-01.mydomain.com:1147 ESTABLISHED
TCP server:epmap dx-114.mydomain.com:1359 ESTABLISHED
TCP server:epmap dx-c425-14.mydomain.com:1339 ESTABLISHED
TCP server:epmap dx-111-01.mydomain.com:1771 ESTABLISHED
TCP server:epmap dx-auditorium.mydomain.com:1029 ESTABLISHED
TCP server:epmap dx-309.mydomain.com:1049 ESTABLISHED
TCP server:netbios-ssn dx-108.mydomain.com:3932 ESTABLISHED
TCP server:netbios-ssn dx-erc.mydomain.com:1861 ESTABLISHED
TCP server:netbios-ssn MACBOOKPRO-5151:63776 TIME_WAIT
TCP server:netbios-ssn MACBOOKPRO-5151:63777 TIME_WAIT
TCP server:netbios-ssn MACBOOKPRO-5151:63778 TIME_WAIT
TCP server:netbios-ssn MACBOOKPRO-5151:63779 TIME_WAIT
TCP server:ldap server.mydomain.com:1206 ESTABLISHED
TCP server:ldap server.mydomain.com:3139 TIME_WAIT
TCP server:ldap server.mydomain.com:3140 TIME_WAIT
TCP server:ldap server.mydomain.com:3150 TIME_WAIT
TCP server:ldap server.mydomain.com:3169 TIME_WAIT
TCP server:ldap server.mydomain.com:3180 TIME_WAIT
TCP server:ldap server.mydomain.com:3181 TIME_WAIT
TCP server:ldap dx-b422-04.mydomain.com:1142 TIME_WAIT
TCP server:ldap dx-a301-02.mydomain.com:4899 TIME_WAIT
TCP server:microsoft-ds gb-students.mydomain.com:2907 ESTABLISHED
TCP server:microsoft-ds gb-miki.mydomain.com:1576 ESTABLISHED
TCP server:microsoft-ds rp-admission.mydomain.com:1160 ESTABLISHED
TCP server:microsoft-ds pd-sv-helen.mydomain.com:2846 ESTABLISHED
TCP server:microsoft-ds dx-112-01.mydomain.com:1178 ESTABLISHED
TCP server:microsoft-ds dx-415-004.mydomain.com:2543 ESTABLISHED
TCP server:microsoft-ds dx-112-02.mydomain.com:4995 ESTABLISHED
TCP server:microsoft-ds dx-306-02.mydomain.com:1179 ESTABLISHED
TCP server:microsoft-ds dx-203.mydomain.com:2940 ESTABLISHED
TCP server:microsoft-ds dx-308-02.mydomain.com:4476 ESTABLISHED
TCP server:microsoft-ds dx-207-01.mydomain.com:1464 ESTABLISHED
TCP server:microsoft-ds dx-207-03.mydomain.com:1865 ESTABLISHED
TCP server:microsoft-ds dx-a202.mydomain.com:1604 ESTABLISHED
TCP server:microsoft-ds dx-a303-02.mydomain.com:ms-sql-s ESTABLISHED
TCP server:microsoft-ds dx-208-01.mydomain.com:1379 ESTABLISHED
TCP server:microsoft-ds dx-415-01.mydomain.com:3264 ESTABLISHED
TCP server:microsoft-ds dx-111-02.mydomain.com:1232 ESTABLISHED
TCP server:microsoft-ds dx-211-01.mydomain.com:4740 ESTABLISHED
TCP server:microsoft-ds dx-111-04.mydomain.com:1070 ESTABLISHED
TCP server:microsoft-ds dx-auditorium.mydomain.com:1191 ESTABLISHED
TCP server:microsoft-ds dx-111-03.mydomain.com:1586 ESTABLISHED
TCP server:microsoft-ds dx-a401-01.mydomain.com:2310 ESTABLISHED
TCP server:microsoft-ds dx-b316-03.mydomain.com:2634 ESTABLISHED
TCP server:1025 gb--security-01.mydomain.com:1110 ESTABLISHED
TCP server:1025 kathyw.mydomain.com:1141 ESTABLISHED
TCP server:1025 hq-guoli.mydomain.com:1350 ESTABLISHED
TCP server:1025 pd-213.mydomain.com:3333 ESTABLISHED
TCP server:1025 server.mydomain.com:3115 ESTABLISHED
TCP server:1025 server.mydomain.com:4176 ESTABLISHED
TCP server:1025 dx-112-01.mydomain.com:1128 ESTABLISHED
TCP server:1025 dx-b422-24.mydomain.com:1169 ESTABLISHED
TCP server:1025 dx-b422-16.mydomain.com:1267 ESTABLISHED
TCP server:1025 dx-b422-04.mydomain.com:1139 ESTABLISHED
TCP server:1025 dx-b422-04.mydomain.com:1140 ESTABLISHED
TCP server:1025 dx-b422-04.mydomain.com:1145 ESTABLISHED
TCP server:1025 dx-403.mydomain.com:1623 ESTABLISHED
TCP server:1025 dx-208-01.mydomain.com:1086 ESTABLISHED
TCP server:1025 dx-114.mydomain.com:1360 ESTABLISHED
TCP server:1025 dx-c425-14.mydomain.com:1340 ESTABLISHED
TCP server:1025 dx-111-01.mydomain.com:1151 ESTABLISHED
TCP server:1025 dx-111-01.mydomain.com:1772 ESTABLISHED
TCP server:1025 dx-auditorium.mydomain.com:1031 ESTABLISHED
TCP server:1025 dx-auditorium.mydomain.com:1041 ESTABLISHED
TCP server:1025 dx-309.mydomain.com:1071 ESTABLISHED
TCP server:1042 gb-file.mydomain.com:3869 ESTABLISHED
TCP server:1042 gb-file.mydomain.com:3870 ESTABLISHED
TCP server:1042 hq-file.mydomain.com:14172 ESTABLISHED
TCP server:1042 hq-file.mydomain.com:14173 ESTABLISHED
TCP server:1042 pd-file.mydomain.com:1400 ESTABLISHED
TCP server:1042 pd-file.mydomain.com:1401 ESTABLISHED
TCP server:1206 server.mydomain.com:ldap ESTABLISHED
TCP server:2642 server.mydomain.com:ldap CLOSE_WAIT
TCP server:2967 server.mydomain.com:3131 TIME_WAIT
TCP server:2967 dx-415-06.mydomain.com:3868 TIME_WAIT
TCP server:2967 dx-a303-02.mydomain.com:1431 TIME_WAIT
TCP server:2967 pd-402-01.mydomain.com:1513 TIME_WAIT
TCP server:2967 dx-b515-02.mydomain.com:1838 TIME_WAIT
TCP server:3050 pd-210-02.mydomain.com:1132 ESTABLISHED
TCP server:3050 pd-210-02.mydomain.com:1145 ESTABLISHED
TCP server:3050 pd-210-02.mydomain.com:1146 ESTABLISHED
TCP server:3050 pd-210-02.mydomain.com:1161 ESTABLISHED
TCP server:3050 pd-dx-a111-01.mydomain.com:2057 ESTABLISHED
TCP server:3050 pd-dx-a111-01.mydomain.com:2058 ESTABLISHED
TCP server:3050 pd-dx-a111-01.mydomain.com:2059 ESTABLISHED
TCP server:3050 pd-dx-a111-01.mydomain.com:2067 ESTABLISHED
TCP server:3050 dx-111-07.mydomain.com:3742 ESTABLISHED
TCP server:3050 dx-111-07.mydomain.com:3743 ESTABLISHED
TCP server:3050 dx-111-07.mydomain.com:3744 ESTABLISHED
TCP server:3084 pd-file.mydomain.com:1026 ESTABLISHED
TCP server:3087 hq-file.mydomain.com:1026 ESTABLISHED
TCP server:3090 gb-file.mydomain.com:1026 ESTABLISHED
TCP server:3109 server.mydomain.com:1025 TIME_WAIT
TCP server:3115 server.mydomain.com:1025 ESTABLISHED
TCP server:3145 server.mydomain.com:epmap TIME_WAIT
TCP server:3160 server.mydomain.com:epmap ESTABLISHED
TCP server:3163 pd-file.mydomain.com:epmap ESTABLISHED
TCP server:3164 pd-file.mydomain.com:epmap ESTABLISHED
TCP server:3165 pd-file.mydomain.com:1171 ESTABLISHED
TCP server:3166 pd-file.mydomain.com:1171 ESTABLISHED
TCP server:3170 gb-file.mydomain.com:epmap ESTABLISHED
TCP server:3171 hq-file.mydomain.com:epmap ESTABLISHED
TCP server:3172 hq-file.mydomain.com:epmap TIME_WAIT
TCP server:3173 gb-file.mydomain.com:epmap TIME_WAIT
TCP server:3174 gb-file.mydomain.com:epmap ESTABLISHED
TCP server:3175 hq-file.mydomain.com:epmap ESTABLISHED
TCP server:3176 gb-file.mydomain.com:1086 ESTABLISHED
TCP server:3177 hq-file.mydomain.com:1058 ESTABLISHED
TCP server:3178 gb-file.mydomain.com:1086 ESTABLISHED
TCP server:3179 hq-file.mydomain.com:1058 ESTABLISHED
TCP server:4176 server.mydomain.com:1025 ESTABLISHED
TCP server:5900 gb-miki.mydomain.com:1582 ESTABLISHED
TCP server:5900 dx-208-01.mydomain.com:1399 ESTABLISHED
TCP server:ldap server.mydomain.com:1035 ESTABLISHED
TCP server:ldap server.mydomain.com:1036 ESTABLISHED
TCP server:ldap server.mydomain.com:1037 ESTABLISHED
TCP server:ldap server.mydomain.com:1111 ESTABLISHED
TCP server:microsoft-ds server.mydomain.com:1614 ESTABLISHED
TCP server:1035 server.mydomain.com:ldap ESTABLISHED
TCP server:1036 server.mydomain.com:ldap ESTABLISHED
TCP server:1037 server.mydomain.com:ldap ESTABLISHED
TCP server:1061 server.mydomain.com:1073 ESTABLISHED
TCP server:1061 server.mydomain.com:1079 ESTABLISHED
TCP server:1061 server.mydomain.com:1091 ESTABLISHED
TCP server:1061 server.mydomain.com:1144 ESTABLISHED
TCP server:1061 server.mydomain.com:1237 ESTABLISHED
TCP server:1061 server.mydomain.com:4272 ESTABLISHED
TCP server:1073 server.mydomain.com:1061 ESTABLISHED
TCP server:1079 server.mydomain.com:1061 ESTABLISHED
TCP server:1081 server.mydomain.com:1212 ESTABLISHED
TCP server:1081 server.mydomain.com:3183 ESTABLISHED
TCP server:1091 server.mydomain.com:1061 ESTABLISHED
TCP server:1111 server.mydomain.com:ldap ESTABLISHED
TCP server:1144 server.mydomain.com:1061 ESTABLISHED
TCP server:1212 server.mydomain.com:1081 ESTABLISHED
TCP server:1237 server.mydomain.com:1061 ESTABLISHED
TCP server:1614 server.mydomain.com:microsoft-ds ESTABLISHED
TCP server:3183 server.mydomain.com:1081 ESTABLISHED
TCP server:4272 server.mydomain.com:1061 ESTABLISHED
Thanks
Ant- Ok Ant before posting any reply let me clarify something. You mentioned that the Users are logging on the Server. So in that case a Profile would be created under Documents and Settings. Are you talking about this User Profile or some other randomly created Folder because till now that's what i am thinking of. I wanted to clarify this first and that's why i removed my last post.
If it's the Profile Folder than the behavior is absolutely correct. When you login for the first time a Profile would be created under Docs and Settings (if already we do not have any existing). In case you want this Profile not to be saved on the Server than we can achieve this through a Group Policy.
Computer Configuration > Administrative Templates > System > User Profiles > "Delete cached copies of roaming profiles"
You can set this Policy either Domain wide or on a specific Domain Controller. If you set this Policy then once the User Logs Off from the machine the Profile will get deleted.
Please revert back with the info. If this is not a Profile creation issue and something else than we can work further.
cheers
Nitin - Hi, Nitin,
Ok Ant before posting any reply let me clarify something. You mentioned that the Users are logging on the Server. So in that case a Profile would be created under Documents and Settings. Are you talking about this User Profile or some other randomly created Folder because till now that's what i am thinking of. I wanted to clarify this first and that's why i removed my last post.
it's this user's profile,not randomly. if I delete the folder, once this user access the shared network folder, this user's profile was created again.
If it's the Profile Folder than the behavior is absolutely correct. When you login for the first time a Profile would be created under Docs and Settings (if already we do not have any existing). In case you want this Profile not to be saved on the Server than we can achieve this through a Group Policy.
Uually, we have this profile in client machines,not in server. the problem I'm having is the the server created this folder in server machine, also client machines.. No policy assigned before and our server worked fine for 3 year.I have this problem just begin from last week.
Computer Configuration > Administrative Templates > System > User Profiles > "Delete cached copies of roaming profiles"
You can set this Policy either Domain wide or on a specific Domain Controller. If you set this Policy then once the User Logs Off from the machine the Profile will get deleted.
We dont have roming profiles..
Many thanks for your reply.
Ant Ant,
I think i know what's happening and let me tell you this behavior is by design. That temp profile is created for some purpose. It just clicked in my mind, i worked on such an issue a some time ago...I'll get back to you on this with details soon :)
cheers
Nitin- Marked As Answer byBruce-LiuModeratorMonday, November 09, 2009 3:14 AM
- Unmarked As Answer byiamant Monday, November 09, 2009 4:14 AM
So if i login into the Domain without the Logon Script and try to access the Share \\Server\Share (or map a Drive manually with this name), a Profile with my Name having Empty 'Application Data' in it would be created under Documents and Settings ??
YES....- ok, thanks in advance....

