Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Catch-all

Reply
 
Old 08-13-2007   #1 (permalink)
Greg23


 
 

Catch-all

hello,

Does someone know how ican use catch-all with Powershell plz ????
--

Grégory

My System SpecsSystem Spec
Old 08-13-2007   #2 (permalink)
Marco Shaw


 
 

Re: Catch-all

Greg23 wrote:
> hello,
>
> Does someone know how ican use catch-all with Powershell plz ????


Sorry, you're talking about a "catch-all" rule for Exchange or some kind
of PowerShell function/script?

Marco

--
----------------
PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 08-13-2007   #3 (permalink)
Oisin Grehan


 
 

Re: Catch-all

On Aug 13, 10:24 am, Greg23 <Gre...@discussions.microsoft.com> wrote:
> hello,
>
> Does someone know how ican use catch-all with Powershell plz ????
> --
>
> Grégory


If you mean "catch all exceptions," e.g. "on error resume next" type
behaviour, place:

trap { continue; }

in the root scope.

- Oisin

My System SpecsSystem Spec
Old 08-13-2007   #4 (permalink)
Brandon Shell


 
 

Re: Catch-all

Or you can set $ErrorActionPreference according to
http://blogs.msdn.com/powershell/arc...25/583241.aspx

"Oisin Grehan" <oising@gmail.com> wrote in message
news:1187048075.581404.14450@x40g2000prg.googlegroups.com...
On Aug 13, 10:24 am, Greg23 <Gre...@discussions.microsoft.com> wrote:
> hello,
>
> Does someone know how ican use catch-all with Powershell plz ????
> --
>
> Grégory


If you mean "catch all exceptions," e.g. "on error resume next" type
behaviour, place:

trap { continue; }

in the root scope.

- Oisin

My System SpecsSystem Spec
Old 08-14-2007   #5 (permalink)
Greg23


 
 

Re: Catch-all

Hello,

i'd like to make a script for a rukle exchange, to redirect unknow email
address.

cause, i'don't see anything in exchange 2007 Console about catch-all, where
you make transport rules

Thks for your answers

Grégory



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Newsgroups won't catch up Vista mail
Try Catch .NET General
catch-up Vista mail
How to TRY and CATCH PowerShell
I Catch VI Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46