It shouldn't make any difference if your Connect-VIServer goes to vCenter appliance or not.
Once your connected you can run your script.
For the roles and permissions part you can have a look at vSphere permissions: export & import – Part 1.
It shouldn't make any difference if your Connect-VIServer goes to vCenter appliance or not.
Once your connected you can run your script.
For the roles and permissions part you can have a look at vSphere permissions: export & import – Part 1.