I have been given the task of installing Sharepoint 2010 onto a Windows Server 2008 fresh OS. I am attempting to do this using Powershell as we will likely have to rebuild this machine later so i want the rebuild to be as quick as possible.
I have setup the SPModules in powershell and add the path to to the PSModule variable.
When i run the following command:
PS C:\Windows\system32> Install-SharePoint -SetupExePath "location of software\setup.exe" -ConfigXML "location of software\Files\SetupFarm\config.xml" -PIDKey "my key"
i get the error:
Property 'Value' cannot be found on this object; make sure it exists and is settable.
At D:\SPModule\spmodule.setup\Install-SharePoint.ps1:373 char:52
+ $CurrentConfigXml.Configuration.PIDKEY. <<<< Value = $PIDKey
+ CategoryInfo : InvalidOperation: (Value:String) , ParentContainsErrorRecordException
+ FullyQualifiedErrorId : PropertyNotFound
even though the key is an argument.
I then added the key to a copy of the config file and ran following:
PS C:\Windows\system32> Install-SharePoint -SetupExePath "location of software\setup.exe" -ConfigXML "location of software\Files\SetupFarm\configpidkey.xml"
View Complete Post