Comment

Can any body help me as I am getting following error while executing the script.

Connect-Viserver: cannot validate argument on parameter ' Server'. The argument is null or empty.

supply an argument that is not null or empty and then try the command again.

At line:14 char:18

+ connect - Viserver $server -notdefault -warningaction silentlycontinue | out-null

+                                ~~~~~

+ categoryinfo : invalidate: (:) [connect-viserver], parameterbindingvalidationexception

+ fullyqualfiederrorid: parameter arugment validation error, VMware.vimautomation.vicore.cmdlets.commands.convvectviserver.