$groupname='"domain users"'
$textfile ='c:\group.txt'
shell 'cmd /c net group '+$groupname+' /domain >> '+$textfile
_________________________
How to ask questions the smart way <-----------> Before you ask