something must be wrong...

Copy+paste all code from

Function InOU($OUName, Optional $IsComputer) ; (Standalone version restricted to Windows 2000 and XP systems)

to

Endfunction

and after add...

If InOU ("XXXXXXX")=1
use Q: "\\XXXXX\XXX"
EndIF

and it nothing happens...