in my local desktop i am having a CSV file which contains server and VCserver.
using foreach loop, from local desktop connect server using invoke-command from there using connect-viserver connect VC (corresponds to Server row) and export the required VM output to CSV file.
error message: 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.
The error you are receiving indicates that you are trying to pass a NULL variable, basically nothing to server. Your running into a scope issue, see about_Remote_Variables