Hi. I have been trying to create a Userexist script that would check if the machine is for instance a Laptop.If the machines is a Laptop then it should be boundled with a certain Role.The purpose is when you roll a machine some laptop specifc packages (ex VPN client) should be added to the build automaticly. Problem seem to that the Role can be Role1 on some builds and Role2, 3 or 4 on some build depending on how many Roles the machine have attached to it. So would be cool if the script uses som sort on "NextRole" variable. Script checks if the Machine is a Laptop if YES then add "Laptop_Role" to the next role ex Role3. Thanks! |