2017-10-20 166 views

回答

1

使用Get-MsolServicePrincipalCredential从https://docs.microsoft.com/en-us/powershell/module/msonline/?view=azureadps-1.0

PS C:\Users\maweeras> Get-MsolServicePrincipalCredential -ObjectId $ServicePrincipalId.ObjectId -ReturnKeyValues $true 


Type  : Asymmetric 
Value  : 
KeyId  : 893295bf-f682-4682-a1d6-106508f41432 
StartDate : 20/10/2016 21:56:16 
EndDate : 20/10/2018 21:56:16 
Usage  : Sign 

Type  : Password 
Value  : 
KeyId  : 893295bf-f682-4682-a1d6-106508f41432 
StartDate : 20/10/2016 21:56:16 
EndDate : 20/10/2018 21:56:16 
Usage  : Sign 

Type  : Asymmetric 
Value  : MIIC8DCCAdigAwIBAgIQK<snipped for brevity>E/Ce59c7EJAEjbtvyXiwRLvy07SMZgLBbrpBSOc9f2RaSZlQEmzagNEoDZnXHRYCIVlD7DN7Xdf96iGja4 
      pwoZaRz6TW618EIQAh+jAuUcOxInGJErrHZjMjaFmWSsH 
KeyId  : 3ee9318e-b35a-48a8-b24c-5311d076e9e3 
StartDate : 20/10/2016 21:56:16 
EndDate : 20/10/2018 21:56:16 
Usage  : Verify 

Type  : Other 
Value  : 
KeyId  : 
StartDate : 
EndDate : 
Usage  : 
+0

作为回答,但MSOnline模块有利于AzureAD模块被弃用我将标志着这一点。 [AzureAD](https://docs.microsoft.com/en-us/powershell/module/Azuread/?view=azureadps-2.0) 但是,这确实让我开始了正确的道路。谢谢! –