Hi wonder if you can help me. Im trying to edit my log on script so that it does a couple of registry changes however Im finding that when I do this the script ends before it should.

Following is an extract from my logon script.

Basically it checks what group you are in and applies the appropiate drives and registry changes.

However it only checks the first in group rule and if your in both these groups (GG_Server1 and GG_Server2) it doesnt do the 2nd at all but ONLY if i have a writevalue in the if statement above, If I take this out it works no problem.

Please dont read too much into what the change is its only a section of the changes but all lines are almost same.

Can anyone help please?

Thanks

Glen


IF InGroup("WMS\GG_SERVER1") = 1
? "Mapping SERVER1 Drives"
Use U: /Delete /PERSISTENT
USE U: "\\SERVER1\Department Data"
Use H: /Delete /PERSISTENT
USE H: "\\SERVER1\Home" ; Home Drives

writevalue( "HKEY_CURRENT_USER\Control Panel\Desktop" , "SmoothScroll" , "00,00,00,00", "REG_BINARY" )

ENDIF

? "endit 1"


IF InGroup("WMS\GG_SERVER2") = 1
? "Mapping Logic Drives"
Use L: /Delete /PERSISTENT
USE L: "\\SERVER\User" ; Home Drives

writevalue( "HKEY_CURRENT_USER\Control Panel\Desktop" , "SmoothScroll" , "00,00,00,00", "REG_BINARY" )

ENDIF