Getting an exception due to something not in /Updates dir but what?

Oct 24, 2013 at 3:45 PM
Hi

Trying to setup a new SharePoint 2010 farm and was getting the following exception which seems to be linked to a missing dependency in the /updates

irectory of C:\Dev\AutoSPInstaller\SP\2010\Updates

24/10/2013 16:41 <DIR> .
24/10/2013 16:41 <DIR> ..
24/10/2013 15:42 <DIR> 441699_intl_x64_zip.exe
13/12/2011 22:13 1,163,005,256 441699_intl_x64_zip.exe.zip
24/10/2013 16:41 0 dan.txt
13/12/2011 12:48 2,157 hotfix.txt
04/05/2011 06:56 405,845,744 officeserver2010sp1-kb2460045-x64-fullfile-en-us.exe
24/10/2013 15:12 458,459,736 oserversp2010-kb2687453-fullfile-x64-en-us.exe
05/05/2013 22:07 306 PutUpdatePackagesHere.txt
21/11/2011 20:42 1,184,020,336 XXXoffice2010-kb2597014-fullfile-x64-glb.exe
           7 File(s)  3,211,333,535 bytes
           3 Dir(s)  45,376,884,736 bytes free

Note all pre-reqs were obtained via the AutoSPSourceBuilder
 - Looking for SharePoint updates to install...
  - Installing SP2010 Service Pack 1 officeserver2010sp1-kb2460045-x64-fullfile-en-us.exe....Done.
  - Patch already installed
  - Service Pack 1 install completed in 00:00:05.
  - Installing SP2010 Language Pack Service Pack ...--------------------------------------------------------------
 - Script halted!


Exception             : System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'Name'. The argument is null or empty. Supply an argument that is not n
                        ull or empty and then try the command again. ---> System.Management.Automation.ValidationMetadataException: The argument is null or empty. Supply an argument that is not null
                        or empty and then try the command again.
                           at System.Management.Automation.ValidateNotNullOrEmptyAttribute.Validate(Object arguments, EngineIntrinsics engineIntrinsics)
                           at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flag
                        s)
                           --- End of inner exception stack trace ---
                           at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flag
                        s)
                           at System.Management.Automation.CmdletParameterBinderController.BindParameter(CommandParameterInternal argument, MergedCompiledCommandParameter parameter, ParameterBindingF
                        lags flags)
                           at System.Management.Automation.CmdletParameterBinderController.BindParameter(UInt32 parameterSets, CommandParameterInternal argument, MergedCompiledCommandParameter parame
                        ter, ParameterBindingFlags flags)
                           at System.Management.Automation.CmdletParameterBinderController.BindParameters(UInt32 parameterSets, Collection`1 arguments, CommandMetadata commandMetadata)
                           at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 arguments)
                           at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)
                           at System.Management.Automation.CommandProcessor.BindCommandLineParameters(CommandParameterInternal[] parameters)
                           at System.Management.Automation.CommandProcessor.Prepare(CommandParameterInternal[] parameters)
                           at System.Management.Automation.CommandProcessorBase.DoPrepare(CommandParameterInternal[] parameters)
                           at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
                           at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
TargetObject          :
CategoryInfo          : InvalidData: (:) [Get-Process], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.GetProcessCommand
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
PipelineIterationInfo : {}
PSMessageDetails      :

I edited the SPAUtoInstallFunctons
InstallSpecifiedUpdate $sp2010SP2 "Service Pack 2"
            # Now install any language pack service packs that are found, using the naming convention for SP2 SilentlyContinue
            $sp2010LPServicePacks = Get-ChildItem "$bits\$spYear\Updates" -Name -Include oslpksp2010*.exe -ErrorAction SilentlyContinue | Sort-Object -Descending
            
            if ($sp2010LPServicePacks -eq $null)
            {
                  Write-host -fore darkred "DAN: What The Farm!"
            }

  • Looking for SharePoint updates to install...
    DAN: Here!
    • Installing SP2010 Service Pack 2 oserversp2010-kb2687453-fullfile-x64-e
    • Patch not required; installed product is same or newer.
    • Service Pack 2 install completed in 00:00:08.
      DAN: What The Farm!
      DAN: Now Here !
      DAN: Get cumulative updates

- No updates found in C:\Dev\AutoSPInstaller\SP\2010\Updates, skipping.