Get-CcCredential

Skype for Business Server 2015
 

마지막으로 수정된 항목: 2017-07-18

The Get-CcCredential cmdlet returns the credential of the current Skype for Business Cloud Connector Edition deployment.

With Version 2.0, you can also use the -DisplayPassword parameter to show the passwords for TenantAdmin, DomainAdmin, and VMAdmin.

Get-CcCredential [[-AccountType] <string> {VmAdmin | DomainAdmin | SafeModeAdmin | ExternalCert | TenantAdmin}]

The following example returns the credential of the domain administrator of the Cloud Connector virtual machine domain:

Get-CcCredential -AccountType DomainAdmin

The Get-CcCredential cmdlet returns the credential information about the specified account type. These credentials are specified by the administrator who runs the Register-CcAppliance and Install-CcAppliance cmdlets when deploying the current appliance.

The Get-CcCredential cmdlet returns an instance of the System.Management.Automation.PSCredential object. The password property of the return object is System.Security.SecureString.

If you want to get the clear text of the domain administrator password, be sure the password is input by your current logon account on the host server, and then open a PowerShell console as administrator and run the below script:

$cred = Get-CcCredential -AccountType DomainAdmin
$password =  $cred.Password
$bstr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($password);
$text = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($bstr);
[System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($bstr);
Write-Host $text

 

Parameter Required Type Description

 AccountType

Required 

 System.String

AccountType value can be one of the following:  

  • VmAdmin: the local administrator of Cloud Connector virtual machines.

  • DomainAdmin: Domain administrator of Cloud Connector virtual machine domain.

  • SafeModeAdmin: SafeModeAdmin of Cloud Connector virtual machine domain controller.

  • ExternalCert: Account of external certificate installed on the Edge Server.

  • TenantAdmin: Administrator of the O365 tenant.

None. The Get-CcCredential cmdlet does not accept pipelined input.

The Get-CcCredential cmdlet returns an instance of the System.Management.Automation.PSCredential object.

 
표시: