Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Viewing all articles
Browse latest Browse all 16717

Error handling

$
0
0

I am writing a PowerShell script including many PowerCLI commands.

I need to test the success of each PowerCLI command (powering up and down VMs, creating and removing snapshots, and so on).

Is there a general way to test the exit of PowerCLI commands and, in case of failure, to get in a variable a syntetic description of the error?

Regards

marius


Viewing all articles
Browse latest Browse all 16717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>