this is the obvious thing discussed lot on this board.
setdefaultprinter does not use printer's sharename but you need to set the printer default by it's name.

also, you should take a lookie at faq forum under "why does console display 1's and 0's (amongst others)"
_________________________
!

download KiXnet