Hi all
I would really appreciate some helpe here. I have a Kix script which I intend to use for mapping network drives based on group membership. Here is the script.
code:
;INI File
[DOMAIN\TestGroup01]
N=\\Server\testshare01
O=\\Server\testshare02
code:
For Each $group in Split(ReadProfileString('groups.ini','',''),Chr(10))
If $group AND InGroup($group)
For Each $drive In Split(ReadProfileString('groups.ini',$group,''),Chr(10))
If $drive
$resource=readprofilestring('groups.ini',$group,$drive)
$rc=execute('$$resource='+$resource)
Use $drive+':' /delete /persistent
Use $drive+':' $resource
;Use $drive+':' ReadProfileString('groups.ini',$group,$drive)
EndIf
Next
EndIf
Next
I have tested the script by running it locally and it works fine. I then placed the Kix files, script and INI file in my Netlogon share on the domain controller (This is an NT Domain). In the logon script path, I have tried all of the following,
kix32 \netlogon\script.kix
kix32.exe \netlogon\script.kix
kix32 script.kix
kix script.kix
None of these commands seem to work at all besides for;
kix32 \netlogon\script.kix
Which deletes the existing drive mappings but does not create the new ones.
Does anyone have any ideas ?