Hi,
I wanted to use an IF statement to set a variable but don't know if it would work properly.
I want to test if a user belongs to a certain secgroup or not and if they do then
set a variable to TRUE and if they don't then set it to FALSE.
This is to change the PERSISTENT value when mapping network drives via logon script.
Then the string will be used in the
line
This is because when laptop users leave the LAN they get problems trying to browse to or attach files because their mapped drives are persistent.
Thanks
I wanted to use an IF statement to set a variable but don't know if it would work properly.
I want to test if a user belongs to a certain secgroup or not and if they do then
set a variable to TRUE and if they don't then set it to FALSE.
This is to change the PERSISTENT value when mapping network drives via logon script.
Code:
IF (SecGroupObj.Name) = "WorkstationUsers" THEN
PERSISTENT = TRUE
ELSE
PERSISTENT = FALSE
END IF
Code:
oNetwork.MapNetworkDrive "I:", "\\server\ADMIN",PERSISTENT
This is because when laptop users leave the LAN they get problems trying to browse to or attach files because their mapped drives are persistent.
Thanks