Skip to main content

Posts

Showing posts from 2013

Deploying the Solution

1.Back in PowerShell, type: Install-SPSolution –Identity .wsp –WebApplication http:// -GACDeployment 2.You’re done. Verify that your assembly is the GAC (C:windowsassembly) and then go activate any features you may have had in your solution. Quick Overview Here’s a quick overview of what we’ve learned with a few more tidbit commands you’ll probably need along the way: Add Solution Add-SPSolution c: .wsp Deploy/Install Solution Install-SPSolution –Identity .wsp –WebApplication http:// -GACDeployment Update Solution Update-SPSolution –Identity .wsp –LiteralPath c: .wsp –GACDeployment Uninstall Solution Uninstall-SPSolution –Identity .wsp –WebApplication http:// Remove Solution Remove-SPSolution –Identity .wsp

Sharepoint : Change the “Add New” message for a web part

In custom list if no items then will see this message “ There are no items to show in this view of the "test" list. To add a new item, click "New ".”   By default.  Steps: Add an Content Editor Web Part (CEWP) below the Announcements web part.  From the CEWP click Edit and Modify Shared Web Part  Click the Source Editor button  Paste the following: Click OK, then OK, then Exit Edit Mode 

Configure antivirus software for SharePoint Portal Services

You use the Configure Antivirus Settings page in the SharePoint Central Administration pages to enable and configure antivirus protection. Enable antivirus protection for your server or server farm On the SharePoint Central Administration page, under  Security Configuration , click  Manage antivirus settings . 2. Select the  Scan documents on upload  check box. 2. Select the Scan documents on download check box. 3.  If desired, select the Attempt to clean infected documents check box. 4. If you want to allow users to save infected files locally, select the Allow users to download infected documents check box. 5. Note   This option is disabled by default to prevent users from saving potentially infected files to their client computers. 6. In the Time out scanning after _seconds box, type the number of seconds to allow before timing out the scanning process. 7. The default time is 300 seconds, or 5 minutes. This should...

Powershell command for Enable SharePoint Designer Settings for SharePoint 2010 Web Application

Select the web app under Central Admin -> Manage web applications and on the button General Settings you find the Sharepoint Designer settings. This can also be achieved with Powershell for example: $siteURL = “http://website.domain.com” $webApp = Get-SPWebApplication $siteURL $webApp.AllowDesigner = $true $webApp.Update() Edit accordingly for any setting you want to change of the four available: $webApp(or $site).AllowDesigner = $true(or $false) $webApp(or $site).AllowRevertFromTemplate = $true(or $false) $webApp(or $site).AllowMasterPageEditing = $true(or $false) $webApp(or $site).ShowURLStructure = $true(or $false)

Powershell commands

Subsite level site export / import commands Go to Command Prompt and go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN export the below sites using stsadm. Commands are below stsadm -o export -url http:****/sites/test/newsite -filename d:\test.cmp -includeusersecurity -versions 4 -nofilecompression stsadm -o import -url http://****/sites/test/newsite -filename d:\test.cmp -includeusersecurity -updateversions 2 -nofilecompression Unless you’re running a signed script, make sure you to set the correct execution policy using Set-ExecutionPolicy. To allow local scripts to run unsigned, run: Set-ExecutionPolicy Unrestricted Importing List Import-SPWeb –Identity http://****/sites/test/ImportListTest -Path D:\testbkp\ListBackup211212\ListBackup211212.cmp -includeusersecurity –force Export Subsite: export-spweb -identity http://mysite/mysubsite  -path D:\subsitebackup\mysubsitebackup.cmp  Import Subsite: import-spweb -identity http...

Upgrade Sharepoint Site 2007-2010

First this is the Home page of one of the Web Application of the MOSS 2007 farm I am going to migrate. As you may notice, I took a standard site definition : the Collaboration Portal, with a few custom Web  Parts and features as customizations. Open SQL Server management studio and locate the Database you want to migrate and display its properties pane Set the Database Read Only to true You will notice that the database icon will turn to gray And that all the corresponding SharePoint site are now in read only mode Then perform a back up of the Database, and move this back up on your SharePoint 2010 Data Base Server. Then, open the SQL Server Management Studio of your SharePoint 2010 farm Database Server Detach the content database to drop the existing connections then, re attach the same database  You can now restore the database coming from the SharePoint 2007 farm Do not fo...

How to Configure the Search Service in SharePoint 2010

The process of setting up your SharePoint 2010 search box step-by-step 1. We need to first start the search service application in Central Admin. 2. Go to Application Management -> Manage service application. 3. Then start a new “Search Service Application.” 4. Provide the application name, in this case “Service Search Application.” 5. Provide a search service account. 6. Configure application pools for both the “Search Admin Web Service” and the “Search Query and Site Settings Web Service.” 7. Click “OK” and wait for SharePoint to process the request. This may take several minutes. 8. A message will then appear if the search service application was successfully created. 9. OK, the search service application has been created, now we need to do some configuration work. 10. Once again, go to Application Management -> Manage service applications. 11. Select “Search Service Application,” then click the “Administrators“ ribb...

Restore a deleted Site Collection in SharePoint 2010

Restore the Site Collection run the Restore-SPDeletedSIte command with the same server relative URL Identity parameter -Identity (can be given ID of Site collection if your remember or site name) Restore-SPDeletedSite -Identity /sites/HR /

Creating your own Content Type with Visual Studio 2010

Creating your own Content Type with Visual Studio 2010 We are going to see how to deploy our own Content Type for Sharepoint 2010. This approach is quite straight forward to be honest. We could build something similar programmatically but for now let’s go to concentrate how to develop a flexible solution. I am going to develop a Content Type called DMSLegal, it will be based in a legal document management system, so considering that it should inherit the document fields plus client, matter, client description and matter description. To simplify the operation, all of them should be text columns. Let’s go to start. First of all create an Empty Project, so go to Visual Studio 2010->New Project->Sharepoint->2010-> Empty Project and in the name of the folder type netsourcecodeDMSLegal. Click on OK. Now select Deploy as Farm Solution and click Finish. Go to your project Right Click-> Add->New Item->Content Type and in the name box type DMSLegal, click Add....

Blocked File Types in SharePoint-Add or remove blocked file types

Add or remove blocked file types Use this procedure when you want to prohibit files of a specific type from being saved or retrieved from any web application on a server. To add or remove blocked file types by using Central Administration Verify that you have the following administrative credentials. You must be a farm administrator on the server. In Central Administration, click Security . On the Security page, in the General Security section, click Define blocked file types . On the Blocked File Types page, if you want to change the selected web application, on the Web Application menu, click Change Web Application . Use the Select Web Application page to select a web application. Do one of the following: To block an additional file type, scroll to the bottom of the Type each file name extension on a separate line text box, type the file name extension that you want to block, and then click OK .

Word Web App cannot open this document due to an unknown error. If the problem persists, try opening the file in Microsoft Word.

Resolution: 1.On the Central Administration Web site, in Application Management, click Manage web applications. 2.On the Web Applications Management page, select the Web applications that the site collection belongs to, and then clickService Connections. 3.On the Configure Service Application Associations page, verify that the following kinds of service application proxies are associated with the Web application: ◦Word Viewing service application proxy Word 97-2003 Document Scanning To provide added security when loading Word 97-2003 documents, the Word Viewing Service Application performs extra checks before those documents are opened. These checks have an impact on overall server performance. Only disable this setting if you trust ALL documents loaded by this instance of the service. Disable Word 97-2003 document scanning? Yes No  select NO from the radio button