thanks to all who replied

i have ended up mapping the default drive at the start of the ingroup test then doing a seperate if else for each user ( deleting the default desktop if the user matches)

if ingroup ("normal school")

use y: "\\$lserver\the y drive$"
use w: "\\$lserver\sch staff docs$"

use k: /delete/persistent
use k: "\\$lserver\sch staff desktop$"
dbgmessage("info ","staff desktop")

if @userid="user1"
use k: /delete/persistent
use k: "\\$lserver\user_desktop$"
dbgmessage("info ","personnel drive mapped user_desktop")
else

endif

not the best way to do it but it works for the moment until i get time to look into some more

Paul