To be able to use the Password Capture Agent Windows PowerShell module to remotely configure the Password Capture Agent on the domain controllers, these servers need to have Windows PowerShell Remoting configured and enabled. For more information, see the remote troubleshooting guide for Windows PowerShell (http://technet.microsoft.com/en-us/library/hh847850.aspx).
To install the Password Capture Agent Windows PowerShell module
- OR -
Before installing Password Capture Agent on a domain controller:
You should have prepared:
1800b62e8cf19d1c4bcdcd2b6e435c3c85e04188
https://servername.domain.com/SoapService/Q1IMService.asmx
Using the Password Capture Agent Windows PowerShell module to install Password Capture Agent on a specific domain controller
Import-Module OneIM-PasswordCaptureAgentMgmt
$ConfigProfile = New-PCAConfigProfile
$ConfigProfile['WebClient.WebServiceURL'].ConfigValue = 'https://server.domain.com/SoapService/Q1IMService.asmx'
$ConfigProfile['WebClient.WebServiceType'].ConfigValue = 'Soap'
$ConfigProfile['Backend.Credential'].ConfigValue = Get-Credential viCaptureAgent
$ConfigProfile['Backend.CertificateThumbprint'].ConfigValue = '1800b62e8cf19d1c4bcdcd2b6e435c3c85e04188'
Install-PasswordCaptureAgent`
-ComputerName "DC01.DEMOCORP.COM"`
-Setup "\\StorageServer\SHARE\Password Capture Agent.msi"`
-ConfigurationProfile $ConfigProfile
By running this command, you install the Password Capture Agent on DC01.DEMOCORP.COM. The installation will be run off a network location and WebServiceURL/CertificateThumbprint are passed to the setup.
Because the -Restart switch is not specified, the domain controllers will not automatically reboot after successful installation.
Using the Password Capture Agent Windows PowerShell module to install Password Capture Agent on all domain controllers
Import-Module OneIM-PasswordCaptureAgentMgmt
$ConfigProfile = New-PCAConfigProfile
$ConfigProfile['WebClient.WebServiceURL'].ConfigValue = 'https://server.domain.com/SoapService/Q1IMService.asmx'
$ConfigProfile['WebClient.WebServiceType'].ConfigValue = 'Soap'
$ConfigProfile['Backend.Credential'].ConfigValue = Get-Credential viCaptureAgent
$ConfigProfile['Backend.CertificateThumbprint'].ConfigValue = '1800b62e8cf19d1c4bcdcd2b6e435c3c85e04188'
Get-DomainController | Install-PasswordCaptureAgent`
-Setup \\StorageServer\SHARE\ One Identity Manager Password Capture Agent.msi`
-ConfigurationProfile $ConfigProfile
-Restart
By running this command, you receive a list of domain controllers and sequentially start the install on each one. The install will be run off a network location and WebServiceURL/CertificateThumbprint are passed to the setup.
Because the -Restart switch is specified, the domain controllers will automatically reboot after successful installation.
The Password Capture Agent Windows PowerShell module includes functions to create, show, get, set, import and export a Password Capture Agent configuration profile.
|
NOTE: The function Show-PCAConfigProfile may also be used to get an overview of all parameters and read their descriptions or destinations.
Getting and setting the configuration profile is only possible if the Password Capture Agent is installed and running. It is not possible to access the secured configuration parameters without it. |
Import-Module OneIM-PasswordCaptureAgentMgmt
$ConfigProfile = New-PCAConfigProfile
$ConfigProfile['WebClient.WebServiceURL'].ConfigValue = 'https://fqdn.democorp.com/Q1IMService/Q1IMService.asmx'
$ConfigProfile['WebClient.AuthenticationType'].ConfigValue = 'WindowsIntegrated'
$ConfigProfile['Backend.AuthenticationModule'].ConfigValue = 'DialogUser'
$ConfigProfile['Backend.Credential'].ConfigValue = Get-Credential viCaptureAgent
$ConfigProfile['Backend.CertificateThumbprint'].ConfigValue = '0123456789ABCED0123456789ABCED0123456789'
Import-Module OneIM-PasswordCaptureAgentMgmt
$ConfigProfile = Get-PCAConfigProfile
Show-PCAConfigProfile -ConfigurationProfile $ConfigProfile
Import-Module OneIM-PasswordCaptureAgentMgmt
$ConfigProfile = Get-PCAConfigProfile
Export-PCAConfigProfile -ConfigurationProfile $ConfigProfile -FilePath C:\tmp\CurrentPCAConfig.xml
Import-Module OneIM-PasswordCaptureAgentMgmt
$ConfigProfile = Import-PCAConfigProfile -Filepath C:\tmp\CurrentPCAConfig.xml
$ConfigProfile['Backend.CertificateThumbprint'].ConfigValue = '0123456789ABCED0123456789ABCED0123456780'
Set-PCAConfigProfile -ConfigurationProfile $ConfigProfile
Import-Module OneIM-PasswordCaptureAgentMgmt
$ConfigProfile = Import-PCAConfigProfile -Filepath C:\CurrentPCAConfig.xml
Install-PasswordCaptureAgent`
–LogFile <Full UNC path to the log file on the remote server>`
-Setup <UNC path for Password Capture Agent MSI>`
-ConfigurationProfile $ConfigProfile
Import-Module OneIM-PasswordCaptureAgentMgmt
$ConfigProfile = Get-PCAConfigProfile
$ConfigProfile['Backend.Credential'].ConfigValue = Get-Credential viCaptureAgent
Set-PCAConfigProfile -ConfigurationProfile $ConfigProfile
Get-DomainController | Foreach-Object {
$ConfigurationProfile = Get-PCAConfigProfile -ComputerName $_
$ConfigurationProfile['Backend.CertificateThumbprint'].ConfigValue = '1800b62e8cf19d1c4bcdcd2b6e435c3c85e04188'
Set-PCAConfigProfile -ComputerName $_ -ConfigurationProfile $ConfigurationProfile -RestartService
}
© 2023 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy