I know for connecting the vCenter we use: connect-viserver -server command
and disconnecting we use: Disconnect-VIServer -Server * -Force –Confirm:$false
Also I get the current session if I check the command: $global:defaultviserver
Here I am trying to find the disconnect and current session command for 'Connect-VIMobServer'
I am able to connect the vCenter using this command : 'Connect-VIMobServer'. But there is no output if I run the command: $global:defaultviserver.
Also not sure what is disconnect command for 'Connect-VIMobServer'
Can someone please help me?
That is not a PowerCLI cmdlet, but a function someone contributed to the PS Gallery.
This function seems to be part of a module named VIPerms.
Perhaps try contacting the author via his blog post Managing vSphere Global Permissions with PowerShell
Thank you @LucD ,
That is what exactly I was trying to do. (Adding a domain user into vCenter). But using that commands I am not sure how to disconnect and connect our different vCenters.
If you dont mind can you please let me know the commands that I can add a domain user into vCenter providing 'read only' permission?
Also command to list all the user/Groups ?
Thank you in advance!