zh-Hant/Microsoft.Open.Azure.AD.CommonLibrary.dll-Help.xml

<?xml version="1.0" encoding="utf-8"?>
<helpItems schema="maml" xmlns="http://msh">
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
    <command:details>
      <command:name>Connect-AzureAD</command:name>
      <command:verb>Connect</command:verb>
      <command:noun>AzureAD</command:noun>
      <maml:description>
        <maml:para>利用經過驗證的帳戶進行連線,使用 Active Directory Cmdlet 要求。</maml:para>
      </maml:description>
    </command:details>
    <maml:description>
      <maml:para>Connect-AzureAD Cmdlet 可連線經過驗證的帳戶,以用於 Azure Active Directory Cmdlet 要求。</maml:para>
      <maml:para>您僅能搭配 Azure Active Directory Cmdlet 使用此驗證帳戶。</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Connect-AzureAD</maml:name>
        <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>AadAccessToken</maml:name>
          <maml:Description>
            <maml:para>指定 Azure Active Directory Graph 存取權杖。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>AccountId</maml:name>
          <maml:Description>
            <maml:para>指定帳戶的識別碼。以使用者存取權杖進行驗證時,必須指定使用者的 UPN。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>AzureEnvironmentName</maml:name>
          <maml:Description>
            <maml:para>指定 Azure 環境名稱。此參數可接受的值為: </maml:para>
            <maml:para>- AzureCloud</maml:para>
            <maml:para>- AzureChinaCloud</maml:para>
            <maml:para>- AzureUSGovernment</maml:para>
            <maml:para>- AzureGermanyCloud</maml:para>
            <maml:para></maml:para>
            <maml:para>預設值為 AzureCloud。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">EnvironmentName</command:parameterValue>
          <dev:type>
            <maml:name>EnvironmentName</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="infa">
          <maml:name>InformationAction</maml:name>
          <maml:Description>
            <maml:para>指定此 Cmdlet 回應資訊事件的方式。此參數可接受的值:</maml:para>
            <maml:para>- Continue</maml:para>
            <maml:para>- Ignore</maml:para>
            <maml:para>- Inquire</maml:para>
            <maml:para>- SilentlyContinue</maml:para>
            <maml:para>- Stop</maml:para>
            <maml:para>- Suspend</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">ActionPreference</command:parameterValue>
          <dev:type>
            <maml:name>ActionPreference</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="iv">
          <maml:name>InformationVariable</maml:name>
          <maml:Description>
            <maml:para>指定用以儲存資訊事件訊息的變數。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>LogLevel</maml:name>
          <maml:Description>
            <maml:para>指定記錄層級。此參數可接受的值為: </maml:para>
            <maml:para>- Info</maml:para>
            <maml:para>- Error</maml:para>
            <maml:para>- Warning</maml:para>
            <maml:para>- None</maml:para>
            <maml:para></maml:para>
            <maml:para>預設值為「資訊」。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">LogLevel</command:parameterValue>
          <dev:type>
            <maml:name>LogLevel</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>MsAccessToken</maml:name>
          <maml:Description>
            <maml:para>指定 Microsoft Graph 存取權杖。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Domain, TenantDomain">
          <maml:name>TenantId</maml:name>
          <maml:Description>
            <maml:para>指定租用戶的識別碼。</maml:para>
            <maml:para>若未指定此參數,即會使用主租用戶驗證該帳戶。</maml:para>
            <maml:para>您必須指定 TenantId 參數才可驗證為服務主體,或是使用 Microsoft 帳戶時必須指定 TenantId 參數。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="cf">
          <maml:name>Confirm</maml:name>
          <maml:Description>
            <maml:para>執行 Cmdlet 前先提示您加以確認。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="wi">
          <maml:name>WhatIf</maml:name>
          <maml:Description>
            <maml:para>顯示執行此 Cmdlet 時會發生的狀況。此 Cmdlet 並未執行。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>LogFilePath</maml:name>
          <maml:Description>
            <maml:para>此 PowerShell 工作階段的記錄檔會寫入的路徑。如需從預設 PowerShell 記錄檔位置脫離,請於此處提供值。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
      <command:syntaxItem>
        <maml:name>Connect-AzureAD</maml:name>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>AccountId</maml:name>
          <maml:Description>
            <maml:para>指定帳戶的識別碼。當使用使用者存取權杖進行驗證時,必須指定使用者的 UPN。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>AzureEnvironmentName</maml:name>
          <maml:Description>
            <maml:para>指定 Azure 環境名稱。此參數可接受的值:</maml:para>
            <maml:para>- AzureCloud</maml:para>
            <maml:para>- AzureChinaCloud</maml:para>
            <maml:para>- AzureUSGovernment</maml:para>
            <maml:para>- AzureGermanyCloud</maml:para>
            <maml:para></maml:para>
            <maml:para>預設值為 AzureCloud。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">EnvironmentName</command:parameterValue>
          <dev:type>
            <maml:name>EnvironmentName</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>Credential</maml:name>
          <maml:Description>
            <maml:para>指定 PSCredential 物件。如需 PSCredential 物件的詳細資訊,請輸入 Get-Help Get-Credential。</maml:para>
            <maml:para>PSCredential 物件為組織識別碼認證提供使用者識別碼及密碼。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">PSCredential</command:parameterValue>
          <dev:type>
            <maml:name>PSCredential</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="infa">
          <maml:name>InformationAction</maml:name>
          <maml:Description>
            <maml:para>指定此 Cmdlet 回應資訊事件的方式。此參數可接受的值:</maml:para>
            <maml:para>- Continue</maml:para>
            <maml:para>- Ignore</maml:para>
            <maml:para>- Inquire</maml:para>
            <maml:para>- SilentlyContinue</maml:para>
            <maml:para>- Stop</maml:para>
            <maml:para>- Suspend</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">ActionPreference</command:parameterValue>
          <dev:type>
            <maml:name>ActionPreference</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="iv">
          <maml:name>InformationVariable</maml:name>
          <maml:Description>
            <maml:para>指定用以儲存資訊事件訊息的變數。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>LogLevel</maml:name>
          <maml:Description>
            <maml:para>指定記錄層級。此參數可接受的值: </maml:para>
            <maml:para>- Info</maml:para>
            <maml:para>- Error</maml:para>
            <maml:para>- Warning</maml:para>
            <maml:para>- None</maml:para>
            <maml:para></maml:para>
            <maml:para>預設值為 Info。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">LogLevel</command:parameterValue>
          <dev:type>
            <maml:name>LogLevel</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Domain, TenantDomain">
          <maml:name>TenantId</maml:name>
          <maml:Description>
            <maml:para>指定租用戶的識別碼。</maml:para>
            <maml:para>若未指定此參數,會向主租用戶驗證此帳戶。</maml:para>
            <maml:para>若要以服務主體的方式驗證,或要使用 Microsoft 帳戶,必須指定 TenantId 參數。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="cf">
          <maml:name>Confirm</maml:name>
          <maml:Description>
            <maml:para>在執行 Cmdlet 前提示您確認。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="wi">
          <maml:name>WhatIf</maml:name>
          <maml:Description>
            <maml:para>顯示執行此 Cmdlet 後會發生的情況。此 Cmdlet 並未執行。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>LogFilePath</maml:name>
          <maml:Description>
            <maml:para>此 PowerShell 工作階段之記錄檔所要寫入的路徑。若不要使用預設的 PowerShell 記錄檔位址,請在此提供值。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
      <command:syntaxItem>
        <maml:name>Connect-AzureAD</maml:name>
        <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>ApplicationId</maml:name>
          <maml:Description>
            <maml:para>指定服務主體的應用程式識別碼。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>AzureEnvironmentName</maml:name>
          <maml:Description>
            <maml:para>指定 Azure 環境名稱。此參數可接受的值:</maml:para>
            <maml:para>- AzureCloud</maml:para>
            <maml:para>- AzureChinaCloud</maml:para>
            <maml:para>- AzureUSGovernment</maml:para>
            <maml:para>- AzureGermanyCloud</maml:para>
            <maml:para></maml:para>
            <maml:para>預設值為 AzureCloud。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">EnvironmentName</command:parameterValue>
          <dev:type>
            <maml:name>EnvironmentName</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>CertificateThumbprint</maml:name>
          <maml:Description>
            <maml:para>指定有權限可執行此動作的使用者帳戶之數位公開金鑰 X.509 憑證的憑證指紋。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="infa">
          <maml:name>InformationAction</maml:name>
          <maml:Description>
            <maml:para>指定此 Cmdlet 回應資訊事件的方式。此參數可接受的值:</maml:para>
            <maml:para>- Continue</maml:para>
            <maml:para>- Ignore</maml:para>
            <maml:para>- Inquire</maml:para>
            <maml:para>- SilentlyContinue</maml:para>
            <maml:para>- Stop</maml:para>
            <maml:para>- Suspend</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">ActionPreference</command:parameterValue>
          <dev:type>
            <maml:name>ActionPreference</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="iv">
          <maml:name>InformationVariable</maml:name>
          <maml:Description>
            <maml:para>指定用以儲存資訊事件訊息的變數。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>LogLevel</maml:name>
          <maml:Description>
            <maml:para>指定記錄層級。此參數可接受的值: </maml:para>
            <maml:para>- Info</maml:para>
            <maml:para>- Error</maml:para>
            <maml:para>- Warning</maml:para>
            <maml:para>- None</maml:para>
            <maml:para></maml:para>
            <maml:para>預設值為 Info。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">LogLevel</command:parameterValue>
          <dev:type>
            <maml:name>LogLevel</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Domain, TenantDomain">
          <maml:name>TenantId</maml:name>
          <maml:Description>
            <maml:para>指定租用戶的識別碼。</maml:para>
            <maml:para>若未指定此參數,會向主租用戶驗證此帳戶。</maml:para>
            <maml:para>若要以服務主體的方式驗證,或要使用 Microsoft 帳戶,必須指定 TenantId 參數。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="cf">
          <maml:name>Confirm</maml:name>
          <maml:Description>
            <maml:para>在執行 Cmdlet 前提示您確認。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="wi">
          <maml:name>WhatIf</maml:name>
          <maml:Description>
            <maml:para>顯示執行此 Cmdlet 後會發生的情況。此 Cmdlet 並未執行。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
          <maml:name>LogFilePath</maml:name>
          <maml:Description>
            <maml:para>此 PowerShell 工作階段之記錄檔所要寫入的路徑。若不要使用預設的 PowerShell 記錄檔位址,請在此提供值。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>AadAccessToken</maml:name>
        <maml:Description>
          <maml:para>指定 Azure Active Directory Graph 存取權杖。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>AccountId</maml:name>
        <maml:Description>
          <maml:para>指定帳戶的識別碼。當使用使用者存取權杖進行驗證時,必須指定使用者的 UPN。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>ApplicationId</maml:name>
        <maml:Description>
          <maml:para>指定服務主體的應用程式識別碼。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>AzureEnvironmentName</maml:name>
        <maml:Description>
          <maml:para>指定 Azure 環境名稱。此參數可接受的值:</maml:para>
          <maml:para>- AzureCloud</maml:para>
          <maml:para>- AzureChinaCloud</maml:para>
          <maml:para>- AzureUSGovernment</maml:para>
          <maml:para>- AzureGermanyCloud</maml:para>
          <maml:para></maml:para>
          <maml:para>預設值為 AzureCloud。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">EnvironmentName</command:parameterValue>
        <dev:type>
          <maml:name>EnvironmentName</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="true" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>CertificateThumbprint</maml:name>
        <maml:Description>
          <maml:para>指定有權限可執行此動作的使用者帳戶之數位公開金鑰 X.509 憑證的憑證指紋。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>Credential</maml:name>
        <maml:Description>
          <maml:para>指定 PSCredential 物件。如需 PSCredential 物件的詳細資訊,請輸入 Get-Help Get-Credential。</maml:para>
          <maml:para>PSCredential 物件為組織識別碼認證提供使用者識別碼及密碼。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">PSCredential</command:parameterValue>
        <dev:type>
          <maml:name>PSCredential</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="infa">
        <maml:name>InformationAction</maml:name>
        <maml:Description>
          <maml:para>指定此 Cmdlet 回應資訊事件的方式。此參數可接受的值:</maml:para>
          <maml:para>- Continue</maml:para>
          <maml:para>- Ignore</maml:para>
          <maml:para>- Inquire</maml:para>
          <maml:para>- SilentlyContinue</maml:para>
          <maml:para>- Stop</maml:para>
          <maml:para>- Suspend</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">ActionPreference</command:parameterValue>
        <dev:type>
          <maml:name>ActionPreference</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="iv">
        <maml:name>InformationVariable</maml:name>
        <maml:Description>
          <maml:para>指定用以儲存資訊事件訊息的變數。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>LogLevel</maml:name>
        <maml:Description>
          <maml:para>指定記錄層級。此參數可接受的值: </maml:para>
          <maml:para>- Info</maml:para>
          <maml:para>- Error</maml:para>
          <maml:para>- Warning</maml:para>
          <maml:para>- None</maml:para>
          <maml:para></maml:para>
          <maml:para>預設值為 Info。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">LogLevel</command:parameterValue>
        <dev:type>
          <maml:name>LogLevel</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>MsAccessToken</maml:name>
        <maml:Description>
          <maml:para>指定 Microsoft Graph 存取權杖。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="Domain, TenantDomain">
        <maml:name>TenantId</maml:name>
        <maml:Description>
          <maml:para>指定租用戶的識別碼。</maml:para>
          <maml:para>若未指定此參數,會向主租用戶驗證此帳戶。</maml:para>
          <maml:para>若要以服務主體的方式驗證,或要使用 Microsoft 帳戶,必須指定 TenantId 參數。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="cf">
        <maml:name>Confirm</maml:name>
        <maml:Description>
          <maml:para>在執行 Cmdlet 前提示您確認。</maml:para>
        </maml:Description>
        <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="wi">
        <maml:name>WhatIf</maml:name>
        <maml:Description>
          <maml:para>顯示執行此 Cmdlet 後會發生的情況。此 Cmdlet 並未執行。</maml:para>
        </maml:Description>
        <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
        <maml:name>LogFilePath</maml:name>
        <maml:Description>
          <maml:para>此 PowerShell 工作階段之記錄檔所要寫入的路徑。若不要使用預設的 PowerShell 記錄檔位址,請在此提供值。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
    </command:parameters>
    <command:inputTypes/>
    <command:returnValues/>
    <maml:alertSet>
      <maml:alert>
        <maml:para></maml:para>
      </maml:alert>
    </maml:alertSet>
    <command:examples>
      <command:example>
        <maml:title>範例 1: 將 PowerShell 工作階段連線到租用戶</maml:title>
        <dev:code>PS C:\&gt; Connect-AzureAD -Confirm</dev:code>
        <dev:remarks>
          <maml:para>此命令可將目前的 PowerShell 工作階段連線到 Azure Active Directory 租用戶。此命令會提示您提供要連線之租用戶的使用者名稱與密碼。Confirm 參數會提示您進行確認。</maml:para>
          <maml:para>若您的認證已啟用多重要素驗證,則您必須使用互動式選項登入,或使用服務主體驗證。</maml:para>
        </dev:remarks>
      </command:example>
      <command:example>
        <maml:title>範例 2: 使用變數連線工作階段</maml:title>
        <dev:code>PS C:\&gt; $Credential = Get-Credential
PS C:\&gt; Connect-AzureAD -Credential $Credential</dev:code>
        <dev:remarks>
          <maml:para>第一個命令會取得使用者認證,並接著在 $Credential 變數中加以儲存。</maml:para>
          <maml:para>第二個命令可連線使用 $Credential 中認證的目前 PowerShell 工作階段。</maml:para>
          <maml:para>此帳戶可使用組織識別碼認證,對 Azure Active Directory 進行驗證。您無法使用多重要素驗證或 Microsoft 帳戶認證,以此帳戶執行 Azure Active Directory Cmdlet。</maml:para>
        </dev:remarks>
      </command:example>
      <command:example>
        <maml:title>範例 3: 將工作階段連線為服務主體</maml:title>
        <dev:code># Login to Azure AD PowerShell With Admin Account
Connect-AzureAD
 
# Create the self signed cert
$currentDate = Get-Date
$endDate = $currentDate.AddYears(1)
$notAfter = $endDate.AddYears(1)
$pwd = "&lt;password&gt;"
$thumb = (New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my -DnsName com.foo.bar -KeyExportPolicy Exportable -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -NotAfter $notAfter).Thumbprint
$pwd = ConvertTo-SecureString -String $pwd -Force -AsPlainText
Export-PfxCertificate -cert "cert:\localmachine\my\$thumb" -FilePath c:\temp\examplecert.pfx -Password $pwd
 
# Load the certificate
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate("C:\temp\examplecert.pfx", $pwd)
$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData())
 
 
# Create the Azure Active Directory Application
$application = New-AzureADApplication -DisplayName "test123" -IdentifierUris "https://test123"
New-AzureADApplicationKeyCredential -ObjectId $application.ObjectId -CustomKeyIdentifier "Test123" -StartDate $currentDate -EndDate $endDate -Type AsymmetricX509Cert -Usage Verify -Value $keyValue
 
# Create the Service Principal and connect it to the Application
$sp=New-AzureADServicePrincipal -AppId $application.AppId
 
# Give the Service Principal Reader access to the current tenant (Get-AzureADDirectoryRole)
Add-AzureADDirectoryRoleMember -ObjectId 5997d714-c3b5-4d5b-9973-ec2f38fd49d5 -RefObjectId $sp.ObjectId
 
# Get Tenant Detail
$tenant=Get-AzureADTenantDetail
# Now you can login to Azure PowerShell with your Service Principal and Certificate
Connect-AzureAD -TenantId $tenant.ObjectId -ApplicationId $sp.AppId -CertificateThumbprint $thumb</dev:code>
        <dev:remarks>
          <maml:para>此命令可將 Azure Active Directory 使用者,驗證為服務主體。</maml:para>
        </dev:remarks>
      </command:example>
    </command:examples>
    <command:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Disconnet-AzureAD</maml:linkText>
        <maml:uri></maml:uri>
      </maml:navigationLink>
    </command:relatedLinks>
  </command:command>
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
    <command:details>
      <command:name>Disconnect-AzureAD</command:name>
      <command:verb>Disconnect</command:verb>
      <command:noun>AzureAD</command:noun>
      <maml:description>
        <maml:para>中斷目前工作階段與 Azure Active Directory 租用戶的連線。 </maml:para>
      </maml:description>
    </command:details>
    <maml:description>
      <maml:para>Disconnect-AzureAD Cmdlet 可中斷目前工作階段與 Azure Active Directory 租用戶的連線。</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Disconnect-AzureAD</maml:name>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="infa">
          <maml:name>InformationAction</maml:name>
          <maml:Description>
            <maml:para>指定此 Cmdlet 回應資訊事件的方式。此參數可接受的值:</maml:para>
            <maml:para>- Continue</maml:para>
            <maml:para>- Ignore</maml:para>
            <maml:para>- Inquire</maml:para>
            <maml:para>- SilentlyContinue</maml:para>
            <maml:para>- Stop</maml:para>
            <maml:para>- Suspend</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">ActionPreference</command:parameterValue>
          <dev:type>
            <maml:name>ActionPreference</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="iv">
          <maml:name>InformationVariable</maml:name>
          <maml:Description>
            <maml:para>指定用以儲存資訊事件訊息的變數。</maml:para>
          </maml:Description>
          <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
          <dev:type>
            <maml:name>String</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>None</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="cf">
          <maml:name>Confirm</maml:name>
          <maml:Description>
            <maml:para>執行 Cmdlet 前先提示您加以確認。執行 Cmdlet 前先提示您加以確認。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="wi">
          <maml:name>WhatIf</maml:name>
          <maml:Description>
            <maml:para>顯示執行此 Cmdlet 時會發生的狀況。此 Cmdlet 並未執行。顯示執行此 Cmdlet 時會發生的狀況。此 Cmdlet 並未執行。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="infa">
        <maml:name>InformationAction</maml:name>
        <maml:Description>
          <maml:para>指定此 Cmdlet 回應資訊事件的方式。此參數可接受的值:</maml:para>
          <maml:para>- Continue</maml:para>
          <maml:para>- Ignore</maml:para>
          <maml:para>- Inquire</maml:para>
          <maml:para>- SilentlyContinue</maml:para>
          <maml:para>- Stop</maml:para>
          <maml:para>- Suspend</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">ActionPreference</command:parameterValue>
        <dev:type>
          <maml:name>ActionPreference</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="iv">
        <maml:name>InformationVariable</maml:name>
        <maml:Description>
          <maml:para>指定用以儲存資訊事件訊息的變數。</maml:para>
        </maml:Description>
        <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
        <dev:type>
          <maml:name>String</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>None</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="cf">
        <maml:name>Confirm</maml:name>
        <maml:Description>
          <maml:para>執行 Cmdlet 前先提示您加以確認。執行 Cmdlet 前先提示您加以確認。</maml:para>
        </maml:Description>
        <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="wi">
        <maml:name>WhatIf</maml:name>
        <maml:Description>
          <maml:para>顯示執行此 Cmdlet 時會發生的狀況。此 Cmdlet 並未執行。顯示執行此 Cmdlet 時會發生的狀況。此 Cmdlet 並未執行。</maml:para>
        </maml:Description>
        <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
    </command:parameters>
    <command:inputTypes/>
    <command:returnValues/>
    <maml:alertSet>
      <maml:alert>
        <maml:para></maml:para>
      </maml:alert>
    </maml:alertSet>
    <command:examples>
      <command:example>
        <maml:title>範例 1: 中斷工作階段與租用戶的連線</maml:title>
        <dev:code>PS C:\&gt; Disconnect-AzureAD</dev:code>
        <dev:remarks>
          <maml:para>此命令可中斷工作階段與租用戶的連線。</maml:para>
        </dev:remarks>
      </command:example>
    </command:examples>
    <command:relatedLinks>
      <maml:navigationLink>
        <maml:linkText>Connect-AzureAD</maml:linkText>
        <maml:uri></maml:uri>
      </maml:navigationLink>
    </command:relatedLinks>
  </command:command>
  <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
    <command:details>
      <command:name>Get-AzureADCurrentSessionInfo</command:name>
      <command:verb>Get</command:verb>
      <command:noun>AzureADCurrentSessionInfo</command:noun>
      <maml:description>
        <maml:para>此 Cmdlet 會傳回目前的工作階段狀態</maml:para>
      </maml:description>
    </command:details>
    <maml:description>
      <maml:para>此 Cmdlet 會傳回目前的工作階段狀態</maml:para>
    </maml:description>
    <command:syntax>
      <command:syntaxItem>
        <maml:name>Get-AzureADCurrentSessionInfo</maml:name>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="cf">
          <maml:name>Confirm</maml:name>
          <maml:Description>
            <maml:para>在執行 Cmdlet 前提示您確認。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
        <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="wi">
          <maml:name>WhatIf</maml:name>
          <maml:Description>
            <maml:para>顯示執行此 Cmdlet 後會發生的情況。此 Cmdlet 並未執行。</maml:para>
          </maml:Description>
          <dev:type>
            <maml:name>SwitchParameter</maml:name>
            <maml:uri/>
          </dev:type>
          <dev:defaultValue>False</dev:defaultValue>
        </command:parameter>
      </command:syntaxItem>
    </command:syntax>
    <command:parameters>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="cf">
        <maml:name>Confirm</maml:name>
        <maml:Description>
          <maml:para>在執行 Cmdlet 前提示您確認。</maml:para>
        </maml:Description>
        <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
      <command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="wi">
        <maml:name>WhatIf</maml:name>
        <maml:Description>
          <maml:para>顯示執行此 Cmdlet 後會發生的情況。此 Cmdlet 並未執行。</maml:para>
        </maml:Description>
        <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
        <dev:type>
          <maml:name>SwitchParameter</maml:name>
          <maml:uri/>
        </dev:type>
        <dev:defaultValue>False</dev:defaultValue>
      </command:parameter>
    </command:parameters>
    <command:inputTypes>
      <command:inputType>
        <dev:type>
          <maml:name>None</maml:name>
        </dev:type>
        <maml:description>
          <maml:para></maml:para>
        </maml:description>
      </command:inputType>
    </command:inputTypes>
    <command:returnValues>
      <command:returnValue>
        <dev:type>
          <maml:name>System.Object</maml:name>
        </dev:type>
        <maml:description>
          <maml:para></maml:para>
        </maml:description>
      </command:returnValue>
    </command:returnValues>
    <maml:alertSet>
      <maml:alert>
        <maml:para></maml:para>
      </maml:alert>
    </maml:alertSet>
    <command:examples>
      <command:example>
        <maml:title>範例 1</maml:title>
        <dev:code>Get-AzureADCurrentSessionInfo
 
Account Environment TenantId
------- ----------- --------
Karen@drumkit.onmicrosoft.com AzureCloud 85b5ff1e-0402-400c-9e3c-0f9e965325d1</dev:code>
        <dev:remarks>
          <maml:para></maml:para>
        </dev:remarks>
      </command:example>
    </command:examples>
    <command:relatedLinks/>
  </command:command>
</helpItems>