Page 1 of 1 1
Topic Options
#11094 - 2001-08-02 10:55 AM Problems with mappings in the scripts
Anonymous
Unregistered


I΄ve got a Windows NT40 Network with NT40 Workstations. When i first startet with the kix-login-scripts everything was right. But now i have the problem, that not all defiened mappings in the *.kix script for my groups will be done. If i join a new user to a group this user will not get the mapping. The user i joined at the implementationtime have the mapping. what can i do or what΄s the error?
Top
#11095 - 2001-08-02 03:53 PM Re: Problems with mappings in the scripts
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Have you allowed enough time for the SAM to syncronize between DCs? In Server Manager, try to force a sync.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#11096 - 2001-08-03 08:57 AM Re: Problems with mappings in the scripts
Anonymous
Unregistered


Thanks for your tip, but it doesn΄t help. I can force the DC΄s to sync but the scripts will not be done in the right way.
It΄s also the same, some members of a group get the mapping and some users in the same group not.

Top
#11097 - 2001-08-03 09:11 AM Re: Problems with mappings in the scripts
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
franky,
have you checked that every DC has same versions of your script in their netlogons?
_________________________
!

download KiXnet

Top
#11098 - 2001-08-03 09:21 AM Re: Problems with mappings in the scripts
Anonymous
Unregistered


Here is the loginscript i΄m using.
Maybe i used a wrong definition??

Thanks for any help.

; NetDriveIcon aktivieren 

$AutoDrive=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun")

SELECT
CASE $AutoDrive = "85000000"
;OK
CASE $AutoDrive = "95000000"
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "85000000", "REG_BINARY")
CASE $AutoDrive = "B5000000"
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "A5000000", "REG_BINARY")
ENDSELECT


; Zeitanpassung an Server 
SETTIME "\\BH-File-01"

; Mapping fόr H: USERHome 
USE H: /DELETE
USE H: "\\BH-File-01\H-%USERNAME%$"


; Mapping fόr K: Kundenservice 
USE K: /DELETE
SELECT
CASE INGROUP("BH.KNDSV")
USE K: "\\BH-File-01\Kundenservice$"
ENDSELECT


; Mapping fόr M: Allgemein 
USE M: /DELETE
SELECT
CASE INGROUP("Domδnen-Benutzer")
USE M: "\\BH-File-01\Allgemein$"
ENDSELECT


; Mapping fόr P: Programme 
USE P: /DELETE
SELECT
CASE INGROUP("Domδnen-Benutzer")
USE P: "\\BH-File-01\Programme$"
ENDSELECT


; Mapping fόr S: Statistik 
USE S: /DELETE
SELECT
CASE INGROUP("BH.STK")
USE S: "\\BH-File-01\Statistik$"
ENDSELECT


; Mapping fόr V: Verwaltung 
USE V: /DELETE
SELECT
CASE INGROUP("BH.VERW")
USE V: "\\BH-File-01\Verwaltung$"
ENDSELECT


; Mapping fόr W: Vertrieb 
USE W: /DELETE
SELECT
CASE INGROUP("BH.VTB")
USE W: "\\BH-File-01\Vertrieb$"
ENDSELECT

; Mapping fόr X: EZArchiv-Administratoren 
USE X: /DELETE
SELECT
CASE INGROUP("BH.EASY.ADM")
USE X: "\\BH-EZArchiv-01\EASY$"
ENDSELECT

; Mapping fόr X: EZArchiv-User 
USE Q: /DELETE
SELECT
CASE INGROUP("BH.EZV")
USE Q: "\\BH-EZArchiv-01\EASY$"
ENDSELECT

; Mapping fόr Admin 
USE Y: /DELETE
USE Z: /DELETE

IF INGROUP("BH.ADM")
USE Y: "\\BH-File-01\C$"
USE Z: "\\BH-File-01\D$"
ENDIF


; ENDE [EMAIL]null[/EMAIL]

Top
#11099 - 2001-08-03 09:36 AM Re: Problems with mappings in the scripts
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, as an example, I take this
code:
USE Q: /DELETE
SELECT
CASE INGROUP("BH.EZV")
USE Q: "\\BH-EZArchiv-01\EASY$"
ENDSELECT


I don't know the speed of these selects and ifs but I would prefer to if as it's not so complex. and I think it's little bit faster too when used in this kindof simple way.
code:
USE Q: /DELETE
if INGROUP("BH.EZV")
USE Q: "\\BH-EZArchiv-01\EASY$"
endif

and then "$" is kix-symbol for variables and that makes it reserved. use instead in strings "$$" as

code:
USE Q: /DELETE
if INGROUP("BH.EZV")
USE Q: "\\BH-EZArchiv-01\EASY$$"
endif

that's all I came up with. maybe somebodys eye catches better...

_________________________
!

download KiXnet

Top
#11100 - 2001-10-24 11:36 PM Re: Problems with mappings in the scripts
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Is your problem solved? NO

We add some debugging to your script. Please put the contents of file
c:\kix-info.log on the board.

code:

CLS
COLOR C+/N
AT (1,1) " "
IF RedirectOutput("c:\kix-info.log")
ENDIF
? "-"+@date+" "+@time+"- Script "+@kix+" starting."
?"- 1-"+@time+"- @error @serror "? ;?????????????????? NetDriveIcon aktivieren ????????????????????
?"- 2-"+@time+"- @error @serror "? $autodrive=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun")
?"- 3-"+@time+"- @error @serror "? SELECT
?"- 4-"+@time+"- @error @serror "? CASE
$autodrive = "85000000"
?"- 5-"+@time+"- @error @serror "? ;OK
?"- 6-"+@time+"- @error @serror "? CASE
$autodrive = "95000000"
?"- 7-"+@time+"- @error @serror "? WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "85000000", "REG_BINARY")
?"- 8-"+@time+"- @error @serror "? CASE
$autodrive = "B5000000"
?"- 9-"+@time+"- @error @serror "? WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "A5000000", "REG_BINARY")
?"- 10-"+@time+"- @error @serror "? ENDSELECT
?"- 11-"+@time+"- @error @serror "?
?"- 12-"+@time+"- @error @serror "? ;?????????????????? Zeitanpassung an Server ?????????????????????
?"- 13-"+@time+"- @error @serror "? SETTIME "\\BH-File-01"
?"- 14-"+@time+"- @error @serror "? ;?????????????????? Mapping fr H: USERHome ?????????????????????
?"- 15-"+@time+"- @error @serror "? USE H: /delete
?"- 16-"+@time+"- @error @serror "? USE H: "\\BH-File-01\H-%USERNAME%$"
?"- 17-"+@time+"- @error @serror "?
?"- 18-"+@time+"- @error @serror "? ;?????????????????? Mapping fr K: Kundenservice ????????????????
?"- 19-"+@time+"- @error @serror "? USE K: /delete
?"- 20-"+@time+"- @error @serror "? SELECT
?"- 21-"+@time+"- @error @serror "? CASE
INGROUP("BH.KNDSV")
?"- 22-"+@time+"- @error @serror "? USE K: "\\BH-File-01\Kundenservice$"
?"- 23-"+@time+"- @error @serror "? ENDSELECT
?"- 24-"+@time+"- @error @serror "?
?"- 25-"+@time+"- @error @serror "? ;?????????????????? Mapping fr M: Allgemein ????????????????????
?"- 26-"+@time+"- @error @serror "? USE M: /delete
?"- 27-"+@time+"- @error @serror "? SELECT
?"- 28-"+@time+"- @error @serror "? CASE
INGROUP("Dom„nen-Benutzer")
?"- 29-"+@time+"- @error @serror "? USE M: "\\BH-File-01\Allgemein$"
?"- 30-"+@time+"- @error @serror "? ENDSELECT
?"- 31-"+@time+"- @error @serror "?
?"- 32-"+@time+"- @error @serror "? ;?????????????????? Mapping fr P: Programme ????????????????????
?"- 33-"+@time+"- @error @serror "? USE P: /delete
?"- 34-"+@time+"- @error @serror "? SELECT
?"- 35-"+@time+"- @error @serror "? CASE
INGROUP("Dom„nen-Benutzer")
?"- 36-"+@time+"- @error @serror "? USE P: "\\BH-File-01\Programme$"
?"- 37-"+@time+"- @error @serror "? ENDSELECT
?"- 38-"+@time+"- @error @serror "?
?"- 39-"+@time+"- @error @serror "? ;?????????????????? Mapping fr S: Statistik ????????????????????
?"- 40-"+@time+"- @error @serror "? USE S: /delete
?"- 41-"+@time+"- @error @serror "? SELECT
?"- 42-"+@time+"- @error @serror "? CASE
INGROUP("BH.STK")
?"- 43-"+@time+"- @error @serror "? USE S: "\\BH-File-01\Statistik$"
?"- 44-"+@time+"- @error @serror "? ENDSELECT
?"- 45-"+@time+"- @error @serror "?
?"- 46-"+@time+"- @error @serror "? ;?????????????????? Mapping fr V: Verwaltung ???????????????????
?"- 47-"+@time+"- @error @serror "? USE V: /delete
?"- 48-"+@time+"- @error @serror "? SELECT
?"- 49-"+@time+"- @error @serror "? CASE
INGROUP("BH.VERW")
?"- 50-"+@time+"- @error @serror "? USE V: "\\BH-File-01\Verwaltung$"
?"- 51-"+@time+"- @error @serror "? ENDSELECT
?"- 52-"+@time+"- @error @serror "?
?"- 53-"+@time+"- @error @serror "? ;?????????????????? Mapping fr W: Vertrieb ?????????????????????
?"- 54-"+@time+"- @error @serror "? USE W: /delete
?"- 55-"+@time+"- @error @serror "? SELECT
?"- 56-"+@time+"- @error @serror "? CASE
INGROUP("BH.VTB")
?"- 57-"+@time+"- @error @serror "? USE W: "\\BH-File-01\Vertrieb$"
?"- 58-"+@time+"- @error @serror "? ENDSELECT
?"- 59-"+@time+"- @error @serror "? ;?????????????????? Mapping fr X: EZArchiv-Administratoren ?????
?"- 60-"+@time+"- @error @serror "? USE X: /delete
?"- 61-"+@time+"- @error @serror "? SELECT
?"- 62-"+@time+"- @error @serror "? CASE
INGROUP("BH.EASY.ADM")
?"- 63-"+@time+"- @error @serror "? USE X: "\\BH-EZArchiv-01\EASY$"
?"- 64-"+@time+"- @error @serror "? ENDSELECT
?"- 65-"+@time+"- @error @serror "? ;?????????????????? Mapping fr X: EZArchiv-User ????????????????
?"- 66-"+@time+"- @error @serror "? USE Q: /delete
?"- 67-"+@time+"- @error @serror "? SELECT
?"- 68-"+@time+"- @error @serror "? CASE
INGROUP("BH.EZV")
?"- 69-"+@time+"- @error @serror "? USE Q: "\\BH-EZArchiv-01\EASY$"
?"- 70-"+@time+"- @error @serror "? ENDSELECT
?"- 71-"+@time+"- @error @serror "? ;?????????????????? Mapping fr Admin ???????????????????????????
?"- 72-"+@time+"- @error @serror "? USE Y: /delete
?"- 73-"+@time+"- @error @serror "? USE Z: /delete
?"- 74-"+@time+"- @error @serror "? IF INGROUP("BH.ADM")
?"- 75-"+@time+"- @error @serror "? USE Y: "\\BH-File-01\C$"
?"- 76-"+@time+"- @error @serror "? USE Z: "\\BH-File-01\D$"
?"- 77-"+@time+"- @error @serror "? ENDIF


One remark: your are using the SELECT/ENDSELECT structures during mapping
of your drives for only one group. We advise to use IF/ENDIF structures.
Result can be
code:

;?????????????????? NetDriveIcon aktivieren ????????????????????
$autodrive=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun")
SELECT
CASE
$autodrive = "85000000"
;OK
CASE
$autodrive = "95000000"
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "85000000", "REG_BINARY")
CASE
$autodrive = "B5000000"
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "A5000000", "REG_BINARY")
ENDSELECT
;?????????????????? Zeitanpassung an Server ?????????????????????
SETTIME "\\BH-File-01"
;?????????????????? Mapping fr H: USERHome ?????????????????????
USE H: /delete
USE H: "\\BH-File-01\H-%USERNAME%$"

;?????????????????? Mapping fr K: Kundenservice ????????????????
USE K: /delete
IF INGROUP("BH.KNDSV") <> 0
USE K: "\\BH-File-01\Kundenservice$"
ENDIF
;?????????????????? Mapping fr M: Allgemein ????????????????????
USE M: /delete
IF INGROUP("Dom„nen-Benutzer") <> 0
USE M: "\\BH-File-01\Allgemein$"
ENDIF
;?????????????????? Mapping fr P: Programme ????????????????????
USE P: /delete
IF INGROUP("Dom„nen-Benutzer") <> 0
USE P: "\\BH-File-01\Programme$"
ENDIF
;?????????????????? Mapping fr S: Statistik ????????????????????
USE S: /delete
IF INGROUP("BH.STK") <> 0
USE S: "\\BH-File-01\Statistik$"
ENDIF
;?????????????????? Mapping fr V: Verwaltung ???????????????????
USE V: /delete
IF INGROUP("BH.VERW") <> 0
USE V: "\\BH-File-01\Verwaltung$"
ENDIF
;?????????????????? Mapping fr W: Vertrieb ?????????????????????
USE W: /delete
IF INGROUP("BH.VTB") <> 0
USE W: "\\BH-File-01\Vertrieb$"
ENDIF
;?????????????????? Mapping fr X: EZArchiv-Administratoren ?????
USE X: /delete
IF INGROUP("BH.EASY.ADM") <> 0
USE X: "\\BH-EZArchiv-01\EASY$"
ENDIF
;?????????????????? Mapping fr X: EZArchiv-User ????????????????
USE Q: /delete
IF INGROUP("BH.EZV") <> 0
USE Q: "\\BH-EZArchiv-01\EASY$"
ENDIF
;?????????????????? Mapping fr Admin ???????????????????????????
USE Y: /delete
USE Z: /delete
IF INGROUP("BH.ADM") <> 0
USE Y: "\\BH-File-01\C$"
USE Z: "\\BH-File-01\D$"
ENDIF



greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 640 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.055 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org