Thursday 31 December 2015

This virtual machine’s policies are too old to be run by this version of VMware [Fusion|Workstation]

Solution for “This virtual machine’s policies are too old to be run by this version of VMware [Fusion|Workstation].”

Posted by jpluimers on 2014/03/13
If you ever get the error message
This virtual machine’s policies are too old to be run by this version of VMware Fusion.
or
This virtual machine’s policies are too old to be run by this version of VMware Workstation.
Then the solution is really simple:
  1. Remove any .vmpl file from your virtual machine’s directory.
  2. Remove lines from your .vmx file that start with these keys:
policy.vm.mvmtid =
policy.vm.managedVMTemplate =
policy.vm.managedVM =

Tuesday 18 August 2015

Get Site Collections per Content Database one-liner


Get Site Collections per Content Database one-liner


This will be a very short post, as it contains only 1 line of PowerShell code, and is not very hard to understand. It shows you all content databases, and for each of the content databases, it will show you the site collections within this content database.
Get-SPContentDatabase | %{Write-Output "- $($_.Name)”; foreach($site in $_.sites){write-Output $site.url}}
That wasn’t so bad right? Just copy and paste this code into your SharePoint 2010 Management Shell (As administrator), and let PowerShell do your work for you!
image
Now let’s say you want to save this output to a .txt file, you can add “> C:\sitecollections.txt”.
The full command would be:
Get-SPContentDatabase | %{Write-Output "- $($_.Name)”; foreach($site in $_.sites){write-Output $site.url}} > C:\sitecollections.txt
This would create a .txt file with the same information:
image
That’s all there is to it!

Thursday 4 June 2015

SharePoint Service Applications: SharePoint 2013 versus 2010

SharePoint Service Applications: SharePoint 2013 versus 2010

Service Applications Description SPS 2010 Std SPS
2010 Ent
SPS
2013 Std
SPS 2013 Ent
Access Services Let’s user view, edit and interact with Access 2010 databases which are published to SharePoint in a web browser
X
X
App Management service Provides administrators the ability to manage new SharePoint apps. Apps can be purchased from an external vendor or developed internally. It checks user access permissions and licensing for app usage.    
X
X
Application Discovery and Load Balancer service A.k.a. Topology web service. SharePoint has a built in basic load balancer  that provides administrator with fault-tolerant out of the box SharePoint service applications. See SharePoint 2010 Service Application Load Balancer for more details.
X
X
X
X
Business Data Connectivity service Gives access to line-of-business data systems – also check out the Business Connectivity Services code samples for SharePoint 2013
X
X
X
X
Excel Services Application Let’s users view and interact with Excel files in a web browser
X
 
X
Machine Translation service Provides automatic translation of sites and files (See Machine Translation Services in SharePoint 2013 for more details)    
X
X
Managed Metadata service Manages taxonomy hierarchies,keywords and social tagging infrastructure, and publish content types across site collections
X
X
X
X
Office Web Apps Service Office Web Apps is now a separate product, rather than a SharePoint Service Application. See Use Office Web Apps with SharePoint Server 2013 for more details.        
PerformancePoint Service Application Let’s users create dashboards and balanced scorecards  
X
X
PowerPoint Automation service Performs automated bulk PowerPoint conversions to other formats (pptx,pdf,xps,jpg,png) (See PowerPoint Automation Services in SharePoint  2013 for more details)    
X
X
Search service Crawls content, produces index partitions and serves search queries
X
X
X
X
Secure Store service Provides single sign on authentication to access multiple applications or services
X
X
X
X
State service Provide temporary storage of user session data for SharePoint Server components
X
X
X
X
Usage and Health Data Collection service Collects farm wide usage and health data and provides the ability to view various usage and health reports
X
X
X
X
User Profile service Adds support for My Site sites, profile pages, social tagging and other social computing features
X
X
X
X
Visio Graphics service Let’s users view and refresh published Visio diagrams in a web browser  
X
 
X
Web Analytics service Collect, reports, and analyzes the usage of SharePoint Server sites. The functionality of the Web Analytics service has been incorporated into the Search service
X
X
   
Work Management service Enables users to synchronize and aggregate tasks between different Microsoft products such as Exchange, SharePoint and Project Server. See Configure Exchange task synchronization in SharePoint Server 2013 for practical details or the My Tasks aggregation in SharePoint Server and Exchange Task integration white paper    
X
X
Word Automation service Performs automated bulk document conversions.
X
X
X
X
Subscription Settings Service Provides multi-tenant functionality for service applications. Tracks subscription IDs and settings for services that are deployed in partitioned mode. Deployed through Powershell only.
X
X
X
X

Monday 6 April 2015

Step-by-Step: Create the Search Service Application in SharePoint 2010

In my current project, I got the opportunity to set up the SharePoint 2010 farm creation. In this blog I will only talk about the way I configured the Search Service application. There are numerous links/contents available, this piece only talks about what I did. If I have missed any points please put your comments. Hope to talk about more configurations in coming blogs….
When we deploy and configure a Search service application, we perform the following basic steps:

  1. Create accounts – Domain user accounts are required to run the various search services and components.
  2. Create a Search service application – A Search service application provides enterprise search features and functionality.
  3. Configure the Search service application – Basic configuration of a Search service application includes configuring a default content access account, an e-mail contact, and content sources.
  4. Configure the Search topology – You can deploy crawl components, query components, and the administration component on different servers in the farm. You can also specify which instance of SQL Server is used to host the administration, crawl, and property databases.

1.1    Create Accounts


The below Accounts are required to configure search service application
#
Account
Use
1
Search service application
SharePoint Foundation Search Service Account: “spSearch”
The Windows user account that is used for the SharePoint Server Search service, the Search Admin Web Service application pool, and Search Query and Site Settings Web Service application pool.
2
Default content access
SharePoint Foundation Search Content Access Account:
“spSearchCA”
The identity that is used by the Search service application to access content when crawling.

1.1.1     Register Managed Accounts

The service account for search (the account used for the Search service account, the Search Admin Web Service, and the Search Query and Site Settings Web Service) must be registered as a managed account in SharePoint Server 2010 to make it available when you create the Search service application. Use the following procedure to register this account as a managed account.
#
Description
1
On the Central Administration home page, in the Quick Launch, click Security
2
On the Security page, in the General Security section, click Configure managed accounts
3
On the Managed Accounts page, click Register Managed Account (the AD users should have “Read” access permission defined in AD)

4
On the Register Managed Account page, in the Account Registration section, type the user name and password that you want to use as credentials for the service account
clip_image002
5
If you want SharePoint Server 2010 to manage password changes for this account, select the Enable automatic password change check box and configure the parameters for automatic password change

1.1.2     Search Database Architecture

#
Description
1
Architecture (Databases)
When you create a Search service application, SharePoint Server creates three databases for storing search information and associated data:
·         Administration Database – used to store search admin information
·         Crawl database – used to store crawl information
·         Property Database – used to store index information


1.2    Create a Search service application


You can create multiple Search service applications if you have to have multiple search indexes.

#
Description
1
Verify that the user account that is performing this procedure is a member of the Farm Administrators group for the farm for which you want to create the service application
2
On the Central Administration Home page, in the Application Management section, click Manage service applications
3
On the Manage Service Applications page, on the ribbon, click New, and then click Search Service Application
clip_image004
4
On the Create New Search Service Application page, accept the default value for Name, or type in a new name for the Search service application.
5
In the Search Service Account list, click the account that you created in the previous procedure to run the Search service
6
In the Application Pool for Search Admin Web Service section, do the following:
1.     Select the Create new application pool option, and then type a name for the application pool in the Application pool name text box.
2.     In the Select a security account for this application pool section, select the Configurable option, and then select the account that you created to run the application pool for the Search Admin Web Service from the list.
7
In the Application Pool for Search Query and Site Settings Web Service section, do the following:
1.     Choose the Create new application pool option, and then type a name for the application pool in the Application pool name text box.
2.     In the Select a security account for this application pool section, select the Configurable option, and then select the account that you created to run the application pool for the Search Query and Site Settings Web Service from the list.

8
Click OK on the new Create New Search Service Application dialog to provision the new service application.
9
Once the Search Service Application has been successfully provisioned on the server farm you will have a topology with 1 Search Administration, 1 Crawl, and 1 Query component on the machine hosting SharePoint 2010 Central Administration and all associated databases on the default database server.


1.3    Configure the Search service application


You configure a Search service application on the Search Administration page for that service application.

Use the following procedure to navigate to the Search Administration page for a particular Search service application.

#
Description
1
Verify that the user account that is performing this procedure is an administrator for the Search service application that you want to configure.
2
On the Home page of the Central Administration Web site, in the Application Management section, click Manage service applications.
On the Manage Service Applications page, click the Search service application that you want to configure. Go to the Search Administration page
clip_image006
4
On the Search Administration page, configure the following settings as described in the following sections:
  • Default content access account
  • Contact email address
  • Content sources

5

Specify the default content access account

When you create a Search service application, the account that you specify for the Search Service Account is automatically configured as the default content access account. The crawler uses this account to crawl content that does not have an associated crawl rule that specifies a different account. For the default content access account, we recommend that you specify a domain user account that has read access to the content that you want to crawl. You can change the default content access account at any time.

If you need to crawl certain content using a different account, you can create a crawl rule and specify a different account for crawling. For information about how to create a crawl rule, see Manage crawl rules (SharePoint Server 2010).Use the following procedure to specify the default content access account.

To specify the default content access account

1.     On the Search Administration page, in the System Status section, click the link in the Default content access account row.
2.     In the Default Content Access Account dialog box, in the Account box, type the account that you created for content access in the form domain\user name.
3.     Type the password for this account in the Password and Confirm Password boxes.
4.     Click OK.
6

Specify the contact e-mail address

The contact e-mail address is written to the logs of crawled servers. The default contact e-mail address, someone@example.com, is a placeholder. We recommend that you change this to an account that an external administrator can contact when a crawl might be contributing to a problem such as a decrease in performance on a server that the search system is crawling.
Use the following procedure to specify the contact email address.

To specify the contact e-mail address

1.     On the Search Administration page, in the System Status section, click the link for the Contact e-mail address.
2.     In the Search Email Setting dialog box, in the E-mail Address box, type the e-mail address that you want to appear in the logs of servers that are crawled by the search system.
3.    Click OK.
7

Create content sources

Crawling requires at least one content source. A content source called Local SharePoint sites is created automatically during installation and is automatically configured for crawling all of the SharePoint sites in the server farm. If you perform a Server Farm installation of SharePoint Server 2010, no crawls are automatically scheduled or performed.
1.     Click the Content Sources from quick launch menu
2.     Click Local SharePoint Sites (otherwise you can create New Content Source)
3.     Add the url in “Start Address”
4.     Click “Start all crawls” from the Content Sources page.


1.4    Configure the Search topology


The search topology covers the below:

The Search administration (Admin) topology does not scale out - there can be on one (1) search administration component and one (1) search administration database per Search Service Application.

The Crawl topology can be scaled out by adding Crawl Components or Crawl Databases.  Crawl Components can have a many-to-one relationships with Crawl Databases.

The Query topology can be scaled out by adding Property Databases or by adding Query Components.  Index Partitions subdivide the full-text index.   A new Query Component can either be the first component in a new partition or an additional component in an existing partition.

The next step is to move the query components to the servers on the Web tier, the crawl and property store (query) databases are provisioned on the SQL server instance that was specified for the SharePoint Server farm. If you have more than one application server in your farm, you can deploy these components on other application servers, depending on your requirements. You can deploy multiple instances of each crawl component and each query component.

#
Description
1

To move the query component to a Web server (with query component in 2 WFEs)

1.     On the Central Administration Home page, click Manage service applications.
2.     On the Services Applications page, click Search Service Application.
3.     On the Search Administration page, in the Search Application Topology section, click Modify.
4.     On the Topology for Search Service Application: Search Service Application page, in the Index Partition section, click Query component 0, and then click Edit Properties.
5.     On the Edit Query Component page, select one of the front-end Web servers from the Server drop-down list, and then click OK.
6.     On the Topology for Search Service Application: Search Service Application page, in the Index Partition section, click Query component 0, and then click Add mirror (for fail over).
7.     On the Add mirror query component page, in the Server drop-down list, select the front-end Web server that you identified on the Edit Query Component page, and then click OK.
2

To move the crawl component to a Web server

1.     On the Central Administration Home page, click Manage service applications.
2.     On the Services Applications page, click Search Service Application.
3.     On the Search Administration page, in the Search Application Topology section, click Modify.
4.     You can edit or create a new crawl component and select the App Server.
5.     Finally click Apply Topology Changes
3
Finally the Topology would look like below:

clip_image008