It doesn't work because write-host is used instead of write-output. You have to make that change manually.
Regards, Michael B. Smith Consultant and Exchange MVP http://TheEssentialExchange.com From: David Liu [mailto:[email protected]] Sent: Tuesday, August 23, 2011 11:51 AM To: NT System Admin Issues Subject: Simple PS I'm trying to run the Recipient Policy conflict ps here http://gallery.technet.microsoft.com/scriptcenter/3e407220-3330-4174-8ec1-fdf163dbc73c and it outputs to terminal just fine but I've tried | output-file c:\blah.txt or using pipe > and neither is writing output to file. I'm sure its something simple but am stuck. Anyone? thanks ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
