#205939 - 2012-10-08 04:50 PM
Kix wait until explorer loads
|
Salva
Just in Town
Registered: 2012-09-21
Posts: 2
Loc: Spain
|
Hi,
I'm dealing with a particular problem when mapping drives for users at logon. I created a script that looks for particular AD groups and then maps drives according them. The problem is not the script itself, since it works fine "most" of the times.
The net use command shows that drives are mapped correctly, but some of them are not listed on windows explorer (My Computer). This seems a Windows issue, since killing explorer process and restarting it again lists all drives as it should. Even from Task Manager, you go to File-> New Task (Run...) and type drive letter and it opens shared resource.
Is there anything I can do, for example insert a "wait until explorer completely loads" command, as my guess is that mapping process starts before all windows processes finish loading? I noticed this at least with Windows 7 Enterprise workstations.
regards, Salva.
|
|
Top
|
|
|
|
#206215 - 2012-11-14 12:25 PM
Re: Kix wait until explorer loads
[Re: Glenn Barnas]
|
Salva
Just in Town
Registered: 2012-09-21
Posts: 2
Loc: Spain
|
Hi both, thanks for your help!
To clear up things, the option "Run Synchronously" means to start the script by adding START /B /W WKIX32.EXE to the scriptpath box in Active Directory?
I will change this with powershell since i currently have the path "kix32.exe loginscript.kix"
The second option, may be the one located under the GPO tree: Computer Configuration (Enabled) -> Administrative Templates -> System/Logon -> Always wait for the network at computer startup and logon
We also discovered this option which we have by default, but after reading explanation we were not sure whether this setting could help or not.
Regards, Salva.
Edited by Salva (2012-11-14 12:35 PM)
|
|
Top
|
|
|
|
#206217 - 2012-11-14 01:34 PM
Re: Kix wait until explorer loads
[Re: Salva]
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
|
|
Top
|
|
|
|
#206224 - 2012-11-14 04:34 PM
Re: Kix wait until explorer loads
[Re: Glenn Barnas]
|
Robdutoit
Hey THIS is FUN
 
Registered: 2012-03-27
Posts: 363
Loc: London, England
|
I used to have this problem, but no longer do. Unfortunately with all the changes that I have made over the last few months, its impossible to isolate exactly what the cause was, but I will tell you what I do now. I use kixtart version 4.62 and I run it from the logon script in the gpo, not from the script tab in the users profile in active directory. Windows 7 and uac doesn't like running from the netlogon folder. use the group policy to run the script. I don't use the run scripts synchronously as I don't seemt to need it. I also map the drives for the session i.e. not persistent as the persistent setting causes problems with windows 7. If you are running as local administrators, then you will need to enablelinkedconnections in the registry as it won't work on windows 7 as a local admin because of uac. Another thing that I do is load all the registry settings first in my script and then do the changes that require explorer to be loaded such as mapping drives etc.
I also use this code at the beginning of the script to make the script wait until the user profile is loaded.
? " User logged on is " @userid
While
@UserId = ""
sleep 0.3
? "Sleeping for 300 milliseconds"
Loop
Hope that something here helps
|
|
Top
|
|
|
|
#206232 - 2012-11-15 07:02 AM
Re: Kix wait until explorer loads
[Re: Robdutoit]
|
rectina
Just in Town
Registered: 2012-11-14
Posts: 1
Loc: Alaska
|
Is there anything I can do, for example insert a "wait until explorer completely loads" command
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 931 anonymous users online.
|
|
|