Originally Posted By: Lonkero
I mean, you should log which part takes how much time, so you know which part is worth improving.

That's right, luckily i've found out that making the printerconnections takes the most time. It turned out that i kept making connections that were already there! Obviously there is no need for that. You only want to make the connection when it's not there and skip making the connection once you already have it. So far so good. If a person moves to another office, we just take him or her out of the original printer group, and into another. After a logout and in the new printer connection is there to use.

I'm trying to get this to work by looking at the presence of a key in the registry with the "KEYEXIST" function. I have to check why it is not working. Something to do with the @error i think.
_________________________
Still thinking about a good signature