Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-11802: The capture_diagnostic.ps1 Script Fails With the Error: A positional parameter cannot be found that accepts argument.."

Privileged Access Service ,  

4 March,19 at 06:24 PM

Problem:
  
When running the capture_diagnostics.ps1 powershell script for the Customer Managed Privileged Access Service (PAS), the following error appears:
 
Log-Info : A positional parameter cannot be found that accepts argument '.'. 
At c:\Program Files\Centrify\Centrify Identity Platform\scripts\capture_diagnostics.ps1:110 char:9 
+ Log-Info "Unable to retrieve connector diagnostics remotely, there will ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo :InvalidArgument: ( [Log-Info], ParameterBindingException 
+ FullyQualifiedErrorId: PositionalParameterNotFound,Log-Info
  
User-added image
    
Workaround:
  
This workaround requires PAS version 18.10 or later. 
  
1) Download and unzip the attached file, capture_diagnostics.zip .
 
2) Copy the script to the PAS installation folder.
  
e.g. c:\Program Files\Centrify\Centrify Identity Platform\scripts
  
3) Launch the Powershell using the local Administrator account.
  
4) Run the script as follows
  
PS > cd c:\Program Files\Centrify\Centrify Identity Platform\scripts
PS > .\capture_diagnostics.ps1

  
Resolution:
  
This issue is resolved in Customer Managed Privilege Access Service version 19.1 and later
 
Attachments:

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.