6. What is the below PS script used for? for ($i = 0 ; $Error.Count ; $i++) {$Error[$i].CategoryInfo $Error[$i].ErrorDetails $Error[$i].Exception $Error[$i].FullyQualifiedErrorId $Error[$i].InvocationInfo $Error[$i].TargetObject}   7. What is a method to continue running a cmdlet even if an error occurs?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter12: Exception Handling
Section: Chapter Questions
Problem 6RQ
icon
Related questions
Question
100%

Book reference: Windows PowerShell Step by Step 3rd Edition - Ed Wilson
Chapter 15

6. What is the below PS script used for?

for ($i = 0 ; $Error.Count ; $i++)

{$Error[$i].CategoryInfo

$Error[$i].ErrorDetails

$Error[$i].Exception

$Error[$i].FullyQualifiedErrorId

$Error[$i].InvocationInfo

$Error[$i].TargetObject}

 

7. What is a method to continue running a cmdlet even if an error occurs?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning