24
Tips, Tricks and Lessons Learned Dennis Bottjer SharePoint Solution Architect SharePoint 2013

Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Embed Size (px)

Citation preview

Page 1: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Tips, Tricks and Lessons Learned

Dennis BottjerSharePoint Solution Architect

SharePoint 2013

Page 2: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Introductions

Dennis started his career, years ago, as a help desk professional for an architecture firm and experienced, first hand, the struggle of small business & technology. Through that experience and his education in MIS at OU, he gained a keen skill as a developer & a passion for designing business applications. Over the course of 10 years, Dennis moved on to work for several corporations and Fortune 500's like Bank of America, leading teams to develop SharePoint & custom software solutions on a much larger scale.

Today, Dennis spends the bulk of his time consulting with ThriveFast's diverse clients. Occasionally, he'll take the night off to attend or speak at a conference or event like 'SharePoint Saturdays' or to read a good book.

Leadership: President of the Tulsa SharePoint Interest Group.

@DBottjer DennisBottjer.com

[email protected]

Page 3: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Agenda

PowerShell

General

Performance

Page 4: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Where is my STSADM?

Page 5: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

SharePoint PowerShell

Fact: Not If, When.

Why use?

Use ISE

Additional Tips & Demos

Page 6: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

1. It’s repeatable, across farm and environments

2. Documentation3. Power of .NET4. Get rid of Ugly Guids (DB Names)

Why Use PowerShell?

Page 7: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Use the ISE

No Editor, Just Command Prompt?

Page 8: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

1. Use the SharePoint Management Console (PS)2. Use Add-PSSnapin Microsoft.SharePoint.Powershell -

EA 0

Issue: PowerShell Doesn’t Know SharePoint

Page 9: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Save Me…

Page 10: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

SharePoint General

Suite Bar Updates

Hide the Quick Launch

Hide the ‘Recent’ Heading

Run Config Wizard from Command Line

Employee Pics from AD

Open in Windows Explorer

Page 11: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

$wa = Get-SPWebApplication “http://WebAppURL”$wa.SuiteBarBrandingElementHtml = "IncWorx Consulting"$wa.Update()

Issue: Suite Bar Text Reads “SharePoint” Instead of Company Name

Page 12: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

Insert this code into a Script Editor Webpart <style type="text/css"> #sideNavBox {DISPLAY: none} #contentBox {MARGIN-LEFT: 0px}</style>

Issue: Hide The Quick Launch With CSS

Page 13: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

1. Make a copy of the default master page. 2. Add a reference in your Master Page to the most

recent jQuery.min.js. 3. Next, search for the tag in your master page.

Inside that tag, place this bit of code:

$(document).ready(function() { var recentLi= $("#ctl00_PlaceHolderLeftNavBar_QuickLaunchNavigationManager div ul li").filter(function(index) { return $("span span", this)[0].innerText == "Recent"; }); if (recentLi != undefined) { recentLi.hide(); } });

Issue: Hide The Recent Heading

Page 14: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

psconfig -cmd upgrade -inplace b2b -force -wait

Issue: Running SharePoint Config Wizard GUI Fails

Page 15: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 –MySiteHostLocation http://my.company.com Note: Run as Admin

Issue: Employee Pics Stored in AD Aren’t Showing on Profiles

Page 16: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

1. Add Desktop Feature2. Restart Server3. Make sure webclient Windows Service is

running

Issue: Open in Windows Explorer Doesn’t Work on My Server

Page 17: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Help, SharePoint is Slow…

Page 18: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

SharePoint Performance

Set Search Performance Level

Rebuild Indexes

SQL Statistics

Automatically Detect Settings

Set DB Auto Growth

Page 19: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:Is noderunner.exe is running and using

tons of memory?

Run: (SharePoint Management PowerShell)

Set-SPEnterpriseSearchService -PerformanceLevel Reduced

Issue: SharePoint Environment is Unbearably Slow

Page 20: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution: SharePoint does not exist without SQL Server and SQL Server Indexes become fragmented.

1) Establish a Maintenance Plan that rebuilds your indexes.

2) Use T-SQL to script the Rebuilding of Indexes Example: http://bit.ly/GSYMAW

Issue: SharePoint Environment is Unbearably Slow

Page 21: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

1. Rebuild Indexes (See Previous Slide)2. DO NOT Enable Auto-Create Statistics

Issue: SharePoint Environment is Unbearably Slow

Page 22: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution: In IE Disable “Automatically Detect Settings.”

1. In Internet Explorer, Go to the upper right corner and click on the Gear:

2. Then select Internet Options Tab, and choose the connections tab as shown below:

3. Click LAN Settings:

4. Uncheck the first check box “Automatically detect settings” if this is checked, and click ok on all open screens.

5. Close and Re-Open Internet Explorer.

Issue: Document Viewing and Uploading is Slow

Page 23: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Solution:

1. Set autogrow to a fixed size, not percentage.2. Set fixed size based on expected total database

size.

Issue: SharePoint Ignores the Model DB and Auto Growth is Enabled by Default

Page 24: Tulsa Tech Fest - SharePoint 2013 Lessons Learned

Dennis Bottjer@DBottjer

[email protected]

Thank You!

Tips, Tricks and Lessons Learned

SharePoint 2013