.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

setup sps 2010 using powershell

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :SharePoint

we can setup sps 2010 server farm using powershell now. but it will be more complex than regular way to do it, using sharepoint installation wizard.

my question is what is the benefit of using powershell to setup server farm instead?



View Complete Post

More Related Resource Links

Video: SharePoint 2010 Integration with PowerShell

Learn about the new PowerShell integration in SharePoint 2010, which brings SharePoint administration in line with other server products such as Exchange. Understanding PowerShell is a must-have skill for SharePoint 2010 developers. (Length: 19:52)

PowerShell script to add/edit ContentEditor webpart on SharePoint 2010

Hi all, I'm new to PowerShell scripting with SharePoint. Following are the requirements that were given to me. Can any one direct me in the right direction interms of writing the script and how to save and execute the script? I am aware of Cmdlets. 1. Cycle through all sites in site collection 2. For each site, retrieve all document libraries 3. Look for specific CMV document library name (ie value communication, key business drivers, etc)          o add content editor web part if doesn't exist          o add/update appropriate description based on the document library name Thanks in advance...

Visual Studio 2010 Ultimate setup failed

The Microsoft .NET Framework 4 step failed when I tried to install VS 2010 on my Win XP SP3. The first line of the error log is Microsoft .NET Framework 4: [2] Error code 1603 for this component means "Fatal error during installation." The error log can be seen in my skydrive http://cid-dd0e9ffb3a6b3ceb.skydrive.live.com/self.aspx/.Public/dd%5E_error%5E_vs%5E_vstscore%5E_100.txt The install log can be seen here http://cid-dd0e9ffb3a6b3ceb.skydrive.live.com/self.aspx/.Public/dd%5E_install%5E_vs%5E_vstscore%5E_100.txt The CRC of the ISO macthed the one on the MSDN download site, but to make sure, I downloaded and installed .NET Framework 4 but it also failed. The installatin log of the .NET Framework can be seen here http://cid-dd0e9ffb3a6b3ceb.skydrive.live.com/self.aspx/.Public/Microsoft%20.NET%20Framework%204%20Setup%5E_20100505%5E_234527496.html The Msi Log can be found here http://cid-dd0e9ffb3a6b3ceb.skydrive.live.com/self.aspx/.Public/Microsoft%20.NET%20Framework%204%20Setup%5E_20100505%5E_224838111-MSI%5E_netfx%5E_Core%5E_x86.msi.txt Can anyone help? Thx.          

Cannot install Sharepoint 2010 from powershell

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"

VS 2010 - How can I integrate .NET 4.0 setup into my MSI project?

The main idea is to invoke & setup it in unattended mode. How is this done?

Sharepoint 2010, Constant prompt for credentials to edit office documents in a fqdn setup


Is there a solution to resolve the constant "Prompts" For user id's and passwords when a person tries to open/launch/edit office documents from sharepoint 2010.

My setup: sharepoint fqdn in the domain sp.domainname.local, The sharepoint server is a member of this internal domain. In dns I have local zone of sp.domainname.com with a cname that points to the internal sharepoint server. There is no issue in users accessing the server both internal and external, The issue arises when Office documents are launched from SP2010.

In central admin I have configured the alternate access mappings to be http://sp

I have also tried putting the fqdn dns name of the sharepoint server in IE8 trusted zone but
no luck, I still get credential prompts.

I think the issue might be that Office does not see that the files are coming from the fqdn of sp.domainname.com so hence the prompts.

Trying to fix this as right now its a total pita. I found some previous posts on this issue with SP2007 but found nothing that really addresses this in SP2010.

Thanks Paul

Search server 2010 setup - error creating search service application

I am running in a very similar siutation as this post:

I am configuring a new Search Server 2010 production environment.

I used the search setup account to run the setup and run the SharePoint Products Configuration Wizard.

During the first run of the SharePoint configuration wizard (where the farm account and service applications are setup), the process failed because the search service application could not be created.  

Errors were encountered during the configuration of the Search Service Application.
System.Data.SqlClient.SqlException: User does not have permissiont to perform this action.

I was under the assumption that the setup account had securityadmin and dbcreator SQL Server roles.  However, this was not the case and I had them added.  My original thought was the setup failed because of this.  After those roles were added, I tried to recreate the search service application and I still get a failure.

I am pretty sure I have followed the prerequisites as prescribed by Microsoft in terms of account setup (

Setup SPS2010 using PowerShell


Is that possible to setup a SFS2010 environment using PowerShell? Has anyone done it before?

I am thinking if it is possible, then we can use the same powershell script to create multiple SPS2010 environment with exact same configuration.

Any suggestions?

Thanks in advance,   


Microsoft SharePoint server 2010 encountered an error during setup. One or more required office comp

I am encountering this error during setup. The server previously had WSS 3.0 and the Group Board Workspace. I uninstalled those and installed sharepoint foundation 2010. Initially It was up and running but I was receiving errors trying to load the group space template, so I uninstalled SPF2010. cleaned up the registry pointers to the old WSS3.0 and Groupboard Workspace and tried to reinstall. Now I get the error

Microsoft SharePoint server 2010 encountered an error during setup. One or more required office components failed to complete successfully.

Looking into the issue it appears that setup cannot install the embedded sql server, since the logs indicate a dbwrap error. There are no "pendingfilerename" operations which fixed this problem for some. I tried to install as a farm but it won't allow me to use a local admin account.  I also looked at the sql configurations and the windows internal database is running.

Any ideas how to I can remove the windows internal database and reinstall SF2010?

setup error sharepoint 2010 Windows 7 product ID


Windows 7 Pro trying to install 2010 in standalone. I started with an ISO image, burnt it to a cd and copied all of the files here c:\SharePointFiles . manually Installing the prerequisites.

When I run setup.exe I get the error: The Product ID spcified was not found on your machine

My config.xml file has this line added: <Setting Id="AllowWindowsClientInstall" Value="True"/>

I also put in the Product key in the config.xml. I cant seem to find much help online with this error. I tried to copy the config.xml to the same directory as the setup.exe and that did not help either.

Anyone have any ideas what direction I should take? I have pretty much read this thread to death: http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx and that has not seemed to shed any light on the matter. Anyone? I'm several hours into Googling and still running into the same issue no matter what I do.

Appreciate any help - Thanks!!

open xls with powershell //office 2010



I trying to open xls/xlsx file with powershell using next code:

$file1 = "D:\ALL_SCRIPTS\Scripts2010\cpyUsrs_from1domainto2\file1.xls"

$ObjEx = New-Object -ComObject Excel.Application
$ObjEx.Visible = $True
$objWb = $objEx.workbooks.open($file1)
$objWorksheet = $objWb.Worksheets.Item(1)

this code working fine on workstation with office 2007 installed.

but i got next error on w/s with office 2010 installed:

Exception calling "Open" with "1" argument(s): "Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))"
At line:20 char:31

Please assist.

thank you

Any guide to setup Exchange 2010 with Sharepoint 2010?

Any guide to setup Exchange 2010 with Sharepoint 2010?

Should I use Virtualisation to setup development envrironment for Sharepoint 2010 or directly set it


Hi All,

I have a new laptop with following specs:

- 64 bit , Quad processor, 8GB memory, Windows 7 Home premium.

Please guide me weather to use virtualisation technology to setup sharepoint 2010 development envrionment or should I directly install it on the laptop without creating virtual machine using Virtual Box.

I am learning Sharepoint 2010 and so need to setup development environment along with SSRS 2008 server R2 for reporting. Please tell me the best option to go with






How to setup Sharepoint 2010 development environment on windows home premium 7 using Virtual Box for



PC Specs:

- 64-bit, quad processor, 8GB RAM, Windows 7 Home Premium laptop.

I need to :

- setup Sharepoint 2010 development environment using Virtual Box.

- Setup SSRS 2008 R2 for reporting services.

I I have gone through several blogs and post but am not able to understand a clear sequence of what am I supposed to do. Please Please help me setup my machine in a way I can use it for my personal use and also use it for Sharepoint development.

How to setup metadata relationship in sharepoint 2010


Hi experts,

We have a requirement where there are 3 different properties

lets say

country - which has dropdown list with (US,Canada,UK) value

City - which has dropdown list with(detriot,Newyork,Toronto,London)

ZipCode - which has dropdown list with(12345,34fn8,23456)

Now we would like to setup a relationship such that when the user select country = US they should see only option of detroit and newyork as city and once the appropriate city is selected they should see the related zipcode

How can we achieve this?


Powershell installation of SharePoint Foundation 2010



I am attempting to do a silent farm installation of SharePoint 2010 via powershell using the SPModule commandlets and am running into the following error when attempting to run the Install-SharePoint command (passing the path to .exe and path to config.xml):

PS C:\Users\administrator.INETTEST2K3N> Install-SharePoint -SetupExePath "c:\install\setup.exe" -ConfigXml "c:\install\files\setupfarmsilent\config.xml"

The variable cannot be validated because the value C:\Users\ADMINI~1.INE\AppData\Local\Temp\2\config_2010_Jul_09_16_41_
28.xml is not a valid value for the ConfigXmlPath variable.
At C:\SPModule\spmodule.setup\Install-SharePoint.ps1:412 char:19
+     $ConfigXmlPath <<<<  = Join-Path $env:temp $ConfigXmlName
    + CategoryInfo          : MetadataError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ValidateSetFailure

I have tried this on both 2008 and 2008 R2 (x64) and keep getting this same error.

Any insight would be greatly appreciated!



Best practice setup for SharePoint 2010 Foundation in StandAlone mode


Question: What is the best practice configuration for StandAlone install? Here is my scenario: client does not own SQL Server therefore they want to use the OOB version in StandAlone mode. Most likely this will be fine for their goals for a couple years. 

Anyhow, so I install in as Server Farm - first option, then StandAlone - second option, and select the location to store the data files. It installs great. Now reading the best practices for a typical farm (non-standalone) install, a domain account should be used for the services. During the install of standalone it assignes the NETWORK SERVICE account to all of the services. 

Can I create the SP_Farm account - per best practices - and get this account to work for the Farm service in standalone setup? Do I have to add this account to SQL Server Express first, add it as a managed account in SharePoint, then assign it to the Farm service?

Curious if anyone has done this. Or is the best practice when using SharePoint Foundation 2010 standalone configuration, to use the default accounts and settings as it was setup?

Thank you any responses.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend