Skip to main content

Posts

Showing posts from August, 2013

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...