RE: [Exchange] RE: Outlook rules errors

2017-11-04 Thread Joseph L. Casale
vember 4, 2017 9:15 AM > To: exchange@lists.myitforum.com > Subject: Re: [Exchange] RE: Outlook rules errors > > But if it's a warning shouldn't I use WarningAction Stop? > > > On Nov 3, 2017, at 5:37 PM, Joseph L. Casale <jcas...@activenetwerx.com> > wrote: > &g

Re: [Exchange] RE: Outlook rules errors

2017-11-04 Thread Maglinger, Paul
ilto:listsad...@lists.myitforum.com] On Behalf Of Michael B. Smith >> Sent: Friday, November 3, 2017 3:00 PM >> To: exchange@lists.myitforum.com >> Subject: [Exchange] RE: Outlook rules errors >> >> You have two hyphens in front of WarningAction instead of one. >> >&

[Exchange] RE: Outlook rules errors

2017-11-03 Thread Joseph L. Casale
o:listsad...@lists.myitforum.com] On Behalf Of Michael B. Smith > Sent: Friday, November 3, 2017 3:00 PM > To: exchange@lists.myitforum.com > Subject: [Exchange] RE: Outlook rules errors > > You have two hyphens in front of WarningAction instead of one. > > -Origina

[Exchange] RE: Outlook rules errors

2017-11-03 Thread Michael B. Smith
sts.myitforum.com> Subject: [Exchange] RE: Outlook rules errors Sorry, I am 100% confident on this one. The indeterminate behavior results from myriad of error handling practices possible. The default preference and its implicit behavior, all pet peeves of mine. When writing a binary cmdlet,

[Exchange] RE: Outlook rules errors

2017-11-03 Thread Maglinger, Paul
.myitforum.com] On Behalf Of Michael B. Smith > Sent: Wednesday, November 1, 2017 1:46 PM > To: exchange@lists.myitforum.com > Subject: [Exchange] RE: Outlook rules errors > > I gotta jump in here: > > >> By invoking Get-Mailbox outside the pipeline the way you are,

[Exchange] RE: Outlook rules errors

2017-11-01 Thread Joseph L. Casale
th > Sent: Wednesday, November 1, 2017 1:46 PM > To: exchange@lists.myitforum.com > Subject: [Exchange] RE: Outlook rules errors > > I gotta jump in here: > > >> By invoking Get-Mailbox outside the pipeline the way you are, all the > objects are > >> accumulat

[Exchange] RE: Outlook rules errors

2017-11-01 Thread Michael B. Smith
rshell/ -Original Message- From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Joseph L. Casale Sent: Wednesday, November 1, 2017 3:30 PM To: 'exchange@lists.myitforum.com' Subject: [Exchange] RE: Outlook rules errors Sure, $i references a mailbox. Tha

[Exchange] RE: Outlook rules errors

2017-11-01 Thread Joseph L. Casale
Sure, $i references a mailbox. That has the offending owner of the invalid rule. Here is a rule I require all code I work with to follow, otherwise it gets filed in G:) Always use `Set-StrictMode -Version Latest` For every cmdlet that exposes it, use the -ErrorLevel parameter and either