Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

Commented Issue: empty FarmPassPhrase throws exception [12902]

$
0
0
If the FarmPassPhrase in the SetInputs.xml is empty, the script throws an error.
"ConvertTo-SecureString : Cannot bind argument to parameter 'string' because it is an empty string."
How about prompting for a password instead?
Comments: ** Comment from web user: jmh433 **

When running the script I get the following error:
- Script halted!


Exception : System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to
parameter 'String' because it is an empty string.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame
frame)
at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
TargetObject :
CategoryInfo : InvalidData: (:) [ConvertTo-SecureString], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.ConvertToSe
cureStringCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at AddManagedAccounts, C:\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1: line 1723
at Setup-Farm, C:\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: line 189
at <ScriptBlock>, C:\SP\AutoSPInstaller\AutoSPInstallerMain.ps1: line 361
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
.

It still does not prompt for a password. How do I resolve this issue?

Thanks


Viewing all articles
Browse latest Browse all 2279


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>