Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

equivalent of on error resume next

380 views
Skip to first unread message

IT Staff

unread,
Jul 12, 2007, 10:04:34 PM7/12/07
to
What is the powershell of "on error resume next"

What are the error cmdlets i can note of ?


Brandon Shell

unread,
Jul 12, 2007, 10:49:04 PM7/12/07
to
There are three variables that maintain error information.
$error = maintains the last x number of errors
$ErrorActionPreference = What happens on error
$ErrorView = Verbosity of errors

You can also use trap.

Good Info on Error Handling
http://blogs.msdn.com/powershell/archive/2006/04/25/583241.aspx
http://blogs.msdn.com/powershell/archive/2006/06/21/641010.aspx
http://msdn2.microsoft.com/en-us/library/ms714414.aspx

"IT Staff" <jkk...@hotmail.com> wrote in message
news:OSr8qIPx...@TK2MSFTNGP06.phx.gbl...

RichS

unread,
Jul 14, 2007, 4:24:02 PM7/14/07
to
If you need the PowerShell equivalent of other VBscript commands - this is a
good place to start

http://www.microsoft.com/technet/scriptcenter/topics/winpsh/convert/default.mspx
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk

0 new messages