< Back
Register-AADIntPTAAgent
Post
NAME Register-AADIntPTAAgent
SYNOPSIS
Registers the PTA agent to Azure AD and creates a client certificate
SYNTAX
Register-AADIntPTAAgent [-AccessToken] <String> [-MachineName] <String> [[-FileName] <String>] [<CommonParameters>]
DESCRIPTION
Registers the PTA agent to Azure AD with given machine name and creates a client certificate
PARAMETERS
-AccessToken <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MachineName <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-FileName <String>
Required? false
Position? 3
Default value PTA_client_certificate.pfx
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Register-AADIntPTAAgent -MachineName "server1.company.com"
PTA agent registered as server1.company.com
Certificate saved to PTA_client_certificate.pfx
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$pt=Get-AADIntAccessTokenForPTA
PS C:\\>Register-AADIntPTAAgent -AccessToken $pt -MachineName "server1.company.com" -FileName server1.pfx
PTA agent registered as server1.company.com
Certificate saved to server1.pfx
RELATED LINKS
SYNOPSIS
Registers the PTA agent to Azure AD and creates a client certificate
SYNTAX
Register-AADIntPTAAgent [-AccessToken] <String> [-MachineName] <String> [[-FileName] <String>] [<CommonParameters>]
DESCRIPTION
Registers the PTA agent to Azure AD with given machine name and creates a client certificate
PARAMETERS
-AccessToken <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MachineName <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-FileName <String>
Required? false
Position? 3
Default value PTA_client_certificate.pfx
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Register-AADIntPTAAgent -MachineName "server1.company.com"
PTA agent registered as server1.company.com
Certificate saved to PTA_client_certificate.pfx
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$pt=Get-AADIntAccessTokenForPTA
PS C:\\>Register-AADIntPTAAgent -AccessToken $pt -MachineName "server1.company.com" -FileName server1.pfx
PTA agent registered as server1.company.com
Certificate saved to server1.pfx
RELATED LINKS