vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
753 stars 603 forks source link

Add new features in Get-SsoPersonUser and new cmdlet Remove-IdentitySource #441

Closed dmilov closed 3 years ago

dmilov commented 3 years ago

Testing done:

>Get-IdentitySource -External

Type                   : ActiveDirectory
Alias                  : sof-powercli-qe
AuthenticationType     : password
AuthenticationUsername : administrator@sof-powercli-qe
FriendlyName           : sof-powercli-qe
PrimaryUrl             : ldap://sof-powercli-qe.eng.vmware.com:389
FailoverUrl            :
UserBaseDN             : CN=Users,DC=sof-powercli-qe,DC=eng,DC=vmware,DC=com
GroupBaseDN            : CN=Users,DC=sof-powercli-qe,DC=eng,DC=vmware,DC=com
Name                   : sof-powercli-qe.eng.vmware.com

> Get-IdentitySource

Name
----
localos
vsphere.local
sof-powercli-qe.eng.vmware.com

>Get-IdentitySource -External | Remove-IdentitySource
> Get-IdentitySource

Name
----
localos
vsphere.local
> Get-SsoGroup -Domain vsphere.local -Name Administrators | Get-SsoPersonUser

Name         : Administrator
Domain       : vsphere.local
Description  :
FirstName    : Administrator
LastName     : vsphere.local
EmailAddress :
Locked       : False
Disabled     : False