Identify SharePoint Foundation or SharePoint 2010 - sharepoint

I've a SharePoint installation in my virtual machine. How do I find whether it is SharePoint Foundation or SharePoint 2010? I've run this command -
Get-SPFarm | Select BuildVersion
and it is giving me the build version as 14.0.4762.1000. How do I identify the version from that?

Okay, should have searched a bit longer. I found it here - https://sharepoint.stackexchange.com/questions/3886/how-to-detect-the-edition-of-sharepoint-2010-installed. We can verify a regedit key to identify the GUID which matches to a SharePoint edition.

There is a page on MSDN http://msdn.microsoft.com/en-us/library/ff721969.aspx using registry access to list installed SharePoint products. However, sometimes you don't have enough permissions to look to the registry, or you want to use SharePoint API only - not to depend on registry paths. (You may need this check in some code that you deploy with a SharePoint solution where the registry access could be an unnecessary requirement.)
Your link to stackexchange above points out also a way using the SPFarm.Products property in PowerShell. This would be a complete code to check the SharePoint Server release in C#:
// B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0 : SharePoint Server 2010 Standard Trial
// 3FDFBCC8-B3E4-4482-91FA-122C6432805C : SharePoint Server 2010 Standard
// 88BED06D-8C6B-4E62-AB01-546D6005FE97 : SharePoint Server 2010 Enterprise Trial
// D5595F62-449B-4061-B0B2-0CBAD410BB51 : SharePoint Server 2010 Enterprise
Guid[] serverGuids = { new Guid("B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0"),
new Guid("3FDFBCC8-B3E4-4482-91FA-122C6432805C"),
new Guid("88BED06D-8C6B-4E62-AB01-546D6005FE97"),
new Guid("D5595F62-449B-4061-B0B2-0CBAD410BB51") };
// If a Server ID cannot be detected we are running on Foundation.
bool isServer = SPFarm.Local.Products.Any(productGuid =>
serverGuids.Contains(productGuid));
--- Ferda

For a customer project based on SharePoint 2013 we had the same problem. For this case we developed a simple Helper, which can be easily adapted for SharePoint 2010. More Informationen about the helper and how to use it can be found here:
http://msscorner.de/2014/06/11/identify-which-sharepoint-2013-edition-is-in-use/
If you wanna use this Helper for SharePoint 2010, you only have to change the SharePoint 2013 SKUs with the SharePoint 2010 SKUs, which are listed above.
I hope this will help you!

Related

How to Install 'Approval - SharePoint 2010' workflow template in SharePoint 2013 Server

I am fairly new in SharePoint Development and configuration. I need to create a list that when a entry is created, it will email the selected person to approves the entry.
Right now, I have already created the list and will be setting-up the workflow configuration, but the problem is that the 'Approval-SharePoint 2010' Workflow template is missing.
How can I work around this? Or can I download the template and install it in the Server SharePoint 2013?
You haven't mentioned which version of SharePoint you are running. I presume because you don't have the option available you are running SharePoint 2013 Foundation.
SharePoint 2013 Foundation doesn't use support the Workflow Manager and uses the same workflow engine that SharePoint 2010 Foundation uses- this doesn't include the approval workflow.
The Approval-SharePoint 2010 workflow template comes with SharePoint Standard or SharePoint Enterprise. See here for feature comparisons between versions:
https://blog.blksthl.com/2013/01/14/sharepoint-2013-feature-comparison-chart-all-editions/
Unfortunately, having tried various things myself, the options are upgrade to at least SharePoint standard or build a custom workflow. Customer workflows can be built using SharePoint Designer or as part of a code solution. There are quite a few guides already out there. This is just the first one I came to:
http://plexhosted.com/billing/knowledgebase/226/How-to-create-a-simple-approval-workflow-in-SharePoint-Designer.html
If I am being too presumptuous and your version is higher than Foundation then it might just be that you need to activate the Workflows feature in the site collection features.

TFS change SharePoint links

Our company has a SharePoint server where we have to store all of our documents, our TFS 2013 has links to this SharePoint server. We have been told that the company is getting a new SharePoint server which will have a different url
This means that all links within our TFS need to be repointed to the new SharePoint site
Does anyone know of a way to change the links without someone having to go in to each PBI; see if it has any links; if it does then remove the old link and add a new one?
We have 100's of documents and would rather not have to do this manually so any help will be much appreciated
This is all beyond my control, all I've been told is they are migrating our SharePoint site to another server...
You can write a PowerShell script that will open all PBIs and change the links to the new SharePoint. In order to get access to TFS from PowerShell scripts you have to install Team Foundation Server 2013 Power Tools and check the PowerShell Cmdlets option during installation.
I was unable to work out how to do this using the PowerShell Cmdlets but I have been able to write a program to do this using Team Foundation Work Item Tracking Client
I have looped through each of the work items and their external links, if the link is to our old SharePoint site then:
I remove the old link
Add a new link with location of the same document on the new SharePoint

Sharepoint 2010. Web part filter category is missed

I have to use standard Sharepoint 2010 filters for my list view as described in this article:
http://social.technet.microsoft.com/wiki/contents/articles/20882.sharepoint-2010-tips-on-implementing-the-sharepoint-filter-list-web-part.aspx
but filter category mentioned here:
is missed for my site :(
I have created site based on "Records Centre" template (template that should have most of features installed out-of-the-box) but no luck.
My Sharepoint DB version is: 14.0.4762.1000
Centeral administration tells me that it is: Microsoft SharePoint Server 2010
And when I go to "Migration" option it tells me that I have "Standard CAL" license
Do filters require enterprise license for Sharepoint 2010 server ?
Any ideas?
I have updated license to Enterprise and filters have appeared in web-parts categories.
Now I wonder if I could use them with Standard license
Alike question: SharePoint 2010 Filter Web Parts

How can I add parameters to a workflow in sharepoint 2007

I'd like to create a custom workflow for SharePoint 2007 (NOT 2010) in Visual Studio. My need is to have a custom parameter when this workflow is attached to the list. These would be parameters that I can reference in the Workflow, like a SharePoint ID, email, or other kind of string.
Does anyone know how to accomplish this?
Sure. They are called Workflow Association (setting default values for workflow) and Initiation (setting/modifying values when starting workflow for each item) Forms:
Association and initiation forms are displayed for users to complete
before any workflow actually starts. You can use these forms to enable
users to set parameters and other information for the workflow in
advance.
You can read Accessing Data from Workflow Association and Initiation Forms in Windows SharePoint Services 3.0 on MSDN
Somwhere on the way in the article you can encounter the following sentance:
The code shown below is based on the Feedback Collection workflow
sample that is provided with the Windows SharePoint Services 3.0 SDK
To have these examples at hand, i would suggest you download and install (so you can see how it's done by yourself):
Windows SharePoint Services 3.0: Software Development Kit (SDK)
SharePoint Server 2007 SDK: Software Development Kit (if you use
MOSS)

Sharepoint 2010 What's new?

I wonder that, with a use of minimum custom code use, how easy or hard would it be, compared to previous versions, to build a community portal in Sharepoint 2010, in which users upload, view and comment videos, share videos and so on.
You can ofcourse take Youtube as an example.
Thanks.
Some links from Microsoft.com:
What's New in Microsoft SharePoint
Server 2010
What's New in SharePoint Server 2010
Microsoft SharePoint 2010 Overview
Check out this Walkthrough:
Walkthroughs: Creating and Customizing a Video Sharing Site
http://msdn.microsoft.com/en-us/library/ff464364.aspx

Resources