VMware Cloud Community
NeenaJim
Enthusiast
Enthusiast

Disconnect command for Connect-VIMobServer

Hello,

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?

Tags (1)
0 Kudos
3 Replies
LucD
Leadership
Leadership

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
NeenaJim
Enthusiast
Enthusiast

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! 

 

0 Kudos
LucD
Leadership
Leadership

Have a look at the VMware.vSphere.SsoAdmin module (also available on the PSGallery)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos