hi luc ,
vm abc does not exist in inventory .so it will throw error (exception) and will force to run catch block
am i supposed to get checking exception text through catch block
You should add -ErrorAction Stop to get a terminating exception and this land in the catch block.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You should add -ErrorAction Stop to get a terminating exception and this land in the catch block.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
thanks it is working.