Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: SeanPF on September 30, 2010, 05:02:00 pm
-
I'm having trouble figuring this stuff out. I'm using the latest Zentyal with Windows XP Pro clients. I want a simple logon script to run on all the clients when they log in, but I'm unfamiliar with batch and kix languages.
Can anyone send me the batch code to put into the /home/samba/netlogon folder that will cause kixtart32.exe to run?
And can anyone send a kixstartx.kix script that will
1) map every user to the pulic drive (for instance P: = \\SERVER\Public) upon logon,
2) check the user's group membership and map them to the the appropraite drive (for instance Z: = \\SERVER\Accounting) upon logon, and also
3) map every user to the office printer (\\SERVER\HPMopier)?
Thanks so much in advance!
-
this can all be done through simple batch scripting..
look for a logonscrip that includes IsMember.exe from the win2k3 resourcekit
-
Ok I just downloaded the ifMember.exe from Microsoft.
What do I do with this file? Do I simply place it in the netlogon folder of my Zentyal server, and then I can use the ifMember attribute in my batch files?
-
you should place it in the c:\windows\system32 folder on all your clients
-
look here:
http://forum.ebox-platform.com/index.php?topic=2019.0
I'm having trouble figuring this stuff out. I'm using the latest Zentyal with Windows XP Pro clients. I want a simple logon script to run on all the clients when they log in, but I'm unfamiliar with batch and kix languages.
Can anyone send me the batch code to put into the /home/samba/netlogon folder that will cause kixtart32.exe to run?
And can anyone send a kixstartx.kix script that will
1) map every user to the pulic drive (for instance P: = \\SERVER\Public) upon logon,
2) check the user's group membership and map them to the the appropraite drive (for instance Z: = \\SERVER\Accounting) upon logon, and also
3) map every user to the office printer (\\SERVER\HPMopier)?
Thanks so much in advance!
-
You can do this with Kix as well.
First, if you create/edit file under Linux, you have to get flip:
apt-get install flip
Then, get kix and paste Kix32.exe in /home/samba/netlogon/
Then:
nano /home/samba/netlogon/logon.bat
Add this:
@ECHO OFF
%0\..\Kix32.exe %0\..logon.kix /f
Save and close, then:
flip -m /home/samba/netlogon/logon.bat
Now the Kix's part:
nano /home/samba/netlogon/logon.kix
If you have group, you can specify, like this:
IF INGROUP("DOMAIN\TheGroup")
USE Z: \\SERVER\Accounting
ENDIF
If you're using the same Drive's letter for each group, make sure to not put an user into more than 1 group or if you do, use a different letter for each share.
And Without groups:
USE P: \\SERVER\Public
ENDIF
When, you're done, Save & Close.
flip -m /home/samba/netlogon/logon.kix
About your printer, it's like Network drive mapping:
IF INGROUP(“\\SERVER\TheGroup”)
ADDPRINTERCONNECTION ("\\SERVER\HPMopier")
ENDIF
And/Or
ADDPRINTERCONNECTION ("\\SERVER\HPMopier")
Don't try to use IfMember.exe, because you've to copy it on client and while a simple user log on the domain, it might have no right to use "COPY" from the server to the %SystemRoot%.