 < ? 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 = " r e a d E x c e l V c o D e m o X l s "   r e s u l t - t y p e = " P o w e r S h e l l : P o w e r S h e l l R e m o t e P S O b j e c t "   a p i - v e r s i o n = " 3 . 1 . 0 "     i d = " a 1 3 b 1 d 5 7 - 7 b b 3 - 4 1 a 9 - 8 d 5 4 - 8 4 1 2 2 3 4 9 8 5 6 3 "     v e r s i o n = " 1 . 0 . 0 "     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 [ T h i s   w o r k f l o w   r e a d s   a n d   l o g s   d a t a   f r o m   t h e   e x c e l - v c o - d e m o . x l s x   f i l e ] ] > < / d e s c r i p t i o n > 
 < p a r a m   n = " h o s t "   t = " P o w e r S h e l l : P o w e r S h e l l H o s t " > < ! [ C D A T A [ P o w e r S h e l l   H o s t ] ] > < / p a r a m > < p a r a m   n = " s e s s i o n I d "   t = " s t r i n g " > < ! [ C D A T A [ ] ] > < / p a r a m > < p a r a m   n = " f i l e P a t h "   t = " S t r i n g " > < ! [ C D A T A [ P a t h   t o   t h e   x l s / x l s x   f i l e ] ] > < / p a r a m > < p a r a m   n = " w o r k s h e e t N a m e "   t = " S t r i n g " > < ! [ C D A T A [ N a m e   o f   w o r k s h e e t   t o   p r o c e s s ] ] > < / p a r a m > < p a r a m   n = " e x c e l V e r s i o n "   t = " s t r i n g " > < ! [ C D A T A [ S t r i n g   i n p u t   o f   e i t h e r   " 2 0 0 3 "   o r   " 2 0 0 7 + " ] ] > < / 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   p s S c r i p t   =   ' ' 
 
 p s S c r i p t   + = ' # C h a n g e   t h e s e   s e t t i n g s   a s   n e e d e d \ n ' ; 
 
 p s S c r i p t   + = ' $ f i l e p a t h   =   " '   +   f i l e P a t h   +   ' " \ n ' ; 
 
 
 i f ( e x c e l V e r s i o n   = =   " 2 0 0 7 + " ) { 
 	 / / C o n n e c t i o n   S t r i n g   f o r   E x c e l   2 0 0 7 
 	 p s S c r i p t   + = ' $ c o n n S t r i n g   =   " P r o v i d e r = M i c r o s o f t . A C E . O L E D B . 1 2 . 0 ; D a t a   S o u r c e = ` " $ f i l e p a t h ` " ; E x t e n d e d   P r o p e r t i e s = ` " E x c e l   1 2 . 0   X m l ; H D R = Y E S ` " ; " \ n ' ; 
 
 } e l s e { 
 	 / / C o n n e c t i o n   S t r i n g   f o r   E x c e l   2 0 0 3 
 	 p s S c r i p t   + = ' $ c o n n S t r i n g   =   " P r o v i d e r = M i c r o s o f t . J e t . O L E D B . 4 . 0 ; D a t a   S o u r c e = ` " $ f i l e p a t h ` " ; E x t e n d e d   P r o p e r t i e s = ` " E x c e l   8 . 0 ; H D R = Y e s ; I M E X = 1 ` " ; " \ n ' ; 
 
 } 
 
 p s S c r i p t   + = ' $ q r y   =   \ ' s e l e c t   *   f r o m   [ '   +   w o r k s h e e t N a m e   +   ' $ ] \ ' \ n ' ; 
 
 p s S c r i p t   + = ' \ n ' ; 
 
 p s S c r i p t   + = ' $ D a t a T a b l e   =   N e w - O b j e c t    S y s t e m . D a t a . D a t a T a b l e  \ n ' ; 
 
 p s S c r i p t   + = ' \ n ' ; 
 
 p s S c r i p t   + = ' $ O l e D b A d a p t e r   =   N e w - O b j e c t   S y s t e m . D a t a . O l e D b . O l e D b D a t a A d a p t e r   $ q r y , $ c o n n S t r i n g \ n ' ; 
 
 p s S c r i p t   + = ' $ R o w s R e t u r n e d   =   $ O l e D b A d a p t e r . F i l l ( $ D a t a T a b l e ) \ n ' ; 
 
 p s S c r i p t   + = ' \ n ' ; 
 
 p s S c r i p t   + = ' F o r E a c h   ( $ D a t a R e c   i n   $ D a t a T a b l e )   { \ n ' ; 
 
 p s S c r i p t   + = ' 	 W r i t e - h o s t   " H o s t n a m e = $ ( $ D a t a R e c . H o s t n a m e )   D o m a i n = $ ( $ D a t a R e c . D o m a i n )   F Q D N = $ ( $ D a t a R e c . f q d n )   I P   A d d r e s s = $ ( $ D a t a R e c . \ ' I P   A d d r e s s \ ' )   M e m o r y = $ ( $ D a t a R e c . \ ' M e m o r y   ( G B ) \ ' )   C P U   C o u n t = $ ( $ D a t a R e c . c p u )   P r o c e s s e d = $ ( $ D a t a R e c . p r o c e s s e d ) " \ n ' ; 
 
 p s S c r i p t   + = ' } \ n ' ; 
 
 r e t u r n   S y s t e m . g e t M o d u l e ( " c o m . v m w a r e . l i b r a r y . p o w e r s h e l l " ) . i n v o k e S c r i p t (   h o s t , p s S c r i p t , s e s s i o n I d )   ; ] ] > < / s c r i p t > 
 < / d u n e s - s c r i p t - m o d u l e >