Reply to Message

View discussion in a popup

Replying to:
piercj2
Enthusiast
Enthusiast

Thanks but same result with changing that

I even removed the -errorAction but, same result.

the script is reaching the CATCH, from the output i see

inside TRY, working on jasontst01

inside CATCH working on jasontst01

jasontst01 does not exist on the vCenter being searched

inside TRY, working on jasontst011111111

inside CATCH working on jasontst011111111

jasontst011111111 does not exist on the vCenter being searched

the thing is, jasontst01 does exist so it should not reach the CATCH for this VM

a normal get-vm on jasontst01 works as expected

i'll remove the TRY / CATCH and see what errors it displays

Reply
0 Kudos