MicrosoftDocs / windows-powershell-docs

This repo is used to contribute to Windows 10, Windows Server 2016, and MDOP PowerShell module documentation.
Creative Commons Attribution 4.0 International
445 stars 599 forks source link

Error Handling? #395

Closed Digger937 closed 5 years ago

Digger937 commented 6 years ago

Every once and a while a "move-clustersharedvolume" fails, errors output to the console, but are not catchable.

What I have tried,

1) try catch, no error thrown.

2) | Out-File, nothing is written to the file.

3) Assign results to a variable for parsing. Always returns an empty object.

There doesn't seem to be a way to capture the result of the move.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

o0nj commented 5 years ago

Hello, @Digger937 thank you for providing feedback.

Note that the form that you have submitted this feedback from is intended for product documentation issues only.

Please consider checking any relevant resources and asking the community about your problem via the following link.

PowerShell Community

Thanks.

o0nj commented 5 years ago

@officedocsbot close