brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
171 stars 81 forks source link

Error in AutoSPInstallerModule.psm1 #36

Open Whitefern opened 5 years ago

Whitefern commented 5 years ago

I download the script yesterday and was having issues with the script if it was outputting an error (i didn't enter a PIDKey) or warning (for access services as only using a standard key). I did a quick find and replace for $inputFile and changed it to $script:inputFile in AutoSPInstallerModule.psm1 and all was working fine.

Here is the error Output. Exception : System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Path' because it is null. 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: (:) [Split-Path], ParameterBindingValidationException FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCommand ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at CreateAccess2010ServiceApp, C:\SP\Automation\AutoSPInstallerModule.psm1: line 5913 at Set-ServiceConfig, C:\SP\Automation\AutoSPInstallerMain.ps1: line 251 at , C:\SP\Automation\AutoSPInstallerMain.ps1: line 430 at , : line 1 PipelineIterationInfo : {} PSMessageDetails :

brianlala commented 5 years ago

How are you launching (or what command are you using to launch) the script?