SharePoint 2010 Easy Setup Script


Today Chris Johnson and I are releasing a new tool to help you setup a SharePoint 2010 developer machine. In order to make this process as easy as possible we have created a series of PowerShell scripts that automate the entire process of building a fully running and ready to go SharePoint 2010 environment. The scripts are highly configurable, but out of the box they will download all of the required software, install all of the SharePoint prerequisites, install other software such as Visual Studio and Office. The script will then install and configure SharePoint 2010. And finally the script will provision a site.

There are really three options to develop SharePoint solutions. The first option is to remote desktop in to a hosted instance of SharePoint. This may be an option for many larger companies that have a good server and support infrastructure it is often not an option for smaller companies. The second option is to download and run the Information Worker VHD that has everything already setup and preconfigured. This is a very easy way to get started but it requires a machine with 8GB of RAM and capable of running Hyper-V. Again many smaller companies and independent developers can’t meet these requirements. The third option is to install SharePoint directly onto your machine running Windows 7 64bit. The downside to this option is that it requires a steep learning curve to understand how to setup and install all of the bits and pieces to have a full SharePoint developer environment. This is where the Easy Setup Script comes in. The goal of the Easy Setup Script is to reduce the learning curve and time for a casual developer to get started.

Download SharePoint Easy Setup Script

image

Easy Setup Script Process Flow

Click to view full size

SP Easy Setup Process Flow


Comments (36)

  1. vinod says:

    Just a quick Q: In the VHD creation step, the script looks for a pre-existing Windows 7 x64 VHD from a UNC path. Where is this supposed to come from or does it create the VHD from scratch?

  2. You will need to provide a VHD built using the WIM2VHD tool and edit the config file to point to this VHD. code.msdn.microsoft.com/wim2vhd

  3. hrussell says:

    I am able to boot to my vhd and setup continues, but with the following error:

    Writing log to 'c:SpEasySetupLogsSpEasy20105304051211108.log'

    Starting SharePoint Easy Setup

    Extracting SharePoint Server 2010 bits for Windows Client Install

           Successfully extracted SharePoint Server 2010 bits for Windows Client In

    stall

    Installing Pre-Reqs required for SharePoint 2010 windows client install

    Get-ItemProperty : Property CurrentRebootAttempts does not exist at path HKEY_L

    OCAL_MACHINESOFTWAREMicrosoftServerManager.

    At C:SpEasySpEasy-Api.ps1:339 char:46

    +         $rebootAttemptProp = Get-ItemProperty <<<<  $serverMgrPath -name "Cur

    rentRebootAttempts"

       + CategoryInfo          : InvalidArgument: (CurrentRebootAttempts:String)

      [Get-ItemProperty], PSArgumentException

       + FullyQualifiedErrorId : System.Management.Automation.PSArgumentException

      ,Microsoft.PowerShell.Commands.GetItemPropertyCommand

                   Filter Pack install bits not found, exiting…

    PS C:SpEasy>

    Thanks for any help

  4. There are a couple of things you can try. First, the "Filter Pack install bits not found" might mean that all the bits did not download properly. You can try downloading everything again or manually then start he script again. the script is designed to resume again when there is an error . So restarting the script after you download the apps might work. Also make sure that you have run Windows update and have rebooted before running the script.

  5. TiBooX says:

    I was able to re-run the "Run.bat" script in admin mode to exactly the same point and error as above.

    My setup directory now contains about 1,65GB of Installation-packets which shall be installed on a local Win7 (64Bit) developer system actually containing a properly installed VisualStudio10.

    And now the weird Part:

    I'm installing while looking through a RemoteDesktopConnection(Mac) into a VMWare virtual machine running Win7(64Bit).

    I'm Admin on the VM and ran the "Run.bat" in Admin mode, too.

    Any suggestions ?

    I could understand that a "CurrentRebootAttempts"-registry-entry is not available on a non-server Windows7 machine. But is it impossible to create it on the fly (if needed)?

    Thanks in advance from Germany

  6. Kiko says:

    Hi Paul, would happen to have a sample powershell script for using bits downloaded from MSDN? I can't get past the VS2010 installation and PS doesn't show enough details about the exception.

  7. Azeem says:

    Hi Paul,

    Thank you for the hard work you have put in developing the Easy Setup script. While I was running the script, and opted to setup in my host machine, I got the following message:

    LOCAL_MACHINESOFTWAREMicrosoftServerManager.

    At C:SharePoint2010EasySetupLabsEasySetupSourceSpEasy-Api.ps1:339 char:46

    +         $rebootAttemptProp = Get-ItemProperty <<<<  $serverMgrPath -name "Cur

    rentRebootAttempts"

       + CategoryInfo          : InvalidArgument: (CurrentRebootAttempts:String)

      [Get-ItemProperty], PSArgumentException

       + FullyQualifiedErrorId : System.Management.Automation.PSArgumentException

      ,Microsoft.PowerShell.Commands.GetItemPropertyCommand

    Will this be a problem, or is there anything I should do before I run  the script on another machine. Any help would be highly appreciated.

    Thanks,

  8. Kamlesh says:

    Hi Paul,

    From the blog post of Chris Johnson, I downloaded the SharePoint Easy Setup.  I managed to download all the software manually and updated the links to my Local Server in config.xml.  However, the setup of Visual Studio 2010 Ultimate Edition is given in Web Installer format (< 50mb).  This web installer takes many hours on my Broadband to download the VS 2010 setup from Internet.

    So, I got the full Trial ISO (~ 3GB) and updated it in config.xml.  But while running the powershell script, it is unable to run the setup from ISO file.

    I would prefer to avoid the Web Installer and use the Offline ISO file.  Is there any workaround to resolve my problem?  

    Do you have any way to get this script working using Offline setup binaries?

    Thanks,

    Kamlesh

  9. Michael Suder says:

    Paul,  Thanks for putting this together – one question.  The scripts have installed SharePoint Server standard edition instead of the Enterprise version – How do I get the Enterprise version installed…?

    Thanks,

  10. @Michael – The apps that are installed are defined in the config file. You can swap out the trial versions for your own skus if you have them or point to other versions of SharePoint.

  11. JR says:

    I keep getting this error too

    Get-ItemProperty : Property CurrentRebootAttempts does not exist at path HKEY_L

    OCAL_MACHINESOFTWAREMicrosoftServerManager.

    At C:SharePoint2010EasySetupLabsEasySetupSourceSpEasy-Api.ps1:339 char:46

    +         $rebootAttemptProp = Get-ItemProperty <<<<  $serverMgrPath -name "Cur

    rentRebootAttempts"

       + CategoryInfo          : InvalidArgument: (CurrentRebootAttempts:String)

      [Get-ItemProperty], PSArgumentException

       + FullyQualifiedErrorId : System.Management.Automation.PSArgumentException

      ,Microsoft.PowerShell.Commands.GetItemPropertyCommand.

    Something about a Reboot?

    Can I just say this: Powershell, ok great. love the concept. but whats with these ridiculous error messages??? Is it impossible for the shell to parse that into something that is legilible without having to first attend a class in how to read idiotic Monster Error-Messages? Its amazing how a one-word command can generate 7+ lines of error messages…its even more amazing that someone decided that that's "OK". Get a clue, much??? Spitting out half the source-code of the program as an error message when it fails is spectacularly USELESS, who is allowing this garbage to get released to the public? What the heck is going on over there??? Why would I ever want to read 7 lines of totally worthless drivel every time a command fails? Why would I want my shell logs to become giants piles of nonsense? Even if I understood it I would be enraged that someone has somehow decided ruining powershell with these monstrosities was a good idea. Its stupid. Its worthless. Its dumb. It shows a lack of understanding the end-user whatsoever. Wow. Astoundingly DUMB.

  12. carl says:

    I am also getting the CurrentRebootAttempts Error.

    Does anyone have a workaround – I can't get any further in the install.

    Thanks

  13. Dave says:

    I go the following SharePoint extraction errors ….

    Extracting SharePoint Server 2010 bits for Windows Client Install

    WARNING:  Error Extracting Setup Files

    Extract-SP2010SetupExe : Exception calling "Start" with "1" argument(s): "%1 is

    not a valid Win32 application"

    At C:SharePoint2010EasySetupLabsEasySetupSourceSpEasy-Step2.ps1:981 char:4

    1

    +             $rc = Extract-SP2010SetupExe <<<<  $spAppDir $spInstallExe $extra

    ctDir $spFriendlyName

       + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep

      tion

       + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio

      n,Extract-SP2010SetupExe

    PS C:SharePoint2010EasySetupLabsEasySetupSource>

  14. John Holliday says:

    I ran into the CurrentRebootAttempts error, then I simply added the missing DWORD key using RegEdit and ran the setup again.

  15. Guy says:

    I just installed all updates up to SP1, then deleted everything and reexecuted SharePoint2010EasySetup.exe

    So I had to redownload everything.

    The CurrentRebootAttempts error still triggered, but the installation continued. No missing 'bits'.

  16. Bernie says:

    I have limited resources so I chose the Host [H] option.  So what exactly does "Setup must be completed on a clean install" mean?  What will happen if I choose that option?  I have a full version of VS2010, SQL 2008, and Office 2010 on this machine (W764).  Thanks

  17. @Bernie,

    We have only done testing on a clean machine. This means with only Windows 7 and all patches. There are just two many variations to deal with once you have lots of things installed. This is not a robust instalation application but a simple script to jump start developers. But in your case if you already have some applications installed you could delete them from the config.xml file so the script doesn't try to install them. Again although we haven't really tested this scenario too much I don't see why it wouldn't work.

  18. DaveMac says:

    I also ran into the Extract-SP2010SetupExe : Exception calling "Start" with "1" argument(s): "%1 is

    not a valid Win32 application" error.  Is there any fix for this?

  19. Rodney Rau says:

    Hi Paul,

    First, thank you for all  your efforts helping others with the Easy Script.

    My SP Easy install failed after successfully mounting the vhd and gave me this message:

    Error: Could not find a part of the path 'Z:ProgramDataMicrosoftWindowsStart

    MenuProgramsStartupSpEasy Startup.lnk'.

    This is a great script.  I hope I can find out what I am doing wrong.  Any help is greatly appreciated

    Thanks.

  20. Henry says:

    I also have got this eror. any fix available or work around?

    Starting SharePoint Easy Setup

    Extracting SharePoint Server 2010 bits for Windows Client Install

    WARNING:  Error Extracting Setup Files

    Extract-SP2010SetupExe : Exception calling "Start" with "1" argument(s): "%1 is

    not a valid Win32 application"

    At C:SharePoint2010EasySetupLabsEasySetupSourceSpEasy-Step2.ps1:981 char:4

    1

    +             $rc = Extract-SP2010SetupExe <<<<  $spAppDir $spInstallExe $extra

    ctDir $spFriendlyName

       + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep

      tion

       + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio

      n,Extract-SP2010SetupExe

    PS C:Windowssystem32>

  21. DaveMac says:

    For those of you who are geting the Extract-SP2010SetupExe : Exception calling "Start" with "1" argument(s): "%1 is not a valid Win32 application" error, I may have an answer for you.  I want to start by thanking the Sharepoint team for their quick response to my inquiry.  It was most unexpected and most welcome.

    The are two possible reasons for the error.  One is you must be running Windows 7 Professional 64-bit version (mine was the 32-bit version).  Another possibility is that some of the bits didn't download successfully while running the run.bat script.  Hope this was helpful.

  22. henry says:

    DaveMac,

    Yes. I have Windows & 64-bit version and have got the "Start" with "1" error.

  23. DaveMac says:

    henry, once i upgraded to the 64-bit version i downloaded everything again and got past the "Start with 1" error.  Unfortunately, now I get the ever popular "Property CurrentRebootAttempts does not exist at path HKEY_LOCAL_MACHINESOFTWAREMicrosoftServerManager…" error.  I went into RegEdit and set a DWORD value for it as someone suggested, but I still get the error.  All I want to do is do the demo labs in some AppDev online training (LearnDevNow.com) along with the intstructor so i get something out of the training.  This has been nothing but a huge pain.

  24. @DaveMac – You should make sure that you have run all Windows Updates and rebooted.

  25. DaveMac says:

    Thanks Paul, I'll give that a shot.

  26. mary says:

    I had the CurrentRebootAttempts error. Fixed it by adding the missing DWORD key using RegEdit and ran the setup again. Then I got

        Installing Sync Framework

               Sync Framework failed to install

    The script then exit. Do I need to worry about this message? Have I finished with the setup?

  27. Rodney says:

    I love the concept of the easy setup but I've been struggling to get it to install.  I finally made it to the final installation and it installed all the pre-reqs and installed Sharepoint Server completely.  Problem is I am unable to get any of the remaining products installed.  First I failed on the Visual Studio studio.  After a few reboots and attempts I tried commenting out VS but then started failing on Silverlight.  Anyone have any ideas?  I'm close, real close.  I'll greatly appreciate any suggestions.  Thanks and good luck to all.

    Rod

  28. ThxPaul says:

    I tried the easy script on a 4GB laptop which I'm hoping to use for presentations.

    Once the installation completed I found that although Word Automation Services was running, Excel Services was not. Is this expected behavior? What I do need to do to get Excel? Install Office Web Apps? (I only have a Developer Action Pack and Office Web Apps isn't part of that.)

    Many thanks for your help.

  29. Mike says:

    Slogging through all this.  Right after i choose to boot to SPEasy, i get a Blue screen and my laptop restarts. I am unable to see what the error is before it restarts.  Does this sound familiar to anyone?

    Mike

  30. maryRRR says:

    In regards to Rodney Rau comment above on error:  Could not find a part of the path 'Z:ProgramDataMicrosoftWindowsStart

    MenuProgramsStartupSpEasy Startup.lnk'.

    I have not found an answer to this particular error message in all the forums searched yet.  Does anyone have an answer to this error message?  I get a successful copy message after I select to go VHD.  Three sets of folders are copied to target…but then it stops with this error.  Thanks in advance!!

  31. Ralph Krausse says:

    I would love to use this but I have my own versions of VS, Office, etc.. Can I use those instead of installing the trail versions?

  32. OGEZZY says:

    Hi,

    I'm getting this error when running the BAT file on Windows 7 Enterprise 64bit:

    Windows Identity Framework failed to install

    Any help?

    Thanks in advance

  33. Jeffrey McFarland says:

    Could someone explain how to do this in detail?

    "I ran into the CurrentRebootAttempts error, then I simply added the missing DWORD key using RegEdit and ran the setup again."

  34. SharePoint 2010 Easy Setup Script is a good idea. But I have other way:

    1) Dowlad VHD files from MSDN.

    blogs.msdn.com/…/sharepoint-2010-hands-on-labs-updated.aspx

    2) Run in hpyer-v, sysprep the system

    3) Native boot from VHD

    4) Add a mirosoft loopback adapter, set IP:192.168.150.1 DNS:192.168.150.1

    5) Now you can do your Virtual Lab tests with out network

    Details can be foun in my web: user.qzone.qq.com/…/main

  35. Mike says:

    Need to explain the VHD stuff better. You know what I am talking about 😉

  36. Andy says:

    What is the username and password if I want to go to Central Admin ?