I have nearly got this working... but I am having an issue with the location variable/property. I have setup a UserExit in cs.ini like this... .From memory...at home...
[Settings] Priorities=CSettings, Locations, OULookup,... [OULookup] MachineObjectOU=OULookup(%LOCATION%,%IsLaptop%,%IsDesktop%,%IsServer%) UserExit=UserExit.VBS In UserExit.vbs the function is Function OULookup(sLoc,bLaptop,bDesktop,bServer) 'Read variables and do stuff End Function All of the IsMachine True/False variables pass through to the function, but not the location data. I have also tried to reference a vbs global variable 'location' in the script - no success. The Location data is set by the higher priority section in cs.ini when it queries the DB with its subnet. BDD.log shows this section gets a property:value called Location001:SYD and this is copied to the Location property. OULookup function happens immediatley after the first Location DB lookup, before all the roles, settings, etc are queried. I am a bit stumpted!
Should I be referencing Location in a different way? Am I able to use a 'DB generated' Location variable in a userexit script?Any suggestions? Nick
|