|
| 1 | +--- |
| 2 | +title: 'Disable PTA when using Azure AD Connect "Do not configure" | Microsoft Docs' |
| 3 | +description: This article describes how to disable PTA with the Azure AD Connect "do not configure" feature. |
| 4 | +services: active-directory |
| 5 | +author: billmath |
| 6 | +manager: daveba |
| 7 | +ms.service: active-directory |
| 8 | +ms.topic: reference |
| 9 | +ms.workload: identity |
| 10 | +ms.date: 04/20/2020 |
| 11 | +ms.subservice: hybrid |
| 12 | +ms.author: billmath |
| 13 | +ms.collection: M365-identity-device-management |
| 14 | +--- |
| 15 | + |
| 16 | + |
| 17 | +# Disable PTA when using Azure AD Connect "Do not configure" |
| 18 | + |
| 19 | +If you are using Pass-through Authentication with Azure AD Connect and you have it set to "Do not configure", you can disable it. Disabling PTA can be done using the following cmdlets. |
| 20 | + |
| 21 | +## Prerequisites |
| 22 | +The following prerequisites are required: |
| 23 | +- Any windows machine that has the PTA agent installed. |
| 24 | +- Agent must be at version 1.5.1742.0 or later. |
| 25 | +- An Azure global administrator account in order to run the PowerShell cmdlets to disable PTA. |
| 26 | + |
| 27 | +>[!NOTE] |
| 28 | +> If your agent is older then it may not have the cmdlets required to complete this operation. You can get a new agent from Azure Portal an install it on any windows machine and provide admin credentials. (Installing the agent does not affect the PTA status in the cloud) |
| 29 | +
|
| 30 | +> [!IMPORTANT] |
| 31 | +> If you are using the Azure Government cloud then you will have to pass in the ENVIRONMENTNAME parameter with the following value. |
| 32 | +> |
| 33 | +>| Environment Name | Cloud | |
| 34 | +>| - | - | |
| 35 | +>| AzureUSGovernment | US Gov| |
| 36 | +
|
| 37 | + |
| 38 | +## To disable PTA |
| 39 | +From within a PowerShell session, use the following to disable PTA: |
| 40 | +1. PS C:\Program Files\Microsoft Azure AD Connect Authentication Agent> `Import-Module .\Modules\PassthroughAuthPSModule` |
| 41 | +2. `Get-PassthroughAuthenticationEnablementStatus -Feature PassthroughAuth` or `Get-PassthroughAuthenticationEnablementStatus -Feature PassthroughAuth -EnvironmentName <identifier>` |
| 42 | +3. `Disable-PassthroughAuthentication -Feature PassthroughAuth` or `Disable-PassthroughAuthentication -Feature PassthroughAuth -EnvironmentName <identifier>` |
| 43 | + |
| 44 | +## If you don't have access to an agent |
| 45 | + |
| 46 | +If you do not have an agent machine you can use following command to install an agent. |
| 47 | + |
| 48 | +1. Download the latest Auth Agent from portal.azure.com. |
| 49 | +2. Install the feature: `.\AADConnectAuthAgentSetup.exe` or `.\AADConnectAuthAgentSetup.exe ENVIRONMENTNAME=<identifier>` |
| 50 | + |
| 51 | + |
| 52 | +## Next steps |
| 53 | + |
| 54 | +- [User sign-in with Azure Active Directory Pass-through Authentication](how-to-connect-pta.md) |
0 commit comments