 < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " I S O - 8 8 5 9 - 1 "   s t a n d a l o n e = " y e s " ? > 
 < d u n e s - s c r i p t - m o d u l e   n a m e = " g e t C o m p u t e r A D B y N a m e "   r e s u l t - t y p e = " A D : C o m p u t e r A D "   a p i - v e r s i o n = " 3 . 1 . 0 "     i d = " a d 2 e d c d 5 - 1 2 5 3 - 4 2 0 8 - 9 1 5 a - 1 6 9 4 4 6 f 3 7 5 b 6 "     v e r s i o n = " 0 . 0 . 1 "     a l l o w e d - o p e r a t i o n s = " v f e "   > < d e s c r i p t i o n > < ! [ C D A T A [ G i v e n   a   c o m p u t e r   N a m e ,   s e a r c h   A D   a n d   r e t u r n   a n   A D : C o m p u t e r A D   o b j e c t   f o r   t h a t   n a m e .   I f   m o r e   t h a n   o n e   n a m e   i s   f o u n d ,   t h r o w   a n   e x c e p t i o n . ] ] > < / d e s c r i p t i o n > 
 < p a r a m   n = " c o m p u t e r N a m e "   t = " s t r i n g " > < ! [ C D A T A [ C o m p u t e r   N a m e   t o   s e a r c h   f o r ] ] > < / p a r a m > < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ v a r   c o m p u t e r s   =   A c t i v e D i r e c t o r y . g e t C o m p u t e r A D R e c u r s i v e l y ( c o m p u t e r N a m e ) ; 
 / / S y s t e m . l o g ( " C o m p u t e r   c o u n t :   " + c o m p u t e r s . l e n g t h ) ; 
 f o r   e a c h   ( p c   i n   c o m p u t e r s ) { 
 	 / / S y s t e m . l o g ( " C h e c k i n g   c o m p u t e r :   " + p c . n a m e ) ; 
 	 i f   ( c o m p u t e r N a m e . t o L o w e r C a s e ( )   = =   p c . n a m e . t o L o w e r C a s e ( ) ) { 
 	 	 / / S y s t e m . l o g ( " F o u n d   C o m p u t e r :   " + p c . n a m e ) ; 
 	 	 r e t u r n   p c ; 
 	 } 
 } 
 
 / /   N o t h i n g   f o u n d   s o   t h r o w   e x c e p t i o n : 
 t h r o w   " N o   m a t c h i n g   C o m p u t e r   f o u n d :   "   +   c o m p u t e r N a m e ; 
 ] ] > < / s c r i p t > 
 < / d u n e s - s c r i p t - m o d u l e >