Recent Blogs

AvatarByRashid Aziz

Recycle bin retention period setting using PowerShell

In SharePoint 2010 there is a recycle bin property called “RecycleBinRetentionPeriod”. This property specifies the number of days files will be stored in recycle bin and then will be deleted after that period.

I wrote a PowerShell script to set the SharePoint 2010 site retention period without much hassle.

$siteUrl = "http://eblogin.com"
Write-Host "Connecting to the site"
$SPSite = Get-SPSite | Where-Object {$_.Url -eq $siteUrl}
if($SPSite -ne $null)
{
$SPSite.WebApplication.RecycleBinEnabled = $true
$SPSite.WebApplication.RecycleBinRetentionPeriod = 20
$SPSite.WebApplication.Update()
}
$SPSite.Dispose()

Hope this will help.

AvatarByRashid Aziz

Sharepoint 2010 web application maximum upload file size limit

The maximum file size setting will determine the maximum size of files uploaded to document libraries on the site. You can set the sharepoint 2010 web application max file size limit in many ways, but   I have done this in PowerShell.

I wrote a smart PowerShell script to do this job.

$siteUrl = http://eblogin.com
Write-Host "Connecting to the site"
$SPSite = Get-SPSite | Where-Object {$_.Url -eq $siteUrl}
if($SPSite -ne $null)
{
$SPSite.WebApplication.MaximumFileSize = 200
$SPSite.WebApplication.Update()
}

$SPSite.Dispose()

Hope this will help you.

AvatarByRashid Aziz

Collaboration site default page setting in SharePoint 2010

In the last post I have explained how you can change publishing site default page using PowerShell

You can also achieve same for collaboration site. In this post I explain how SharePoint 2010 collaboration site default page is set up. 

$site = get-spsite "http://site URL”

$file = $site.RootWeb.GetFile("Pages/Default_Copy.aspx")
$folder = $site.RootWeb.RootFolder
$folder.WelcomePage = $file
$folder.Update()
AvatarByRashid Aziz

Setting up publishing site default page in sharepoint 2010

In SharePoint 2010 publishing site you can choose the default page for that site. In the following example I will show you how you can change the default page of publishing site by using PowerShell.

$site = get-spsite "http:// site URL”

$pub = [Microsoft.SharePoint.Publishing.PublishingWeb] :: GetPublishingWeb($site.RootWeb)
$file = $pub.Web.GetFile("Pages/New_DefaultPage.aspx")
$pub.DefaultPage = $file
$pub.Update()
AvatarByRashid Aziz

Use PowerShell to set security timeout in SharePoint

A user logged off after a certain period of time from sharepoint 2010 site. You can reset this timeout according to your requirement.  If you need a user session to be open for more time you can always change the security time out by using PowerShell.

Open PowerShell management console and copy past the following code.

Note: change the session Time span according to your need. In this code it is setup as 1 hour and 20 minutes.

$SPSite = Get-SPSite("[URL of site collection]")
$webApp = $SPSite.WebApplication
$webApp.FormDigestSettings.Enabled = $true
$webApp.FormDigestSettings.Expires = $true
$webApp.FormDigestSettings.Timeout = New-TimeSpan -Hours 1 -Minutes 20
$webApp.Update()

Now it will enable the session expiry time to 1 hour and 20 minutes for this site collection.

AvatarByRashid Aziz

SharePoint 2010 should or should not be on cloud

There are some benefit and consideration if you move your sharepoint 2010 environment on cloud for your organizations. Let’s talk about the good bits first and then we will move towards the worries. J

Benefits: (why sharepoint should be on cloud)

Simplify SharePoint ownership

Managing SharePoint technically on premises is a big challenge, things like in house SharePoint upgrade, backup and recovery adds more cost into it. If you use cloud then you are actually transferring the sharepoint farm maintenance and availability to the cloud service providers.

Cloud is cheaper solution for some Organizations

The cost of hardware and training for in house SharePoint could be very high, especially for smaller organizations. The cloud approach makes SharePoint more affordable and easy to implement. I can say this will be a greater interest for smaller organizations.

Best for OOBT solutions

The cloud based SharePoint 2010 solution in small to medium sized businesses who mostly require out of the box (OOTB) features and functionality and departmental permission strategies.

Considerations (Reasons why SharePoint on cloud is not best in your case)

Site Customization problems

There are some doubts about using custom code solution on sharepoint server in the cloud. The big concern is the performance.

Business Connectivity Services lacking on cloud

At the moment sharepoint 2010 on cloud does not have support for “Business integration service called “Business Connectivity Services (BCS)”. This is a big cause for organizations to hold back cloud migration that is using BCS or intend to use BCS service in future.

Third Party Products & Solutions

If your organization is heavily relaying on third party solutions or products, you need to engage them to make sure that the solutions or product are fully tested on cloud before making a decision.

Note: This is really open to discuss, please add any comments and concerns and we all can understand it better.

AvatarByRashid Aziz

Print SharePoint wiki pages all at once

Have you come across a scenario when you have multiple wiki pages on your sharepoint site and you want to print them all? I think it will be a big time waste if you have thousands of pages and start printing them one by one.  Here is a workaround to print multiple wiki pages in one go.

  1. Create a numeric type column “Page Number” on your wiki library.
  2. Now fill “page Number” for each wiki page and assign it a numeric page number.
  3. Now create a new view for wiki list and name it “Printable view”. Select only the “wiki content” filed for this view and sorts the “wiki content” field based on “Page Number” column. You can also filter it on Page Number” column value >0 if you are not printing all wiki pages. Unnumbered wiki pages will be excluded from view in this case.
  4. When new view will be created you will see your wiki pages in a single web page. Now you can send it to printer from here or can copy past on word document for further editing and then print it.

Once you do the setup this solution is really time saving.

AvatarByRashid Aziz

SharePoint blog with attachment capability workaround

By default there are not any settings in sharepoint to enable attachments with blog posts. It is not a perfect way to do this, but worth to mention on my blog I think.

I have done a workaround to achieve this

  1. Create a custom list inherited form Item with default columns.
  2. Create new item “give it a title” and attach your document with it.
  3. Now in your post list create a lookup column with the title “Attachment” which will look up to the “Title” column of your custom list.
  4. Edit the view of you posts web part on the blog main page and enable it to display the lookup field. You can now see the attachment in the footer.

I hope this blogs helps J

AvatarByRashid Aziz

SharePoint Cloud Based Service Providers

I have listed few cloud based service providers for SharePoint. If you guys came across any other cloud based service please add it in comments. I am just trying to put all cloud service provider in one place.

Microsoft Office 365

Microsoft is committed to delivering business-grade cloud services that work together to support new levels of innovation, efficiency, and agility for your organization

http://www.microsoft.com/en-gb/office365/online-software.aspx

American Data Technology

You as a client benefit from our proven track record of 15 years expertise as a web hosting services provider.

http://www.localweb.com/

Igroup Hosted SharePoint

They love SharePoint and they use the platform widely within their business. They aim to stand out in our market by offering our products and services in the most self-supporting and responsible way they can.

http://www.sharepoint-cloudhosting.com/

Goiwx

Goiwx is a cloud hosting services provider specialized in ERP, CRM and other front and back office solutions that you own or want to use.

http://www.goiwx.com/

Quantix innovative IT Services

Quantix is one of the UK’s premier providers of, Managed Cloud Services and Infrastructure Solutions for Enterprises and Independent Software Vendors.

http://www.quantix-uk.com/

724 Internet Solutions

724 is one of the oldest Cloud Computing Providers. In business since 1996, and Hosting SharePoint since 1999,

http://www.724hosting.com/

Rackspace Hosting

Rackspace Cloud offers four hosting products: Cloud server for on-demand computing power; Cloud sites for robust web hosting

http://www.rackspace.com

Pay Per Cloud

PayPerCloud is a full service cloud hosting company. Their solutions are delivered and backed up with EXPERT level technical support unmatched in the industry

http://www.paypercloud.com/

WEB HOSTING UK

The number 1 company in the UK offering reliable and affordable web hosting solutions

http://www.webhosting.uk.com/

Red Ember Solutions

They are dynamic Perth Company specialising in custom solutions tailored to your businesses exacting requirements.

http://www.redember.com.au/

AvatarByRashid Aziz

Configure performance counter for SharePoint environment

I have explained below how you can setup base line and incident performance count for your sharepoint server. This will allow producing a baseline of the source depletion over a period of time. When a problem is occur, these performance encounters can be used to analyze and compare with respect to the base line data to understand any strange behavior in the system.

Baseline performance counter script

logman create counter Perf_Baseline -s %COMPUTERNAME% -o C:\PerfLogs\Perf_Baseline_%COMPUTERNAME%.blg -f bin -v mmddhhmm -cf Counter_Server.txt -si 00:01:00 -cnf 12:00:00 -b 4/29/2009 5:00AM -u “domainName\theuserid” *

Incident performance counter script

logman create counter Perf_Incident -s %COMPUTERNAME% -o C:\PerfLogs\Perf_Incident_%COMPUTERNAME%.blg -f bin -v mmddhhmm -cf Counter_Server.txt -si 00:00:10 -max 400 -u “domainName\Theuserid” *

The difference between two counters is the frequency of running. The .txt file name need to be updated purely based on server where the counter is created.