All posts filed under: SharePoint2010

Remote install of SharePoint 2010 prerequisites

I’ve published a free book on PowerShell 2.0 remoting. You can download it at: Did you ever try installing SharePoint 2010 prerequisites remotely? If so, you would know by now that it is not easy. Essentially because of the Windows update packages in the prerequisites. It is a known issue that Wusa.exe cannot be invoked in a remote session. If you try to install SharePoint 2010 prerequisites remotely — either using PowerShell remoting or WMI — it fails with an error code 5. We cannot really claim to have a fully unattended SharePoint deployment process until we have a solution to the prerequisite install process. So, with that background, I started working on the script for remotely installing SharePoint 2010 prerequisites. In today’s post, I will show you how to do that. To achieve this, I used a combination of PsExec.exe and PowerShell remoting. Here are the prerequisites for this script to work. PowerShell remoting must be enabled the remote system where you are deploying SharePoint prerequisites. On the remote system, CredSSP must be enabled …

SharePoint Saturday India online – PowerShell for SharePoint 2010 administrators – Slides, Q & A

I spoke at SharePoint Saturday India Online event and the topic was “PowerShell for SharePoint 2010 Administrators”. It was originally scheduled to happen at 14.45 PM IST but we had move it to 11.00 AM IST as one of the speakers did not join us. This was my first webcast kinda event and felt a bit weird for not being able to see my audience. This session was meant to be a very quick introduction to PowerShell for SharePoint 2010 administrators and I hope I did a good job at that. Update: Recording of the SPS India sessions will be available at http://alpesh.blip.tv/posts?view=archive&nsfw=dc Here are the slides I used for this session There were a few questions towards the end and we could not take the questions online. So, here you go. Q: Is Get-Help similar to <ScriptName> -Help? Where in the cmdlet we can define the help text? A: No. There is no such thing like <ScriptName> -Help. You can either use Get-Help or just Help. You can include comment based help in your scripts. …

Book review: PowerShell for Microsoft SharePoint 2010 Administrators

Microsoft SharePoint 2010 includes 500+ PowerShell cmdlets to manage the SharePoint products and features. It could be quite intimidating to even think about so many cmdlets and figuring out where to start. This is where this new book by Niklas Goude and Mattias Karlsson comes handy. This is probably the only book available on this topic and I don’t think anything else is in development on the same lines as this book. @Ngoude was kind enough to send a copy of this book. Rating 10/10 Recommendation A must read, task-based guide to using PowerShell for SharePoint 2010 Administration Coming to what is there in the book, this book is divided in to 3 parts. Part 1 gives an introduction to SharePoint 2010, what is new in SharePoint 2010 and then talks about different tools/interfaces available to manage a SharePoint 2010 deployment. Part 2 is where PowerShell for SharePoint gets an introduction. It won’t simply dive in to SharePoint 2010 cmdlets. Instead, the authors take us through some basics of PowerShell scripting and then introduce the …

Blocking SharePoint 2010 installs on unauthorized computers

SharePoint 2010 provides the ability to lock down, track, and even block random installations of Microsoft SharePoint Server 2010. The SharePoint 2010 setup wizard is designed to check for a registry key on the local system and block the install. If you want to block unauthorized SharePoint 2010 installs in your organization, you can setup the following registry key on all unauthorized computers. HKLM\Software\Policies\Microsoft\Shared Tools\Web Server Extensions\14.0\ SharePoint\DisableInstall (DWORD): 1  This will ensure that setup.exe is blocked on the computer. You can use domain group policy to add this registry setting to all computers. If you want to do this using PowerShell, you will require Group Policy PowerShell cmdlets. The following steps will show you how to do that. 

The above commands will first import the Group Policy cmdlets and then use Set-GPRegistryValue cmdlet to include the new registry setting. Since we changed the default domain policy iteself, it will now apply to all the systems in the domain. Once this setting is applied, if you try to run SharePoint 2010 setup.exe, you will see a message as shown here. Now, there …

Install and configure iFilters for SharePoint 2010 using PowerShell & updated PS SP2010 Utils

This is one of the recent additions to my SharePoint 2010 PowerShell scripts & Utilities project on Codeplex. I wrote a generic script cmdlet to take care of iFilter MSI install, make changes to DOCICON.XML, and add the crawl extension to the search service application. This could be useful to those who perform frequent SharePoint 2010 farm configuration. You can copy just this script @ http://pssp2010utils.codeplex.com/SourceControl/changeset/view/14b6c2e1b6ec#SPInstallUtils.psm1 This script requires to be run at the SharePoint 2010 management shell since there is a dependency on New-SPEnterpriseSearchCrawlExtension cmdlet. Whatever iFilters I’d Installed so far were all MSI with silent install support. So, making this a generic script cmdlet was a choice for me.

You can find the complete documentation of PSSP2010Utils @ http://pssp2010utils.codeplex.com/documentation