thanks for your answer.

This a good way to save user connection but i need to know who is connected at the moment of the scan. With your solution, multiples cases are not treated :
- domain user who has closed the session,
- domain user who has not logon script
- local user created on workstation
- domain user who has opened a session on a laptop not connected the network (logon script not run) and then reconnect the laptop on the network

I just want to understand if there is a bug in my script or if this is a problem with WMI on XP workstations.
_________________________
Christophe