|
|
|||||||
I have try serveral times to get kixtart 4.22 to map a driver for some group of user in a department (on a 2003 server platform) but it seems to work for me. I will be grateful if somebody give me a helping hand. Cheers Edmund |
||||||||
|
|
|||||||
can't map drivers... can load them and install but not map... as far as I know. |
||||||||
|
|
|||||||
Sorry not drivers but map a drive on a file server |
||||||||
|
|
|||||||
k, lets start with what you got. could you show what you have tried. |
||||||||
|
|
|||||||
I have these 3 files logon.bat, logon.kix and the kix32.exe. the content of the logon.bat is: kix32.exe logon.kix. The content of the logon.kix is: use "g:" "\\server\everyone" If InGroup("Finance") use "h:" "\\server\Accounts" EndIf If InGroup("Plant") use "i:" "\\server\Maintenance" EndIf Then i have place all these 3 files in the %systemroot%\Sysvol\sysvol\domain.com\scripts. Then in group policy,under User Configuration, then windows settings then in Scripts(Logon), i have place all the 3 file s in there. But still not working. |
||||||||
|
|
|||||||
da, this is ad issue. boys? |
||||||||
|
|
|||||||
Active directory issue????????? |
||||||||
|
|
|||||||
in english, I can't help no matter how much I know about kix as I have no experience of kix in AD... hmm... I probably should try that out though. anyone willing to send me some hardware to run AD on? I performed last test on P2 ~300MHz and it was ok. anyone? |
||||||||
|
|
|||||||
B'cos i am running a windows 2003 server domain and it will just not map the drive but if i run kix32.exe logon.kix /d from the command prompt, it map the drive. Anyway thanks for ur idea. Need this to work badly. Hope somebody can come to my rescue. Cheers edmund |
||||||||
|
|
|||||||
like said, the script seems ok and thus, the problem is not the script but your config to get it running on each logon. that is AD issue. |
||||||||
|
|
|||||||
Thanks man |
||||||||
|
|
|||||||
Stick a tracer message after your map, that will show you why its failing ... use "h:" "\\server\Accounts" ? @SERROR -Shawn |
||||||||
|
|
|||||||
shawn... are you sure it's running at all? |
||||||||
|
|
|||||||
No I'm not - but this should help prove that theory too. Edmund, if you see no tracer message at all, then you will know its the InGroup that isn't working. -Shawn |
||||||||
|
|
|||||||
no. if you have tracer messages all over your script, then you know your script is not running at all. right? |
||||||||
|
|
|||||||
When i run the command kix32.exe logon.kix /d at the command prompt, you goes through, map the drive for me and tells me "The operation completed successfully" .But when i logon, it doesn't map the drive. |
||||||||
|
|
|||||||
And i didn't get any tracer messages when i added the @SERROR |
||||||||
|
|
|||||||
In a command prompt (DOS Console) type SET C:\SET <hit the enter key> You should find a variable set for LOGONSERVER Then type START \\the server name\NETLOGON That should open a window with all your scripts, if you don't find WKIX32.EXE or KIX32.EXE and your script there then you don't have them in the correct location. If they are there, then you have your LOGON script GPO setup incorrectly. |
||||||||
|
|
|||||||
When i type C:\set then enter, i see the logonserver=\\SerPlant Then when i type the START \\SerPlant\netlogon, it opens up an explorer showing all the 3 files. I am going to check with the GPO setup. I have it under user configuration in the GPO. Should it be under the machine configuration or what? |
||||||||
|
|
|||||||
Quote: Quote: hmm... I think this one needs to be taken one step at a time. remove everything from your logonscript setting except that bat. |
||||||||
|
|
|||||||
What do you have specifically set for the GPO? |
||||||||
|
|
|||||||
NTDOC,in the GPO, under the user configuration\windows settings\Scripts(logon/logoff), then i go into the logon properties and add all the 3 scripts from the netlogon folder. So that is what i have in there |
||||||||
|
|
|||||||
Edmund, There are several topics and at least one FAQ dedicated to running KiX as a GPO script. I suggest you have a go at the board search. |
||||||||
|
|
|||||||
ekainyah, like said, you should only have that bat there. |
||||||||
|
|
|||||||
Quote: Huh? Just the opposite... put the BAT in the GPO GUID folder and leave KiX and the script in NetLogon. |
||||||||
|
|
|||||||
Quote:Quote: huh huh? Quote: |
||||||||
|
|
|||||||
GPO scripts like to run from the current dir, which is under the \\domain.tld\SYSVOL\domain.tld\Policies\{GUID}\User\Scripts\Logon folder |
||||||||
|
|
|||||||
Well Not quite sure if I understood it right: you got the .bat and the scripts in the netlogon folder - should be fine I got this as well and my mapping works fine. so have a look on the policy: how did you pur in the logon.bat? edit the policy and ad the logon.bat by browsing to the netlogon folder. (if you don't do that the default location is in the policy it self) If there is nothing else in the .bat file than calling the kix32.exe than don't use the .bat file at all and put in the logon script kix32.exe logon.kix in (again navigate to the right place and check if the path is OK) this will call your kix script instandly. I am not sure with the drive mapping as I use e newer version and don't know the syntax in the older one - I just assume that it is right. (in mine is just use o: \\servername\share) I am running it an mixed plattform 2000/2003 and it works fine. (got it as a logon policy as well) Hope this helps. Kat |
||||||||
|
|
|||||||
Oops forgot: all my scripts and kix files are netlogon as well |
||||||||
|
|
|||||||
Kat, Now i have only the logon.bat in the GPO and then have the kix32.exe and the logon.kix in the netlogon folder. |
||||||||
|
|
|||||||
Guys, Where should the logon.bat be physically be place? Is it in the netlogon folder or it can be anywhere on the server? |
||||||||
|
|
|||||||
did you the specify the path where kix32.exe is in the batch file? It will look for it in the same folder if you don't tell to look in a different (netlogon) location. and why don't you type the kix32.exe dicrectly into the logon instead of the batch file? |
||||||||
|
|
|||||||
can you explain a little bit further |
||||||||
|
|
|||||||
Go to your GPO screen. Go to User Configuration, Windows Settings, Scripts, Logon. Remove what you have. Then click Add. Now, do NOT browse to the script. This wont work because your clients to not see the same thing you do. Microsoft shouldnt have even put the option in there. Instead, type %logonserver%\netlogon\logon.bat as your script name. Leave the parameters field blank. Save this. Then drop to a command line and do a gpupdate. Then go log off and back on. Should work. And by the way, for simplicity's sake, I find it best to put EVERYTHING in the "scripts" root directory. Not taking anything away from Les as his method works fine...but when you get multiple GPO's going it can get hard to figure out which script is beneath which GUID directory. So for the above to work you'll need all three files in the scripts root (where you had them to begin with). |
||||||||
|
|
|||||||
Also, as kat suggested, I would eliminate the batch file altogether (once you have this working.) To do that you would put the script as: %LOGONSERVER%\NETLOGON\kix32 and the script parameters as: %LOGONSERVER%\NETLOGON\mylogon.kix This is how I run mine and it works fine. |
||||||||
|
|
|||||||
Okay guy ONE of these links has got to get you going. Please take your time and read up on this and you should be up and going well in no time. GPO Change-over Frequently Asked Questions About Logon Scripts How to assign scripts in Windows 2000 Batch-less (or remove NTLOGON.BAT) Login script Sequence of events during logon Use of %0\..\ to launch KiX Description of the Windows XP Professional Fast Logon Optimization feature W2k+ - Keep the Window visible on login? Windows NT Login Script Tricks and Tips How to apply System Policy settings to Terminal Server Group Policy may not be applied to users belonging to many groups Environment variables in Windows NT How To Assign a Logon Script to a Profile for a Local User in Windows 2000 Assigning Scripts Using Group Policy in Windows 2000 How to run a logon script one time when a new user logs on Understanding Group Policies on Windows Server 2003 Step-by-Step Guide to Understanding the Group Policy Feature Set |
||||||||
|
|
|||||||
that many? doc, do you expect us to read them all? huh, can't be that hard. and just like sixdoubleo said, clean for everyone's sake the logonscript value and set it like it should be. |
||||||||
|
|
|||||||
Ekainyah, If you're having trouble setting up your logon script via GPOs perhaps you should look at an alternative method for deploying this script. For example: Logon script and KIX executable file locations should be.. File Location: C:\WINNT\SYSVOL\sysvol\damain.name\scripts\ Place the following text in your User Account's Properties User Account properties>Profiles TAB>Logon Script>"kix32.exe logon.kix" When logging in, your user's accounts will automatically run the "kix32.exe logon.kix" command from the closest domain controller's NETLOGON share. If you have many user accounts that you need to change this value on and want to automate the process, you can use a kix script on your Domain Controller that will make the appropriate change for you. (be sure to test this in your environment before running on production servers) Code: CLS |
||||||||
|
|
|||||||
Quote: Quote: No you don't have to read any of them. There not for you as you understand already. There for those that DON'T understand and are asking for help. Personally I think this link explains it as well or better then most. http://www.rlmueller.net/LogonScriptFAQ.htm Just posted those links so that if he has trouble understanding one, maybe another would help. Not sure you know or have noticed but many teachers in the World don't have the same results with all students, some students learn better from other methods or other teachers. That doesn't mean the teacher is not good, only that some have different learning needs. |
||||||||
|
|
|||||||
and that some are bad teachers doc, don't get sad, I wasn't really picking on you. just tried to lift up the atmosphere with some little "picking" |
||||||||
|
|
|||||||
Hi Guys, Thanks for the help. I have tried almost all the suggestion given out here but till didn't get this going for me. I entered the script directly into my profile and then when i logon, it mapped the drive according to the group i put myself in but when i put the script into the sysvol and the GPO, it doesn't and i just don't understand. Might have to try another script.Thank you all for. |
||||||||
|
|
|||||||
Go back to the basics. Create a simple script that consistes just of a messagebox displaying a notice that the script is running. the place the script as per instructions below. Check the user ACLs to ensure they have acess. Try calling the script from a user's computer. Then strart enterign the script call into a GPO. I've doen such things and it's easy as long as permissions and paths are set up correctly. Otherwise, you'll have to troubleshoot, e.g. enable file-level auditing or use other tools to see why the script is not being started. That's the stuff you really get paid for. |