If InGroup("GG-DPT-AULAFORMACION")
SHELL "regedit.exe /s "+$rute+"imp-2-I01101.reg"
EndIf

If InGroup("-DG-Agriculture")
SHELL "regedit.exe /s "+$rute+"imp-2-I13104.reg"
SHELL "regedit.exe /s "+$rute+"imp-2-I13005.reg"
SHELL "regedit.exe /s "+$rute+"imp-2-I13101.reg"
EndIf

This is a part. This is repeated for groups very much, around 50. What would be a more optimal way.All this is to add printers to register in HKCU\Printers\connections. Thanks