Professional Documents
Culture Documents
M I C R O S O F T
L E A R N I N G
P R O D U C T
10174A
Lab Instructions and Lab Answer Key:
Configuring and Administering Microsoft
SharePoint 2010
Information in this document, including URL and other Internet Web site references, is subject to change without notice.
Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people,
places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain
name, e-mail address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright
laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be
reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic,
mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft
Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject
matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this
document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.
The names of manufacturers, products, or URLs are provided for informational purposes only and Microsoft makes no
representations and warranties, either expressed, implied, or statutory, regarding these manufacturers or the use of the
products with any Microsoft technologies. The inclusion of a manufacturer or product does not imply endorsement of
Microsoft of the manufacturer or product. Links may be provided to third party sites. Such sites are not under the control of
Microsoft and Microsoft is not responsible for the contents of any linked site or any link contained in a linked site, or any
changes or updates to such sites. Microsoft is not responsible for webcasting or any other form of transmission received from
any linked site. Microsoft is providing these links to you only as a convenience, and the inclusion of any link does not imply
endorsement of Microsoft of the site or the products contained therein.
2010 Microsoft Corporation. All rights reserved.
Microsoft, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries.
All other trademarks are property of their respective owners.
Module 1
Lab Instructions: Introducing SharePoint 2010
Contents:
Exercise 1: Creating Active Directory Accounts for SharePoint
10
11
Sccenario
Yo
ou have been asked to deplo
oy a SharePoin
nt farm to support Contosos strategic inittiatives related to
en
nterprise collaboration. This single-server farm
f
will act as a prototype, and executive
es, developers,, and
en
nd users will use it to evaluate the new fea
atures of Share
ePoint Server 2010.
2
Start 10174
4A-CONTOSO
O-DC-A.
2..
After CONT
TOSO-DC-A ha
as completed startup, start 10174A-SP20
1
10-WFE1-A.
1.
2.
2.
3.
Description
SharePoint
Administrator
SP_Admin
SP_Admin @contoso.com
SharePoint Farm
Service
SP_Farm
SP_Farm@contoso.com
SharePoint
Service
Applications
Full Name
4.
SP_ServiceApps@contoso.com
Open SQL Server Management Studio and connect to SP2010-WFE1 as CONTOSO\SQL_Admin with
the password of Pa$$w0rd.
2.
3.
4.
2.
2.
3.
4.
2.
3.
4.
Run D:\Software\SharePointServer2010\default.hta.
Click Install software prerequisites.
Step through the Microsoft SharePoint 2010 Products Preparation Tool.
The prerequisite installer prepares the server.
The Microsoft SharePoint 2010 Products Preparation Tool displays the message, There was an error
during installation. A summary of prerequisite installation status is also displayed.
2.
Find the first instance of the text 976462. Observe the lines in the log file that indicate that the
prerequisite installer checked for the existence of Hotfix for Microsoft Windows (KB976462).
Find the next instance of the text 976462. Observe the lines in the log file that indicate that the
prerequisite installer attempted to download Hotfix for Microsoft Windows (KB976462) from
microsoft.com. Observe the URL that was used.
3.
You can use this URL to download the prerequisite manually. Click Cancel and then close the log file.
4.
Close the Microsoft SharePoint 2010 Products Preparation Tool and the SharePoint Server 2010 Start
page.
Open Notepad. Type the following, on one line, with spaces between each switch:
/SQLNCli:PrerequisiteInstallerFiles\sqlncli.msi
/ChartControl:PrerequisiteInstallerFiles\MSChart.exe
/KB976462:PrerequisiteInstallerFiles\Windows6.1-KB976462-v2-x64.msu
/IDFXR2:PrerequisiteInstallerFiles\Windows6.1-KB974405-x64.msu
/Sync:PrerequisiteInstallerFiles\Synchronization.msi
/FilterPack:PrerequisiteInstallerFiles\FilterPack.msi
/ADOMD:PrerequisiteInstallerFiles\SQLSERVER2008_ASADOMD10.msi
/ReportingServices:PrerequisiteInstallerFiles\rsSharePoint.msi
/Speech:PrerequisiteInstallerFiles\SpeechPlatformRuntime.msi
/SpeechLPK:PrerequisiteInstallerFiles\MSSpeech_SR_en-US_TELE.msi
Step through the Microsoft SharePoint 2010 Products Preparation Tool. When installation has
completed successfully, click Finish to close the tool.
Results: After this exercise, you should have installed and configured all SharePoint Server 2010
prerequisites.
1B.
2.
3.
4.
When installation completes, clear the Run the SharePoint Products Configuration Wizard now
check box, and then click Close.
On the SharePoint installation splash screen, click Exit, and then close the Windows Explorer window
that displays the contents of the SharePointServer2010 folder.
2.
You can monitor the progress of the SharePoint installation using any of these methods:
Click Start, type %temp%, and then press ENTER. Open the log named SharePoint Server
Setup*.log.
Open Task Manager, and then monitor processes including Msiexec.exe, Setup.exe,
Mscorsvw.exe, and Psconfigui.exe.
8.
Clear the Run the SharePoint Products Configuration Wizard now check box and then close the
Run Configuration Wizard page.
Results: After this exercise, you should have installed SharePoint Server 2010.
2.
The Configuring SharePoint Products page indicates the progress of configuration, which takes
approximately five minutes.
3.
4.
5.
2.
4.
5.
Results: After this exercise, you should have configured SharePoint Server 2010 as a single-server
farm with the Central Administration application on port 9999.
10
Open SharePoint 2010 Central Administration and start the Farm Configuration Wizard. For the
service account, create a new managed account using the SP_ServiceApps account with the user
name CONTOSO\SP_ServiceApps, and the password Pa$$w0rd.
2.
Observe the list of service applications that will be created by the Farm Configuration Wizard. Clear
the check box next to User Profile Service Application and then proceed with the wizard by clicking
Next.
Farm service applications are created and started. This takes several minutes. Optionally, you can
open SQL Server Management Studio to follow the progress of the service application database
creation.
When the configuration is complete, the Create Site Collection page opens.
3.
Click Skip.
You create an intranet in the following exercises.
4.
Results: After this exercise, you should have a SharePoint farm and service applications configured with
default settings.
11
2.
3.
2.
3.
4.
5.
On the Excuter lAssistant Configuration page, clear the Excuter lAssistant Configuration des
produits SharePoint check box.
Click Fermer.
In SharePoint 2010 Central Administration, in the Quick Launch, click System Settings.
2.
3.
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
3.
Module 2
Lab Instructions: Creating a SharePoint 2010 Intranet
Contents:
Exercise 1: Creating a Web Application
Lab: Cre
eating a Sh
harePoint 2010 Intra
anet
Sccenario
Yo
ou have been asked to build
d an intranet to
o support com
mmunication and collaboratio
on requiremen
nts at
Co
ontoso, Ltd. Yo
ou have recently completed the installatio
on of SharePoint 2010. You must
m
now conffigure
th
he farm using the
t Farm Conffiguration Wizard, and create the logical to
opology to support the initial
bu
usiness require
ements. You are tasked with establishing a SharePoint 2010 intranet site so that bussiness
ussers can review
w the new feattures of the pu
ublishing site definition.
d
Add
ditionally, you have been askked to
co
onfigure sites to
t meet the co
ollaboration re
equirements off several divisio
ons within the
e organization.. You
w begin by cre
will
eating a site fo
or the Informa
ation Technolo
ogy (IT) department.
Start 10174
4A-CONTOSO
O-DC-B.
After CONT
TOSO-DC has completed sta
artup, start 101
174A-SP2010
0-WFE1-B.
Port: 80
Results: After this exercise, you should have created a new Web application, intranet.contoso.com.
In SharePoint 2010 Central Administration, create a new site collection with the following
configuration:
In Microsoft Internet Explorer, in the address bar, type http://intranet.contoso.com, and then
press ENTER.
An Internet Explorer cannot display the webpage error page is displayed.
Question: What is the cause of this error?
f Task 3: Add a DNS host record for the new Web application
Start DNS Manager using the Run as different user option. Enter the user name,
CONTOSO\Administrator, and the password, Pa$$w0rd.
Create a new host record in the contoso.com zone with the name, intranet, and the IP address,
10.0.0.21.
In Internet Explorer, in the address bar, type http://intranet.contoso.com, and then press ENTER.
An Internet Explorer cannot display the webpage error is displayed. If this error does not appear on
your system, continue to the next task.
Question: What is the cause of this error?
2.
3.
Open Command Prompt, and then execute the command, ipconfig /flushdns. Then close
Command Prompt.
In Internet Explorer, in the address bar, type http://intranet.contoso.com, and then press ENTER.
The Web site begins to load. Because this is the first time that the site has been requested from the
server, it must be compiled. This takes several seconds.
The intranet Web application opens.
Create a new page on the site with the name, Important Phone Numbers and with the following
page content:
In case of emergency, call 911
Add the CONTOSO\Domain Users group to the Contoso Intranet Visitors group.
Results: Upon completing this exercise, you should have been able to successfully create a Contoso
intranet Web site.
In SharePoint 2010 Central Administration, create a new content database with the following
configuration in the Web application, http://intranet.contoso.com:
In SharePoint 2010 Central Administration, create a new site collection with the following
configuration:
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
Module 3
Lab Instructions: Administering and Automating SharePoint
Contents:
Lab A: Automating SharePoint with Windows PowerShell
Exercise 1: Adding SharePoint Functionality to Windows PowerShell
10
Lab A:
A Automating
g ShareP
Point with Win
ndows
Powe
erShell
Yo
ou are responssible for ensurring that the Sh
harePoint farm
m can be built consistently in
n both lab and
d
prroduction environments, and
d that the farm
m can be rebuilt in the eventt of a catastrop
phic failure.
Additionally, yo
ou are required
d to produce weekly
w
reports showing the webs
w
and stora
age utilization of each
sitte collection in
n the production farm. To meet
m
these goals, you must build
b
Windows PowerShell sccripts
th
hat can automate SharePointt management tasks.
Start 10174
4A-CONTOSO
O-DC-C.
2..
After CONT
TOSO-DC has completed sta
artup, start 101
174A-SP2010
0-WFE1-C.
Microsoft.SharePoint.dll is not in the list. To use the SharePoint object model, you must load the
SharePoint .dll files.
Type the following command and then press ENTER:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
The output displays GAC, version, and location information for the assembly.
Repeat step 3 to display the loaded assemblies.
Tip: You can press the UP key to scroll through previously executed commands.
The listing includes the Microsoft.SharePoint.dll.
The output lists the snap-ins that have been added to the current session. The SharePoint snap-in is
not listed.
Type the following command and then press ENTER:
Get-PSSnapin Registered
The output lists the snap-ins that are registered on the system, except for those that are installed with
Windows PowerShell.
Type the following command and then press ENTER:
Add-PSSnapin Microsoft.SharePoint.PowerShell
The output lists the snap-ins that have been added to the current session. The SharePoint snap-in is
now added.
To identify the assemblies that are currently loaded, type the following command and then press
ENTER:
[AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object { Split-Path $_.Location Leaf } | Sort
The output lists the snap-ins that have been added to the current session. The SharePoint snap-in is
already added to the session.
To identify the assemblies that are currently loaded, type the following command and press ENTER:
[AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object { Split-Path $_.Location Leaf } | Sort
The listing demonstrates that SharePoint 2010 Management Shell preloads the SharePoint .dll files.
Results: After this exercise, you will have learned how to run Windows PowerShell with the ability to
administer SharePoint.
2.
To enumerate all of the webs in the site collection, type the following command and press ENTER:
$spsite | Get-SPWeb
An error appears indicating that login failed. The SP_Admin user account does not have the
permissions required to access the information about the intranet site collection with Windows
PowerShell.
f Task 2: Configure least privilege rights to manage SharePoint with Windows PowerShell
Start SharePoint 2010 Management Shell using the Run as different user option. Enter the user name,
CONTOSO\Administrator, and the password, Pa$$w0rd.
Type the following commands each followed by ENTER:
$spcdb = Get-SPContentDatabase WSS_Content_Intranet
Add-SPShellAdmin -UserName CONTOSO\SP_Admin -Database $spcdb
An error indicates that the Windows PowerShell Integrated Scripting Environment feature is not
installed.
An error indicates that you must run the command with elevated permissions.
Start Windows PowerShell using the Run as administrator option.
Type the following two commands each followed by ENTER:
Import-Module ServerManager
Add-WindowsFeature PowerShell-ISE
An error indicates that the Windows PowerShell Integrated Scripting Environment feature is not
installed. This occurs because you must close and reopen SharePoint 2010 Management Shell to load
the component.
Close SharePoint 2010 Management Shell.
Open SharePoint 2010 Management Shell.
Type the following command and then press ENTER, which is the same as the command you executed
in the beginning of this task:
Get-SPSite | Select URL, @{Name="Storage"; Expression={"{0:N2} MB" -f
($_.Usage.Storage/1000000)}}, @{Name="Quota"; Expression={"{0:N2} MB" -f
($_.Quota.StorageMaximumLevel/1000000)} } | Out-GridView -Title "Sites with Usage"
2.
A site collection and top-level web for the Sales department is created using the Team Site site
definition.
Open the Sales site with Windows Internet Explorer.
To enumerate all of the site collections in the farm, except Central Administration, type the following
command and then press ENTER:
Get-SPSite
The list item will be updated. Notice that you did not use a cmdlet to update a list item. There are
things that will require direct access to the object model and, as such, you need to be careful to
dispose of objects you create.
Switch to Internet Explorer and then refresh the Announcements list, and then observe that the title
of the list item has been updated.
Close all Internet Explorer and Windows PowerShell windows.
Results: After this exercise, you will have updated a list item using a Windows PowerShell script.
10
L B: Administ
Lab
A
tering SharePo
S
oint with Stsadm
Co
ontosos policies encourage and in some cases
c
mandate
e the automatiion of commo
on tasks. As succh, your
M
Microsoft
Office
e SharePoint Server
S
2007 environment had
d several Stsad
dm scripts thatt were used to create
sitte collections and
a webs.
Display Stsa
adm Help documentation.
Enumerate site collection
ns in a Web ap
pplication using
g Stsadm.
Create an Operations
O
site
e collection usiing Stsadm.
Create an Operations
O
Ma
aintenance site
e using Stsadm
m.
Configure the
t site collecttion administra
ator using Stsa
adm.
e output of the
e command, which
w
includes a list of the nu
umerous opera
ations supported by
Examine the
Stsadm. Also
o notice the exxamples displayed at the end
d of the Help documentation
d
n.
H
documenttation for the enumsites
e
ope
eration, type th
he following co
ommand and then
To display Help
press ENTER
R:
stsadm hel
lp enumsites
11
Repeat steps 1 and 2, and observe the amount of time it takes for each command to execute.
Module 4
Lab Instructions: Configuring Content Management
Contents:
Lab A: Configuring List Throttling and Remote BLOB Storage
Exercise 1: Configuring List Throttling
Scenario
You have just installed a new SharePoint 2010 server farm at Contoso, Ltd. Your previous SharePoint 2007
environment included some very large lists that performed poorly for end users and large document
libraries that increased the size of content databases and therefore the time required to perform backup
and restore operations. Your revised governance policy for SharePoint 2010 requires that large lists have
controls to manage performance and that the size of content databases be more carefully managed. To
support these requirements, you have been tasked with implementing list throttling and Remote BLOB
Storage.
Start 10174A-CONTOSO-DC-D.
1.
2.
3.
4.
5.
6.
7.
Create a custom list named ComputerInventory. After creating the list, change its name and
description to Computer Inventory (with a space).
Create two single-line text columns named Computer Name and Serial Number.
f Task 2: Configure least privilege rights to manage SharePoint using Windows PowerShell
Start SharePoint 2010 Management Shell using the Run as different user option. Enter the user
name CONTOSO\Administrator and the password Pa$$w0rd.
In SharePoint 2010 Management Shell, create 4,000 items in the new list by typing the following
commands:
$site = Get-SPSite "http://intranet.contoso.com/sites/IT"
$web = $site.rootweb
$list = $web.Lists["Computer Inventory"]
$i = 1
do {
#add item
$newitem = $list.items.Add()
$newitem["Title"] = "Client-" + $i.ToString().PadLeft(4, "0");
$newitem["Computer Name"] = "Client-" + $i.ToString().PadLeft(4, "0");
$newitem["Serial Number"] = $i.ToString().PadLeft(8,"0");
$newitem.Update()
$i++
}
while ($i -le 4000)
$web.dispose()
$site.dispose()
You can watch the progress of the script by refreshing the Computer Inventory list page in the IT
Web.
Open the List Settings of the Computer Inventory list, and then verify that the List view threshold
message indicates that the list contains 4,000 items.
In SharePoint 2010 Management Shell, create 5,000 additional items in the Computer Inventory list
by typing the following commands:
$site = Get-SPSite "http://intranet.contoso.com/sites/IT"
$web = $site.rootweb
$list = $web.Lists["Computer Inventory"]
$i = 4001
do {
#add item
$newitem = $list.items.Add()
$newitem["Title"] = "Client-" + $i.ToString().PadLeft(4, "0");
$newitem["Computer Name"] = "Client-" + $i.ToString().PadLeft(4, "0");
$newitem["Serial Number"] = $i.ToString().PadLeft(8,"0");
$newitem.Update()
$i++
}
while ($i -le 9000)
$web.dispose()
$site.dispose()
You can watch the progress of the script by refreshing the Computer Inventory list page in the IT
Web.
Switch to Internet Explorer and refresh the view of the Computer Inventory list.
Open the List Settings of the Computer Inventory list, and then verify that the List view threshold
message indicates that the list contains 9,000 items.
Return to the Computer Inventory list, point at the Title column header, and then click the dropdown arrow that appears.
A message appears: Cannot show the value of the filter. The field may not be filterable, or the number
of items returned exceeds the list view threshold enforced by the administrator.
Open SharePoint 2010 Central Administration. In Central Administration, change the resource
throttling settings for the SharePoint intranet.contoso.com80 Web application. Configure the List
View Threshold to 10000.
Switch back to the Computer Inventory list. In the Computer Inventory list, point at the Title
column header, and then click the drop-down arrow that appears. Verify that the Show Filter
Choices command is now available.
In Central Administration, change the resource throttling settings for the SharePoint
intranet.contoso.com80 Web application. Configure the List View Threshold to 7000, with a daily
time window for large queries from 11pm to 4am.
Open the List Settings of the Computer Inventory list, and then observe the List view threshold.
Verify that the new list threshold of 7,000 items has been applied.
Results: After this exercise, you should have modified list throttling settings for a site collection.
2.
Start SQL Server Configuration Manager using the Run as a different user option. Enter the user
name CONTOSO\Administrator and the password Pa$$w0rd.
Click SQL Server Services, and then open the properties of SQL Server (MSSQLServer). In the
FILESTREAM tab, select all three check boxes, and then close SQL Server Configuration Manager.
Start SQL Server Management Studio using the Run as a different user option. Enter the user
name CONTOSO\Administrator and the password Pa$$w0rd.
Open the properties of SP2010-WFE1, and then configure Filestream Access Level so that full
access is enabled. Then, restart SQL Server services.
In SQL Server Management Studio, select the WSS_Content_Intranet_IT content database. Set the
database master key by executing the following query:
use [WSS_Content_Intranet_IT]
if not exists (select * from sys.symmetric_keys where name =
N'##MS_DatabaseMasterKey##')create master key encryption by password = N'Master Key
Pa$$w0rd'
Add a filegroup for the RBS provider by executing the following query:
if not exists (select groupname from sysfilegroups where
groupname=N'RBSFilestreamProvider')alter database [WSS_Content_Intranet_IT]
add filegroup RBSFilestreamProvider contains filestream
Add a file system mapping for the RBS provider by executing the following query:
alter database [WSS_Content_Intranet_IT] add file (name = RBSFilestreamFile, filename
= 'c:\Blobstore') to filegroup RBSFilestreamProvider
Results: After this exercise, you should have enabled FILESTREAM and configured RBS on the
computer running SQL Server.
2.
3.
4.
Start Command Prompt using the Run as administrator option. Change to the D:\Labfiles\Lab04
folder, type the following command, and then wait one minute for the operation to complete:
msiexec /qn /lvx* rbs_install_log1.txt /i RBS.msi TRUSTSERVERCERTIFICATE=true
FILEGROUP=PRIMARY DBNAME="WSS_Content_Intranet_IT" DBINSTANCE="SP2010-WFE1"
FILESTREAMFILEGROUP=RBSFilestreamProvider FILESTREAMSTORENAME=FilestreamProvider_1
Open D:\Labfiles\Lab04\rbs_install_Log1.txt, and then confirm that you see the following line
within the last 20 lines of the end of the file:
Product: SQL Server 2008 R2 Remote Blob Store -- Installation completed successfully.
In SQL Server Management Studio, refresh the view of the Object Explorer tree, and then verify that
several tables exist in the WSS_Content_Intranet_IT database that have names that begin with the
letters mssqlrbs.
In SharePoint 2010 Management Shell, enable RBS for the WSS_Content_Intranet_IT database by
typing the following commands:
$cdb = Get-SPContentDatabase "WSS_Content_Intranet_IT"
$rbss = $cdb.RemoteBlobStorageSettings
$rbss.Installed()
$rbss.Enable()
$rbss.SetActiveProviderName($rbss.GetProviderNames()[0])
$rbss
Open the C:\Blobstore folder, and then observe the number of items in the folder.
Switch to Windows Explorer and verify that the file has been added to the Blobstore folder.
Results: After this exercise, you should have configured RBS on the SharePoint farm and tested its
functionality.
2.
Switch to Windows Explorer, open the C:\Blobstore folder, and, by examining file sizes and
timestamps, verify that SharePoint_2010_Walkthrough_Guide.pdf was moved to Blobstore
whereas SharePoint_2010_Datasheet.pdf was not moved to Blobstore.
Results: After this exercise, you should have modified the RBS configuration to store files larger than
1 Mbyte in the file system.
Leave the virtual machines running. You use them for Lab B.
Scenario
The knowledge management team at Contoso is excited about the ability of SharePoint 2010 to support
an enterprise taxonomy. They have asked you to prototype the functionality of the managed metadata
service and of terms.
1.
2.
3.
4.
Create a new term set named Department. Configure the term set with a closed submission policy.
Add terms for the following departments: Marketing, Finance, IT, and Sales.
10
Create a managed metadata column named Department using the Department term set.
Create a managed metadata column named Request Type using a custom term set. Configure the
custom term with an open submission policy.
User Name
Department
Request Type
AndyR
Finance
New User
ChristaG
IT
Password Reset
FrankM
Marketing
Desktop Support
SeanC
Sales
New User
LolaJ
Sales
Password Reset
Tip: To add a new term you must add it to the term store by clicking the Browse For A Valid Choice
icon, and then clicking the Add New Item link.
Tip: Use the Suggestions list to enter departments without having to type the entire department
name.
Configure the metadata navigation settings of the SupportRequest list so that Department and
Request Type are the selected hierarchy fields.
Observe the tree view below the Quick Launch. Click the terms in the Department and Request
Type term sets to filter the list.
Results: After this exercise, you should have created term sets and a SupportRequest list with
managed metadata columns, and you should have configured metadata navigation to filter the list.
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
Module 5
Lab Instructions: Configuring Authentication
Contents:
Lab A: Configuring Custom Authentication
Exercise 1: Creating and Configuring an ASP.NET Membership Database
11
Scenario
The Client Services department at Contoso, Ltd. has asked you to establish a SharePoint site with which
employees and clients can collaborate. Your organizational IT Policy states that only employees shall have
an Active Directory account. Therefore, you must configure a custom authentication mechanism using
forms based authentication, so that user accounts for clients can be maintained in a separate database.
Start 10174A-CONTOSO-DC-D.
2.
2.
3.
Create users.
4.
Accept all of the defaults in the ASP.NET SQL Server Setup Wizard.
Start SharePoint 2010 Management Shell with the Run as administrator option, and then type the
following commands:
$member = New-Object System.Web.Security.SQLMembershipProvider
$vals=New-Object System.Collections.Specialized.NameValueCollection
$vals.Add("name", "sql")
$vals.Add("connectionStringName", "LocalSQLServer")
$vals.Add("applicationName", "/")
$member.Initialize("sql", $vals);
$status = New-Object System.Web.Security.MembershipCreateStatus
$member.CreateUser('SiteAdministrator', 'Pa$$w0rd', 'SharePoint@contoso.com', 'first
person kissed', 'mom', $true, $id, [ref] $status)
Ignore the error message that indicates the membership provider name specified is invalid.
Ignore the error message that indicates the membership provider name specified is invalid.
With Notepad, open the file, c:\program files\common files\microsoft shared\web server
extensions\14\webservices\root\web.config.
Create a Web Application that uses both Windows and forms-based authentication.
2.
3.
f Task 1: Create a Web application that uses both Windows and forms-based
authentication
In Central Administration, click the Manage web applications link and create a new Web
application with the following settings:
Port: 80
Claims Authentication Types: Integrated Windows Authentication (NTLM) and Forms Based
Authentication
Create a site collection in the new Web application with the following settings:
f Task 2: Add a DNS host record for the new Web application
Start DNS Manager using the Run as different user option. Enter the user name,
CONTOSO\Administrator, and the password, Pa$$w0rd.
In the contoso.com forward lookup zone, create a new host record named clients with the address
10.0.0.21.
Sign in using Forms Authentication with the user name SiteAdministrator and the password,
Pa$$w0rd.
Click Sign in as Different User and then sign in with Windows Authentication as SP_Admin with
the password, Pa$$w0rd.
Results: After completing this exercise, you should have created a Web application that is accessible
both by employees, using Windows authentication, and by clients, using forms-based authentication.
Leave the virtual machines running. You will use them for Lab B.
Scenario
Information workers at Contoso, Ltd. have started using the new intranet portal site and would like to start
using SharePoint Designer 2010 to add Business Connectivity Services applications to pages.
Organizational IT policy states that under no circumstances shall credentials be stored in an unencrypted
manner in applications. Because of this policy, users will not be allowed to embed credentials in the
ASP.NET pages. You have been tasked with configuring Secure Store Service to facilitate the
authentication for these information workers.
On SP2010-WFE1, start Active Directory Users and Computers using the Run as different user
option. Enter the user name, CONTOSO\Administrator, and the password, Pa$$w0rd.
In the Users container, create the user accounts listed in the table below. For each account, set the
password to Pa$$w0rd, clear the User must change password at next logon check box, and select
the Password never expires check boxes.
Full name
SP_Excel_USA
SP_PerfPoint_USA
SP_Visio_USA
2.
3.
4.
5.
In Central Administration, navigate to the Manage Service Applications page, and then click the
Secure Store Service link on the Secure Store Service Application row.
10
11
2.
3.
Configure the Excel Services Application global settings to use the Application ID,
ExcelUnattendedSA, to access external data.
Excel Services can now use the credentials in Secure Store to render spreadsheets and connect to
external data connections.
Configure the Performance Point Service Application settings so that the Secure Store and
unattended service account is the user name, CONTOSO\SP_PerfPoint_USA, and the password,
Pa$$w0rd.
Configure the Visio Graphics Service global settings to use the application ID, VisioUnattendedSA,
to access external data.
Visio can now execute diagrams, and data connection refreshes using the unattended account.
Results: After completing this exercise, you should have configured Excel Services, PerformancePoint
and Visio to have an Unattended Secure Store account.
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
Module 6
Lab Instructions: Securing Content
Contents:
Exercise 1: Managing SharePoint Groups
Scenario
You have created an intranet on a new SharePoint 2010 farm at Contoso, Ltd. You have been tasked with
helping set up users, groups, and permissions on the intranet until governance and training are in place,
at which point permission management will be delegated to site collection administrators. Additionally,
you must configure SharePoint to support the business requirement that the internal security and
compliance audit team has the ability to access all information stored on the intranet.
Start 10174A-CONTOSO-DC-D.
2.
Add the user CONTOSO\SanjayS to the site, assigning him to the Information Technology
Members [Contribute] group.
You have now added Sanjay Shah, the Contoso chief technology officer (CTO), as a contributor to the
IT intranet Web, which gives him Read and Write permissions.
Observe the membership of the Information Technology Dept Visitors group, and then add the
user CONTOSO\JeffL to the group.
You have now added Jeff Low, the Contoso vice president of finance, as a visitor to the IT intranet
Web, which gives him Read permission.
f Task 5: Create a new group and assign it the Design permission level
Create a new group named Information Technology Dept Designers, and give it the Design
permission level. Configure the groups description to read as follows: Use this group to grant
people Design permissions to the SharePoint site: Information Technology Dept.
Results: After this exercise, you should have added users to the Members and Visitors groups and
created a new SharePoint group.
2.
3.
4.
f Task 1: Create a custom permission level to allow viewing Web analytics reports
Create a custom permission level named View Usage with the description Can see only usage data
about this site. Assign the View Web Analytics Data permission. Additional permissions will be
selected automatically.
Create a group named Usage Monitors with the description Use this group to grant people
permission to view Web Analytics data for the SharePoint site: Information Technology Dept.
Assign the group the View Usage permission level.
Sign into the IT site as CONTOSO\SP_Admin with the password Pa$$w0rd. Edit the View Usage
permission level, adding the View Application Pages permission.
2.
3.
Open the Shared Documents document library. Upload the document D:\Labfiles\LAB06\ IT
Policies and Procedures for SharePoint 2010.
Configure permissions on the Usage Reports folder so that the only permission on the folder is one
that gives CONTOSO\LolaJ the Full Control permission level.
2.
Create groups.
3.
4.
5.
6.
On SP2010-WFE1, start Active Directory Users and Computers with the Run as different user
option. Enter the user name CONTOSO\Administrator and the password Pa$$w0rd.
Open the Users container. Create a new group named SharePoint Content Auditors. Add
CONTOSO\JimD to the SharePoint Content Auditors group.
Create a group named SharePoint Deny Policy, and then close Active Directory Users and
Computers.
In the User Policy for the intranet Web application, add a user policy that gives
CONTOSO\SharePoint Content Auditors the ability to read all content from all zones.
Add a user policy that gives CONTOSO\SharePoint Full Control Policy full control of all content
from all zones.
Add a user policy that denies CONTOSO\SharePoint Deny Policy any access from all zones.
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
Module 7
Lab Instructions: Managing SharePoint Customizations
Contents:
Lab A: Administering Features and Solutions
Exercise 1: Administering Features
11
Scenario
You have just installed a new SharePoint 2010 farm at Contoso, Ltd. Several developers would like to test
the functionality of features and solutions they created for SharePoint 2007. Corporate IT policy states
that only administrators may modify the production environments, so it is your job to install these
features and solutions.
Start 10174A-CONTOSO-DC-D.
2.
3.
4.
Deactivate a feature.
Open Windows Explorer and copy the folder, D:\LabFiles\Lab07\CustomAction, to the folder,
C:\Program Files\Common Files\Microsoft Shared\web server extensions
\14\Template\Features.
Each folder in the features folder represents a feature on the SharePoint server.
Open the SharePoint 2010 management shell and use the installfeature operation of Stsadm.exe to
install the feature.
Tip: The installfeature operation is focused, by default, on the features folder. The path to the feature
can be entered as a path that is relative to the Features folder.
This will install a new feature into SharePoint that enables a simple custom action in the Site Actions
menu.
Click the Site Actions menu, and then click the new item on the menu, A Custom Action.
A Message from webpage window appears with the message, Hello World.
Click OK.
Confirm that the item, A Custom Action, no longer appears on the Site Actions menu.
Install a solution.
2.
Deploy a solution.
3.
Use the addsolution operation of Stsadm.exe to add the following two solutions to the farm:
D:\Labfiles\Lab07\ApplicationTemplateCore.wsp
D:\Labfiles\Lab07\BugDatabase.wsp
Open SharePoint 2010 Central Administration, and then from System Settings open the Manage
farm solutions page.
Observe that the two solutions are installed, but are not deployed.
Create a new Web site named Bug Tracking, with the URL
http://intranet.contoso.com/sites/IT/Bugs and with the Bug Database site definition.
Open the new bug tracking Web site. Then close all open Internet Explorer windows.
Results: After completing this exercise, you should have installed and deployed SharePoint solutions
to your farm.
Leave the virtual machines running. You will use them for Lab B.
Scenario
Developers have started testing their solutions on your SharePoint farm, and some users have complained
that the new solutions seem to be causing performance problems. Your manager has tasked you with
examining the resource usage of the solutions and with changing the resource point settings of
sandboxed solutions for the time being to prevent database queries made by custom solutions from
causing problems.
2.
3.
In the Services console, confirm that the SharePoint 2010 User Code Host service is not started, and
that it is disabled.
In SharePoint 2010 Central Administration, start the Microsoft SharePoint Foundation Sandboxed
Code Service.
In the Services console, confirm that the SharePoint 2010 User Code Host service is started, and is
set to start automatically.
From the All Site Content page, create a new announcement in the Announcements list, with the
title My Announcement.
An error message appears.
In the Webs Solutions Gallery, observe that the BadReceiver solution shows no resource usage. That
is because the timer job has not yet calculated resource usage for the solution.
Results: After completing this exercise, you should have deployed and tested the BadReceiver
solution.
2.
In SharePoint 2010 Central Administration, locate the timer job, Solution Resource Usage Update,
for SharePoint intranet.contoso.com80. Run the job now.
Note: Be sure to run the Solution Resource Usage Update and not the Solution Daily Resource
Usage Update timer job. Running the latter will cause resource usage points to be reset.
Run the timer job, Solution Resource Usage Log Processing, for the site SharePoint
intranet.contoso.com80.
Browse to the Solutions Gallery for the IT Web, and then refresh the page.
The resource usage for the solution should now be updated. If you do not see the updated resource
usage, then you may need to wait for up to 5 minutes for the timer jobs to execute.
Results: After completing this exercise, you should have updated and executed one of the sandboxed
solutions timer jobs.
2.
3.
4.
Find the section for SharePointDatabaseQueryCount, and then record the current values of
ResourcesPerPoint and AbsoluteLimit. Close the file.
This script sets the ResourcesPerPoint property for SharePointDatabaseQueryCount to 1 and will
cause SharePoint database queries to increase the resource usage point count very quickly.
Switch to the instance of Internet Explorer that displays the IT intranet Web.
It will take a few seconds to load the Web, because you recently reset IIS.
From the All Site Content page, create a new announcement in the Announcements list, with the
title My Next Announcement.
An error message appears.
10
In the Webs Solutions Gallery, observe that the BadReceiver solution shows no resource usage. That
is because the timer job has not yet calculated resource usage for the solution.
If you see resource usage of 2.00, then you were lucky! The timer jobs executed just in time. Skip to
Step 6.
Observe that the resource usage of the solution is increasing more rapidly.
If you do not see the updated resource usage, then you may need to wait for up to 5 minutes for the
timer jobs to execute.
Leave the virtual machines running. You will use them for Lab C.
Question: What was the value of ResourcesPerPoint for SharePointDatabaseQueryCount? Explain the
relationship between this number and one resource usage point.
11
Scenario
You have installed a new SharePoint 2010 farm for your developers. Recently the development manager
fielded several performance issues from end users and has mandated that applications are designed with
performance as top priority. One of the developers has asked you to enable the Developer Dashboard for
debugging and instrumentation purposes to support this new initiative.
2.
3.
Click the small icon in the top right next to SharePoint Administrator.
12
Database Queries
Service Calls
SPRequest Allocations
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
Module 8
Lab Instructions: Configuring and Securing SharePoint
Services and Service Applications
Contents:
Lab A: Administering SharePoint Services
Exercise 1: Administering SharePoint services
8
10
13
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
Scenario
The Communications team at Contoso wants to publish content to the intranet by using Microsoft Word.
The teams manager discovered that SharePoint includes a feature that can convert Word documents to
Web pages and is complaining that the intranet site does not expose the document conversion command.
Additionally, developers are experiencing errors that suggest some SharePoint services may not be
running correctly. You have been asked to troubleshoot the problems and to ensure that SharePoint and
Windows Services that are required to support the SharePoint farm are running correctly.
Start 10174A-CONTOSO-DC-D.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
2.
3.
4.
5.
6.
7.
Use the View All Site Content link to navigate to the Documents document library. From the library,
create a new document. In the new document, type this text: SharePoint IT Policies and
Procedures. If prompted for a user name, use Contoso\SP_Admin and the password Pa$$w0rd.
Close Microsoft Word, and then click Yes and OK to check in the document.
Switch to Internet Explorer, and then refresh the page to confirm that the document was saved in
the document library.
Point at the row containing the new document SharePoint IT Policies and Procedures, and then
click the drop-down arrow that appears next to the file name.
In the Quick Launch, click General Application Settings, and then, in the External Connections
section, click Configure document conversions.
The Configure Document Conversions page appears.
Click the Web Application list, and then click Change Web Application.
The Select Web Application dialog appears.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
In the Enable Document Conversions section, click Yes, and then click OK.
At the top of the page, a message appears that indicates you must choose a document conversion
server.
Click the Load Balancer server drop-down arrow. Observe that you have no options. Click Cancel.
You must enable the SharePoint service on front-end Web servers before you can enable document
conversions.
Under System Settings, click Manage services on server, and then browse to the Services On
Server page.
Start the Document Conversions Load Balancer Service and Document Conversions Launcher
Service. For the Document Conversion Launcher Service, select SP2010-WFE1 as the server and the
load balancer server.
From the General Application Settings page, browse to the Configure Document Conversions
page.
Enable document conversions for the Web application http://intranet.contoso.com using SP2010WFE1 as the load balancer server.
Switch to the instance of Internet Explorer that displays the document library. Refresh the page.
Open the Edit menu for the document SharePoint IT Policies and Procedures. Observe the new
menu item, Convert Document. Convert the document to a Web page named SharePoint Policies
and Procedures with the URL name SharePointPoliciesAndProcedures.
Switch to SharePoint 2010 Central Administration, click System Settings, and then browse to the
Services On Server page.
Start Claims to Windows Token Service and Microsoft SharePoint Foundation Subscription
Settings Service.
Results: After this exercise, you should have enabled document conversions on the intranet Web and
configured and started several SharePoint farm services.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
2.
3.
4.
Run Command Prompt as administrator, type the following command, and then close Administrator:
Command Prompt:
net stop sptimerv4
Open SharePoint 2010 Central Administration, and then browse to the Manage Service
Applications page.
Attempt to create a new Managed Metadata Service application with the following specifications:
When you attempt to create this application, Central Administration will pause indefinitely. Wait two
minutes, and then click Cancel.
Refresh the page, and then observe that the Managed Metadata Human Resources service
application is listed as Stopped, and that there is no Managed Metadata Service Connection created
for the service application.
The Timer service must be running to process the jobs related to the creation of a service application.
Open the Services console, and then start the SharePoint 2010 Timer service. Close the Services
console.
Switch to SharePoint 2010 Central Administration, and then refresh the page. Observe the
Managed Metadata Human Resources service application. If the application is listed as Stopped or
if there is no Managed Metadata Service Connection for the application, wait a few moments, and
then repeat this step.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
Results: After this exercise, you should have experienced an effect of a stopped SharePoint 2010
Timer service and started the service.
Leave the virtual machines running. You will use them for Lab B.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
Scenario
You recently inherited a SharePoint farm that was not set up using best practices. Your manager is a
Certified Information Systems Security Professional (CISSP) and advocates security best practices. He
would like you to explore the service account permissions and SSL settings of the SharePoint server and
possibly change these settings to use specific service accounts. He would also like you to install SSL to
secure the metadata that is traveling between the clients and servers.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
2.
3.
4.
5.
Open the Services console, and then observe the identity that is used by the SharePoint 2010 Timer
service.
Open Internet Information Services (IIS) Manager, and then observe the identity of the
SharePoint Central Administration v4 application pool.
In Central Administration, click the Security link, and then navigate to the Managed Accounts page.
Register a managed account using the user name CONTOSO\SP_Admin and the password
Pa$$w0rd.
In Central Administration, click the Security link, and then navigate to the Service Accounts page.
Change the Farm Account to use the managed account CONTOSO\SP_Admin.
Open the Services console, and then confirm that the SharePoint 2010 Timer service is now using
the account SP_ Admin.
Switch to Internet Information Services (IIS) Manager, and then confirm that the SharePoint
Central Administration v4 application pool is now using the account, SP_Farm.
Switch to SharePoint 2010 Central Administration, and then browse to the Password
Management Settings page.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
Confirm that the Last password change column of the CONTOSO\SP_Farm row indicates that the
password was changed.
Results: After completing this exercise, you should have changed the farm account, reset its
password, and configured the password change policy.
10
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
2.
3.
4.
5.
In the CONTOSO\SP_Farm row, click the Edit icon. Observe the warning that appears at the top of
the page that reminds you that Central Administration is not using encryption.
Start Server Manager using the Run as different user option. Enter the user name
CONTOSO\Administrator and the password Pa$$w0rd.
Add the Active Directory Certificate Services role, including the role services Certification
Authority and Certification Authority Web Enrollment. Accept all other defaults as you configure
the role with the Add Role Wizard.
In Server Manager, expand Roles, expand Web Server (IIS), and then click Internet Information
Services (IIS) Manager.
In the Connections panel, select SP2010-WFE1, and in the IIS section, double-click Server
Certificates.
In the Actions panel, click Create Domain Certificate. Create a domain certificate with the following
specifications:
Organization: Contoso
City/locality: Redmond
State/province: WA
Country/region: US
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
Create a binding for the SharePoint Central Administration v4 site with the following
specifications:
Type: https
Port: 10000
Click the Security link, and then browse to the Managed Accounts page.
Observe that the warning message you observed in Task 1 no longer appears.
11
12
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
Scenario
Your company Contoso has adopted SharePoint 2010 for many reasons. One is its new, more optimized
service application environment and another is its ability to manage metadata. You want to allow sites in
the client-facing Web application to use managed metadata and keywords, but you do not want
managed metadata and keyword columns in the client Web application to have visibility into terms used
internally. Therefore, you must configure a separate Managed Metadata Service for the client Web
application.
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
2.
3.
4.
Open SharePoint 2010 Central Administration, click Application Management, and then browse
to the Manage Service Applications page.
Create a new Managed Metadata Service application with the following specifications:
Add this service application to the farms default list: Clear this option
Click the Application Management link, browse to the Service Application Associations page.
Edit the default application proxy group. Verify that the Managed Metadata Clients application
connection is removed from the proxy group.
Create a custom application proxy group for the SharePoint intranet.contoso.com80 Web
application with the following service applications:
Observe that there is an application proxy group labeled custom assigned to the intranet Web
application.
Click the Application Management link, and then browse to the Manage Service Applications
page.
Publish the Managed Metadata Clients service application. Select the Publish the Service
Application to other farms option.
Because this lab contains only one farm, you cannot configure a trust relationship.
13
14
Lab Instructions: Configuring and Securing SharePoint Services and Service Applications
Results: After this exercise, you should have configured a new managed metadata service
application, modified the default proxy group, and created a custom application proxy group.
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
Module 9
Lab Instructions: User Profiles and Social Networking
Contents:
Lab: A: Configuring User Profiles
Exercise 1: Creating a User Profile Service Application
10
12
14
Scenario
Your corporation has never had an employee directory despite the multiple requests of the Human
Resources department. Since implementing SharePoint 2010, the Human Resources department has again
requested the directory be implemented using SharePoint user profiles. Previous IT policies prevented
making changes to Active Directory and forced the creation of a separate Human Resources database of
user information. You have been tasked to set up user profiles in the new farm using Active Directory as
the primary data source and integration with profile properties that come from the secondary HR data
source.
Start 10174A-CONTOSO-DC-D.
2.
2.
3.
4.
5.
Reset IIS.
6.
In IIS Manager, ensure that the SharePoint Web Services Root application pool is started. Then
close IIS Manager.
This step is necessary because memory limitations in the lab environment may prevent the
application pool from starting automatically. This problem would manifest itself as a WCF error later
in this lab.
In Central Administration, click the Application Management link and then navigate to the Manage
Service Applications page.
Create a new User Profile Service Application with the following configuration:
In Central Administration, click System Settings and then navigate to the Services on Server page.
Start the user profile service. Then start the user profile synchronization service. When prompted
to select the user profile application, select user profile service application, and enter the password,
Pa$$w0rd.
Click Monitoring and then navigate to the Timer Job Status page. Click Running Jobs and then
monitor the page. Press F5 to refresh the page. Repeat this step until the
ProfileSynchronizationSetupJob appears.
Note: It can take up to 5 minutes for the ProfileSynchronizationSetupJob to appear on the Running
Jobs list. If you dont see the job start, re-start the timer service, but be sure you DO NOT restart it if
this job is running.
Monitor the page. Press F5 to refresh the page. Repeat this step until the
ProfileSynchronizationSetupJob disappears.
Note: It can take up to 15 minutes for the ProfileSynchronizationSetupJob to complete.
Navigate to the Job History page. Confirm that the Status of ProfileSynchronizationSetupJob is
Succeeded.
Click the System Settings link and then navigate to the Services on Server page. Confirm that the
Status of the user profile synchronization service is Started. Close SharePoint 2010 Central
Administration.
Open the Services console. Confirm that the following services are started:
If a service is not started, then press F5 to refresh the view. Repeat this step until the services have
started.
Note: This can take several minutes.
Close the Windows Explorer window that is showing the MaData folder.
Start Command Prompt using the Run as administrator option. Type iisreset, and then press
ENTER. After the command has completed, close Command Prompt.
In Central Administration, click Application Management and then navigate to the Manage Service
Applications page. Open the Manage Profile Service page for user profile service application.
If an error is displayed, it is probably because the Web services have not completed startup following
the IISRESET operation. Press F5 to refresh the page until the error disappears.
Confirm that there are numbers on the right side of the page, which indicates that the service
application is running. Then close Central Administration.
Results: After completing this exercise, you should have created a new User Profile Service
Application and started all services related to user profile synchronization.
2.
3.
4.
5.
6.
7.
8.
Start Active Directory Users and Computers using the Run as a different user option. Enter the
user name, CONTOSO\Administrator, and the password, Pa$$w0rd.
Use the Delegation of Control Wizard to delegate the user account, CONTOSO\SP_Farm, permission
for Replicating Directory Changes for the contoso.com domain. Then close Active Directory Users
and Computers.
In Central Administration, click Application Management, click Manage service applications, and
then open the Manage Profile Service page for user profile service application. Create a new
synchronization connection with the following configuration:
Password: Pa$$w0rd
Containers to synchronize: the People, SharePoint, and Users organizational units (OUs)
In Central Administration, open the Manage Profile Service page for user profile service
application. Add a new user property with the following configuration:
Name: City
Replicable: Yes
Display the property in the profile properties section of the users profile page, on the Edit Details
page, and in the newsfeed
Tip: l (lowercase L) is the Lightweight Directory Access Protocol (LDAP) name for the locale, or city
attribute.
In Central Administration, open the Manage Profile Service page for user profile service
application. Start a full synchronization of user profiles.
Monitor the progress of synchronization. The synchronization job will take a few moments to start,
and then will take 10-15 minutes to complete. When the job is complete, confirm that the Number
of user profiles is 53, and confirm that Profile Synchronization Status displays Idle.
Find the profile for SP_Admin. Confirm that the City attribute has no value.
Start Active Directory Users and Computers using the Run as different user option. Enter the user
name, CONTOSO\Administrator, and the password, Pa$$w0rd.
Open the properties of the SharePoint Administrator account, in the SharePoint OU. Change the
City property to Seattle.
In Central Administration, open the Manage Profile Service page for user profile service
application. Start an incremental synchronization of user profiles.
Monitor the progress of synchronization. The synchronization job will take a few moments to start,
and then will take a few minutes to complete. When the job is complete, the Profile
Synchronization Status displays Idle.
Find the profile for SP_Admin. Confirm that the City attribute is Seattle.
Results: After completing this exercise, you should have configured and performed user profile
synchronization.
2.
3.
4.
5.
6.
7.
8.
9.
In Central Administration, click Application Management, click Manage service applications, and
then open the Manage Profile Service page for user profile service application.
Add a new user property with the following configuration. Type the text exactly as shownbe careful
about the inclusion and exclusion of spaces.
Name: EmployeeID
Type: integer
Replicable: Yes
Display the property in the profile properties section of the users profile page, and on the Edit
Details page.
Start the Microsoft SQL Server 2008 R2 SQL Server Management Studio using the Run as different
user option. Enter the user name, CONTOSO\Administrator, and the password, Pa$$w0rd.
Click Connect.
Add a login for the AdventureWorks database for CONTOSO\SP_Admin. Assign the login the
db_owner database role. Repeat the step for CONTOSO\SP_Farm.
Start Microsoft SharePoint Designer 2010, and then open the site,
http://intranet.contoso.com/sites/IT. Wait for the site to open. When prompted for credentials, use
Contoso\SP_Admin with the password of Pa$$w0rd.
Create a new external content type named AdventureWorks. Connect to the SQL Server, SP2010WFE1, and to the database, AdventureWorks. Select the Employee table and Create All
Operations. Save the external content type, and then close SharePoint Designer.
In Central Administration, navigate to the Manage Service Applications page, and then click
Business Data Connectivity Service.
Set permissions on the AdventureWorks content type so that All Authenticated Users have all
available permissions.
In Central Administration, open the Manage Profile Service page for User Profile Service
Application.
In Central Administration, open the Manage Profile Service page for User Profile Service
Application.
Name: Gender
Replicable: Yes
Display the property in the profile properties section of the users profile page, and on the Edit
Details page
Attribute: Gender
Find the profile for CONTOSO\SP_Admin. Change Employee ID to 1, and confirm that Gender is
blank.
In Central Administration, open the Manage Profile Service page for User Profile Service
Application. Start a full synchronization of user profiles.
Monitor the progress of synchronization. The synchronization job will take a few moments to start,
and then will take 10-15 minutes to complete. When the job is complete, confirm that the Number
of user profiles is 34, and confirm that Profile Synchronization Status displays Idle.
Find the profile for SP_Admin. Confirm that the Gender attribute is M.
Question: What group does the farm account have to be in in order for user profile synchronization to
work?
Results: After completing this exercise, you should have configured and performed profile attribute
synchronization from an external source.
10
2.
3.
4.
5.
6.
Configure My Sites.
7.
In Central Administration, create a new Web application with the following configuration:
Port: 80
Create a new site collection in the Web application with the following configuration:
Create a new site collection in the My Site Host Web application with the following configuration:
URL: http://mysites.contoso.com/sites/Search
Add a wildcard inclusion managed path named personal to the SharePoint mysites.contoso.com80 Web application.
Enable self-service site creation for the SharePoint - mysites.contoso.com80 Web application.
In Central Administration, open the Manage Profile Service page for User Profile Service
Application. Set up My Sites using the following configuration:
Location: personal
Open a new tab in Internet Explorer, and then browse to http://intranet.contoso.com. Add the
Domain Users group to the Contoso Intranet Visitors group.
11
12
2.
3.
Open Internet Explorer, and then browse to http://intranet.contoso.com. Click the logon menu,
Dan Jump, and then click My Profile.
Note: If My Profile is not visible, click My Settings, and then click My Profile.
Click My Content. A My Site is created. The Processing screen may display for 1 to 2 minutes.
Value
About me
Mobile phone
206-555-1234
Home phone
725-555-1234
Office Location
New Tower
Time Zone
Past projects
SharePoint 2007
Skills
Public Speaking
Schools
University of SharePoint
Birthday
January 1
Employee ID
On the profile page, click More information. Observe that the newly populated profile properties are
now visible.
Results: After completing this exercise, you should have created a My Site for Dan Jump, and
modified his user profile.
13
14
Add colleagues.
2.
Track colleagues.
3.
Configure membership.
4.
5.
6.
7.
Click the Colleagues tab and then add Contoso\LolaJ as a colleague. Do not add any additional
suggested colleagues.
Click the Jump, Dan link and then sign in as a different user. Sign in as Contoso\LolaJ with the
password of Pa$$w0rd.
Employee ID: 3
In the address bar, type http://intranet.contoso.com/Sites/IT. The Error: Access Denied page
opens.
Click Site Actions, and then click Site Permissions. Grant Contoso\Danj permissions to the site by
adding him to the Information Technology Members [Contribute] group.
Open the Information Technology Members page, and then make this group the default group for
the site.
Open SharePoint 2010 Central Administration. When prompted for credentials, provide
Contoso\SP_Admin with the password of Pa$$w0rd.
In Central Administration, click the Monitoring link and then under Timer Jobs, click Review job
definitions. Enable and run the following jobs:
Click Organization Browser and view Dan Jumps organization structure and profile.
My Newsfeed
My Profile
Memberships
Information Technology
Results: After this exercise, you should have configured various social networking features.
2.
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
3.
15
Module 10
Lab Instructions: Administering and Configuring SharePoint
Search
Contents:
Lab A: Configuring Search
Exercise 1: Creating Content for Search
10
12
14
16
18
Lab A: Config
guring Search
Sccenario
Yo
ou have installled a new SharePoint 2010 farm
f
to addresss the needs off employees att Contoso, Ltd., to
se
earch for information across both intranet sites and sharred folders. You have been asked
a
to prototype a
Sh
harePoint searrch capability on
o the Informa
ation Technolo
ogy Department Web site an
nd, based on your
y
exxperience with
h the prototype
e, to configure
e SharePoint to
o support searrch requiremen
nts.
f Log on to
o the virtual machine fo
or this lab
Start 10174A-CONT
TOSO-DC-E.
After CONTOSO-DC
has completed startup, startt 10174A-SP20
C
010-WFE1-E.
Create a file named C:\Data\Temporary Drafts\Crawl Rules.txt with the following text:
SharePoint crawl rules allow you to manage the content that is included and excluded.
In the Information Technology Department Web, attempt to create a new site with the following
settings:
Site definition: Enterprise Search Center
Title: Search Center
URL: Search
An error message appears.
The SharePoint Server Publishing Infrastructure feature must be active to create a Web using the
Enterprise Search Center site definition. You can create a Web using the Basic Search Center site
definition without activating the SharePoint Server Publishing Infrastructure feature.
The SharePoint Server Standard Site Collection Features feature must also be active before you can
create a Web with either site definition.
Enable the SharePoint Server Publishing Infrastructure feature for the Information Technology site
collection.
In the Information Technology Web, create a new site with the following settings:
Site definition: Enterprise Search Center
Title: Search Center
URL: Search
In SharePoint 2010 Central Administration, open the Search Service Application and create a
content source with the following settings:
Name: Shared Folder - Data
Content source type: File Shares
Start address: \\sp2010-wfe1.contoso.com\Data
Start full crawl of this content source: Selected
Monitor the crawl status of the Shared Folder - Data content source until the full crawl is complete.
Tip: The full crawl takes two to four minutes.
In SharePoint 2010 Central Administration, edit the Shared Folder - Data content source. Create a
schedule for full crawls that runs every hour.
Start a full crawl of the content source Shared Folder - Data. Monitor the crawl status until the crawl
is complete.
Tip: The full crawl takes two to four minutes.
In SharePoint 2010 Central Administration, add a file type for files with the extension pdf.
Start a full crawl of the content source Shared Folder - Data. Monitor the crawl status until the crawl
is complete.
Tip: The full crawl takes two to four minutes.
Results: After this exercise, you should have created a file type for PDFs.
In SharePoint 2010 Central Administration, open the crawl log of the Shared Folder - Data content
source. Examine the crawl history of the content source. Examine the list of URLs that have been
indexed in the content source.
Locate the URL for the file SharePoint Governance checklist.pdf. If the file does not appear on the
list of indexed URLs, wait a few moments, and then click the Search button.
Configure the default content access account as CONTOSO\SP_Crawl with the password Pa$$w0rd.
Create a server name mapping that presents content indexed in the content source \\sp2010wfe1.contoso.com with the URL \\localhost.
Start a full crawl of the content source Shared Folder - Data. Monitor the crawl status until the crawl
is complete.
Tip: The full crawl takes two to four minutes.
In SharePoint 2010 Central Administration, browse to the Host Distribution Rules page.
SharePoint notifies you that host distribution rules cannot be applied to a farm with only one crawl
database.
In SharePoint 2010 Central Administration, create a crawler impact rule for the site SP2010-WFE1
that requests one document at a time and waits 30 minutes between requests.
Results: After this exercise, you should have configured a variety of search settings.
10
Start a full crawl of the content source Local SharePoint sites. Monitor the crawl status until the
crawl is complete.
Tip: The full crawl takes four to six minutes.
In SharePoint 2010 Central Administration, add a new managed property named ContosoSummary
mapped to the crawled property ows_Summary(Text). Select the Allow this property to be used in
scopes option.
Tip: When adding the mapping to the crawled property ows_Summary(Text), select SharePoint
from the category list.
11
In SharePoint 2010 Central Administration, monitor the crawl status of the Local SharePoint sites
content source until the crawl status is Idle.
In the Search Center, click Advanced to open the Advanced Search page. Perform a search with the
property Summary containing the text Contoso.
The file IT Policies and Procedures for SharePoint 2010 is listed as the result.
Results: After this exercise, you should have created a new managed property and customized the
advanced Search Center to expose a capability to search with the new property.
12
In SharePoint 2010 Central Administration, click the Scopes link, and then create a search scope
named Shared Files.
Add a scope rule for the Shared Files scope that defines the scope as content from the Shared
Folder Data content source.
On the Search Administration page, launch a scope update.
On the scopes list, monitor the Update Status of the Shared Files scope until the scope is Ready.
Modify the search settings for the Information Technology Department site collection to enable
custom scopes by connecting the site to the Search Center at
http://intranet.contoso.com/sites/IT/Search/Pages. Configure the site collection to show the
Scopes drop-down.
Configure the site collection search scopes to include the Shared Files scope in the Search
Dropdown display group.
13
Lab B:
B Tuning Share
ePoint Search
Sccenario
During the testiing of the prottotype Search Center on the
e Information Technology
T
De
epartment We
eb
Se
earch Center, users
u
complain
ned that the re
elevance of ressults was not accounting
a
forr the fact that the
t
m
most
importantt files are, at th
his point, the fiiles stored in shared
s
folders. Users also pointed out thatt
se
earches with sp
pecific keyworrds should yield
d predefined results
r
that are
e likely to be most
m
useful, an
nd that
ce
ertain keyword
ds should be trreated as syno
onyms. Finally, the governancce committee added a requirement
th
hat you preven
nt searches using keywords that
t
are frowned on by Conttosos employe
ee ethics policies. You
arre tasked with refining Share
ePoint Search to
t meet these expectations.
14
Add a search keyword to the Information Technology Department site collection with the following
settings:
Keyword Phrase: SharePoint
Best Bet URL: http://sharepoint.microsoft.com
Best Bet Title: Microsoft SharePoint Server Home Page
Keyword Definition: Microsoft SharePoint Server is the business collaboration platform for
the enterprise and the Internet
On the search results page, edit the Search Best Bets Web Part, and in its properties panel, click XSL
Editor.
The Search Best Bets Web Part properties panel is displayed on the right.
Tip: You might need to scroll to the right, and to the top, to see the properties panel.
<br/>
</div>
</xsl:if>
<xsl:if test="$DisplayUrl = 'True'" >
<span class="srch-BB-URL">
<a href="{$url}" id="{concat('BBR_U_',$id)}" dir="ltr">
<xsl:value-of select="$url"/>
</a>
</span>
<br/>
<br/>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>
After making your changes to the Web Part, click Save & Close.
15
16
In the Search Center, perform searches with the following keywords. Write down the exact number of
results that are returned:
SharePoint
MOSS
WSS
SharePoint Foundation
Tip: If the number of results is reported as an approximate number, page through the results so that
you can identify the exact number of results that were returned.
In the Search Center, perform a search for the keyword sharepoint. Record the number of results.
Tip: If the number of results is reported as an approximate number, page through the results so that
you can identify the exact number of results that were returned.
Perform a search for the keyword MOSS. Verify that the number of results is equal to the number of
results returned when you searched for sharepoint.
Search results appear because searching for MOSS now produces search results for SharePoint
through replacement.
Perform a search for the keyword WSS. Write down the number of results.
More results appear than in Task 1 because searching for WSS also returns results for the term
SharePoint Foundation because of expansion.
Results: After this exercise, you should have modified the English thesaurus file.
17
18
Perform a search.
Update a noise words file.
Restart the Search service.
Test the noise word.
Results: After this exercise, you should have added new noise words and validated the behavior of
noise words.
Module 11
Lab Instructions: Implementing Office Web Apps
Contents:
Exercise 1: Installing and Configuring Office Web Apps
Sccenario
Co
ontosos strate
egic objectivess for the year set
s a target forr improved em
mployee produ
uctivity. ShareP
Point
20
010s collabora
ation features are a pivotal component
c
to achieving thiss objective. On
ne initiative rellated to
th
his project is to
o provide Micrrosoft Office cllient applicatio
on functionalitty to users in a variety of sce
enarios,
in
ncluding remotte users on pe
ersonal computters that may not have Microsoft Office in
nstalled. You ha
ave
be
een tasked witth installing, co
onfiguring, and testing Officce Web Apps to
t improve end
d user producttivity.
Start 10174
4A-CONTOSO
O-DC-D.
After CONT
TOSO-DC has completed sta
artup, start 101
174A-SP2010
0-WFE1-D.
Click Application Management, and then on the Service Application Associations page, ensure that
both PowerPoint Service Application and Word Viewing Service service application connections
are included in the default application proxy group.
Results: After completing this exercise, you should have installed and configured Office Web Apps.
In Internet Explorer, refresh the view of the Shared Documents document library, and then verify
that SharePoint Governance Plan appears
Module 12
Lab Instructions: Installing and Upgrading to SharePoint
2010
Contents:
Lab A: Preparing SharePoint 2007 for Upgrade to SharePoint 2010
Exercise 1: Performing SQL Server Database Maintenance
11
12
14
Lab A:
A Prepa
aring Sh
harePo
oint 200
07 for Upgrade
e to
Share
ePoint 2010
2
f Lo
og on to the
e virtual machine for this lab
1..
2..
Start 10174
4A-CONTOSO
O-DC-F.
After CONT
TOSO-DC has completed sta
artup, start 101
174A-SP2007
7-WFE1-F.
2.
Click Start, click All Programs, click Microsoft SQL Server 2008 R2, and then click SQL Server
Management Studio.
Click Connect.
Click File, click Open, and then click File.
Select D:\Labfiles\Lab12\DefragIndexes.sql, and then click Open.
In the Available Databases list on the toolbar, select WSS_Content_Intranet.
Click Execute. When the query is complete, the status below the Results panel indicates Query
executed successfully. You may have to expand the results window to see the results.
Repeat steps 6 and 7 for the following databases:
3.
4.
5.
6.
7.
8.
9.
WSS_Content_Intranet_IT
WSS_Content_MySites
SharePoint_AdminContent_GUID
SharePoint_Config
Open Windows Explorer and confirm that there is at least 20 gigabytes of free disk space on C drive.
Close Windows Explorer.
2.
Click Start, click All Programs, click Microsoft Office Server, and then click SharePoint 3.0 Central
Administration. If prompted for credentials, provide Contoso\Administrator as the user name and
Pa$$w0rd as the password.
Click the Application Management tab, and then create a new site collection with the following
settings:
Title: Sales
URL: Sales
3.
To open the site listing in Notepad, type the following command and press ENTER:
notepad C:\SiteList.xml
4.
5.
6.
7.
8.
Confirm that the only remaining Site element is for the Sales site collection.
Click File, and then click Save.
Close Notepad.
Switch to Administrator: Command Prompt.
To move the Sales site collection from the WSS_Content_Intranet content database to the
WSS_Content_Sales content database, type the following command, and then press ENTER:
"C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\12\Bin\stsadm.exe" -o mergecontentdbs -url http://intranet.contoso.com sourcedatabasename WSS_Content_Intranet -destinationdatabasename
WSS_Content_Intranet_Sales -operation 3 -filename C:\SiteList.xml
9.
2.
3.
4.
Switch to Internet Explorer. Press F5 to refresh the page. If the Windows Security dialog opens,
type CONTOSO\Administrator in the User name box, type Pa$$w0rd in the Password box, and
then click OK.
Observe that the WSS_Content_Sales content database now contains one site.
Switch to Administrator: Command Prompt.
To export an XML listing of sites in the intranet Web application, type the following command:
"C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\12\Bin\stsadm.exe" -o enumsites -url http://intranet.contoso.com >
C:\SiteList.xml
5.
6.
7.
8.
9.
go
11. Repeat steps 69 to back up and truncate the WSS_Content_Intranet_Sales database. Use the
following query:
use WSS_Content_Intranet_Sales
dbcc shrinkfile ('WSS_Content_Intranet_Sales')
dbcc shrinkfile ('WSS_Content_Intranet_Sales_log')
go
backup database WSS_Content_Intranet_Sales to disk =
'C:\Backups\WSS_Content_Intranet_Sales.bak'
go
backup log WSS_Content_Intranet_Sales to disk =
'C:\Backups\WSS_Content_Intranet_Sales_log.bak'
go
dbcc shrinkfile ('WSS_Content_Intranet_Sales')
dbcc shrinkfile ('WSS_Content_Intranet_Sales_log')
go
12. Repeat steps 69 to back up and truncate the WSS_Content_MySites database. Use the following
query:
use WSS_Content_MySites
dbcc shrinkfile ('WSS_Content_MySites')
dbcc shrinkfile ('WSS_Content_MySites_log')
go
backup database WSS_Content_MySites to disk = 'C:\Backups\WSS_Content_MySites.bak'
go
backup log WSS_Content_MySites to disk = 'C:\Backups\WSS_Content_MySites_log.bak'
go
dbcc shrinkfile ('WSS_Content_MySites')
dbcc shrinkfile ('WSS_Content_MySites_log')
go
13.
14.
15.
16.
Switch to SharePoint 3.0 Central Administration. Click the Operations link, and then from the
Backup and Restore section perform a backup.
2.
3.
4.
5.
3.
4.
5.
6.
7.
10
L B: Upgrading
Lab
U
SharrePoint 2007 to
o Share
ePoint 2
2010
f Lo
og on to the
e virtual machine for this lab
1..
2..
Start 10174
4A-CONTOSO
O-DC-F.
After CONT
TOSO-DC has completed sta
artup, start 101
174A-SP2007
7-WFE1-G.
11
2.
3.
4.
5.
In SharePoint 2010 Central Administration, on the Upgrade Status page, confirm that Status is
Succeeded. You might need to wait a few minutes before the upgrade completes. Press F5 to refresh
the page, and then return to step 1.
Observe the number of Errors and Warnings. There should be no errors. However, warnings are
expected.
Identify the Log File that contains a record of events during the upgrade.
Open the log file in Notepad.
Press CTRL+F, and then type [Warning].
Tip: Include the brackets.
6.
7.
8.
12
7.
7.
13
14
On the information bar, click View or modify this sites Visual Upgrade settings.
Click Use the previous user interface, and then click OK.
Click the Home tab.
In the Quick Launch, click Calendar.
Observe the SharePoint 2007 user interface.
Module 13
Lab Instructions: Implementing Business Continuity
Contents:
Lab A: Implementing a Backup Strategy
Exercise 1: Backing Up SharePoint Using Central Administration
10
11
13
Lab A: Imple
ementin
ng a Ba
ackup Strategy
y
Sccenario
Co
ontosos Share
ePoint governa
ance plan requ
uires that sites be backed up
p regularly. You have been asked to
de
emonstrate the out of box backup
b
functio
onality of Share
ePoint Server 2010,
2
and to create
c
an autom
mated,
niightly backup of the SharePo
oint farm.
Start 10174
4A-CONTOSO
O-DC-E.
After CONT
TOSO-DC has completed sta
artup, start 101
174A-SP2010
0-WFE1-E.
Create a new folder, C:\SharePointBackup. Assign NTFS permissions that allow the Users group Full
Control. Share the folder with the share name, SharePointBackup, and with share permissions that
allow the Everyone group Full Control.
Note: In a production environment, you should configure NTFS permissions that ensure the least
privilege access to the folder. The service account that performs the backup operation should be
given Full Control permission to the backup share.
Open SharePoint 2010 Central Administration, click the Backup and Restore link, and then
browse to the Perform a Backup page. Observe the components that can be backed up:
Farm
WSS_Administration
SPUserCodeV4
Shared Services
The Backup and Restore Job Status page opens. The page refreshes every few seconds. You can click
Refresh to refresh the page manually.
Results: After this exercise, you should have backed up the intranet Web application using Central
Administration.
Switch to Microsoft Windows Explorer and browse to C:\SharePointBackup, and then open the
file, spbrtoc.xml, in Microsoft Notepad. Examine the file, which is similar to the following:
<?xml version="1.0" encoding="utf-8"?>
<SPBackupRestoreHistory>
<SPHistoryObject>
<SPId>GUID of operation/SPId>
<SPRequestedBy>CONTOSO\SP_Admin</SPRequestedBy>
<SPBackupMethod>Full</SPBackupMethod>
<SPRestoreMethod>None</SPRestoreMethod>
<SPStartTime>Start Date and time</SPStartTime>
<SPFinishTime>End Date and time</SPFinishTime>
<SPIsBackup>True</SPIsBackup>
<SPConfigurationOnly>False</SPConfigurationOnly>
<SPBackupDirectory>\\SP2010-WFE1.contoso.com\
SharePointBackup\
spbr0000\</SPBackupDirectory>
<SPDirectoryName>spbr0000</SPDirectoryName>
<SPDirectoryNumber>0</SPDirectoryNumber>
<SPTopComponent>Farm\Microsoft SharePoint Foundation
Web Application\SharePoint
intranet.contoso.com80</SPTopComponent>
<SPTopComponentId>GUID of top component</SPTopComponentId>
<SPWarningCount>1</SPWarningCount>
<SPErrorCount>0</SPErrorCount>
</SPHistoryObject>
</SPBackupRestoreHistory>
Close Notepad.
Open the spbr0000 folder, and then observe the backup (*.bak) files in the folder.
Close Notepad.
Examine the log. Observe that each of the backup operations is listed, including the T-SQL commands
that were sent to SQL Server.
Observe the last lines of the log, which indicate that the backup completed and summarize the
number of warnings and errors.
Navigate to the top of the log, and then use the Find command to find the text, Warning:.
Tip: Include the colon.
Write down the warning message.
Navigate to the top of the log, and then use the Find command to find the text, BACKUP
DATABASE. Observe the command that was sent to SQL Server to back up one of the SharePoint
databases.
Answer the following questions:
Which database backup (.bak) file in the backup folder contains that SharePoint database?
Repeat step 5 to identify the database backup file that contains the backup of the WSS_Content_IT
database.
Close Notepad.
Results: After this exercise, you should have investigated the files and logs in the SharePoint backup
share. You should also have identified the database that is a backup of the SQL database,
WSS_Content_IT.
Run the script as Contoso\SP_Farm and choose the option to Run whether user is logged on
or not.
Switch to SharePoint 2010 Central Administration, and then browse to the Backup and Restore
Job Status page.
Refresh the page and examine the information that is presented on the page.
Browse to the Backup and Restore History, and then examine the information that is presented.
Return to the Backup and Restore Job Status page, and then wait for the Phase to be Completed
before continuing to the next lab.
Allow the backup operation to continue until it has completed. You will use the same virtual machines
in the next lab to perform restore operations.
L B: Im
Lab
mpleme
enting a Restorre Strategy
Sccenario
Yo
ou have recently configured
d an automated
d, nightly backkup of your Sh
harePoint farm
m. The SharePoint
go
overnance pollicy requires yo
ou to test yourr backups everry 60 days. You
u have been ta
asked with testting the
m
most
recent bacckup by restorring it to a stag
ging environm
ment. You mustt also verify that you can perrform a
pa
artial restore of
o a site collecttion, site, and list.
10
Open SharePoint 2010 Central Administration, click Application Management, and then browse
to the Web Applications Management page.
Delete the Web application, SharePoint - intranet.contoso.com80, including its content databases
and IIS Web sites.
Switch to SharePoint 2010 Central Administration, and then browse to the Restore from Backup
page.
Select the most recent Farm backup, and then click Next.
Select the SharePoint - intranet.contoso.com80 Web application to restore, and then click Next.
Select the Same configuration restore option, and configure the login password for the
CONTOSO\SP_ServiceApp account as Pa$$w0rd.
Start the restore operation. Monitor its status until the Phase shows as Completed.
Switch to Internet Explorer, and then browse to http://intranet.contoso.com. Verify that the
intranet site opens.
Results: After this exercise, you should have deleted and then restored a SharePoint Web application.
Open the SharePoint backup folder, and then open the file, Spbrtoc.xml, in Notepad. Examine the
file to discover the following:
Close Notepad.
Close Notepad.
Observe the last lines of the log, which indicate that the backup completed and summarizes the
number of warnings and errors.
Navigate to the top of the log, and then use the Find command to find the text, Progress: Starting
Restore.
This step locates the beginning of the restore operation.
Navigate to the top of the log, and then use the Find command to find the text, Warning:.
Tip: Include the colon.
Write down the warning message.
11
12
Navigate to the top of the log, and then use the Find command to find the text, RESTORE
DATABASE. Observe the command that was sent to SQL Server to back up one of the SharePoint
databases.
Answer the following questions:
Which database backup (.bak) file in the backup folder contains that SharePoint database?
Close Notepad.
Results: After this exercise, you should have investigated the restore logs in the SharePoint backup
share.
13
Open SQL Server Management Studio as Contoso\Administrator with the password of Pa$$w0rd.
In the Select the backup sets to restore box, select the check box next to
WSS_Content_Intranet_IT.
Tip: If you do not see WSS_Content_Intranet_IT listed, it is because you did not restore the correct
database. Return to Lab A, Exercise 2, Task 2 to identify the database that contains
WSS_Content_Intranet_IT. Then repeat Task 1 of this exercise.
Switch to the instance of Internet Explorer that displays the intranet site.
Switch to SharePoint 2010 Central Administration, click the Backup and Restore link, and then
browse to the Unattached Content Database Recovery page.
After you start the export, monitor the Granular Backup Job Status page until the job is complete.
14
Open SharePoint 2010 Management Shell as Contoso\SP_Farm with the password of Pa$$w0rd.
To do this, hold down the SHIFT key, right-click SharePoint 2010 Management Shell and then click
Run as different user.
Switch to the instance of Internet Explorer that displays the Information Technology Dept Web.
Confirm that the Shared Documents document library is restored.
Switch to SharePoint 2010 Central Administration, and then browse to the Unattached Content
Database Recovery page.
Object: /sites/it/Announcements
After you start the export, monitor the Granular Backup Job Status page until the job is complete.
Switch to the instance of Internet Explorer that displays the Information Technology Dept Web.
Confirm that the Announcements list is restored.
Results: After this exercise, you should have restored a deleted SharePoint document library and list.
Right-click the virtual machine name in the Virtual Machines list, and then click Revert.
Module 14
Lab Instructions: Monitoring and Optimizing SharePoint
Performance
Contents:
Lab A: Configuring SharePoint Monitoring
Exercise 1: Configuring SharePoint Diagnostic Logging
10
Lab A: Confiiguring
g ShareP
Point Monitor
M
ring
Sccenario
Co
ontosos Share
ePoint governa
ance plan speccifies levels of monitoring fo
or the development and prod
duction
en
nvironments th
hat differ from
m the out of bo
ox settings. You have been ta
asked with con
nfiguring mon
nitoring
an
nd with demonstrating how developers ca
an use monitorring to trouble
eshoot errors generated
g
by their
t
co
ode.
f Lo
og on to the
e virtual machine for this lab
1..
2..
Start 10174
4A-CONTOSO
O-DC-D.
After CONT
TOSO-DC has completed sta
artup, start 101
174A-SP2010
0-WFE1-D.
Leave the virtual machines running. You will use them in the next lab.
L B: Analyzin
Lab
A
ng Share
ePoint Health
H
Sccenario
Yo
ou have just in
nstalled a SharePoint 2010 fa
arm. When you
u open Centra
al Administratio
on, an error message
m
ap
ppears at the top
t of the pag
ge that indicate
es an error in configuration.
c
The SharePoin
nt governance
e plan
m
mandates
that SharePoint
S
farms at Contoso
o should be de
eployed using Microsoft-reco
ommended be
est
prractices. You have
h
been taskked with determ
mining the cau
use of the erro
or message and correcting th
he
co
onfiguration of
o the farm.
Open SharePoint 2010 Central Administration, click the Monitoring link, and browse to the
Review problems and solutions page. Observe the list of reported problems.
Click the Monitoring link, and then browse to the Health Analyzer Rule Definitions page. Observe
the four categories of rules:
Security4 rules
Performance17 rules
Configuration30 rules
Availability13 rules
Tip: The list of rules is paged. Click the Next Page button, displayed as a right-pointing arrow below
the list, to see additional rules.
2.
Open the Some content databases are growing too large rule. Observe that you can change the
following attributes of the rule, but do not make any changes at this time:
Title
Scope
Schedule
Enabled
Repair Automatically
Version
Note: You cannot change the actions that the rule uses to perform its health analysis task. The rules
actions are determined by the code used to develop the rule.
3.
Configuration category: One or more categories are configured with Verbose trace logging
Results: After this exercise, you should have configured rule definitions and run two rules.
Open SharePoint 2010 Central Administration, click the Monitoring link, and browse to the
Review problems and solutions page.
Observe the list of reported problems. In the Configuration section, observe that a new problem is
reported: One or more categories are configured with Verbose trace logging.
Click the problem, and then examine the information that is presented on the problem details page.
Click Reanalyze Now to reanalyze the problem.
On the Review problems and solutions page, refresh the page until the Modified column for the
problem indicates that the rule was analyzed.
Click the One or more categories are configured with Verbose trace logging problem.
Click Repair automatically. On the Health Analyzer Reports list, refresh the page until the problem
report disappears.
Click the Monitoring link, and then browse to the Diagnostic Logging page.
Observe that the two lists, Least critical event to report to the event log and Least critical event
to report to the trace log, are reset. They no longer are set to Verbose.
For All Categories, set event log reporting level to Error and trace log reporting level to
Unexpected.
Browse to the Health Analyzer Rule Definitions page. Run the rule One or more categories are
configured with Verbose trace logging.
Browse to the Review problems and solutions page and confirm that the rule One or more
categories are configured with Verbose trace logging is not shown on the report.
Close all open applications and windows.
Results: After this exercise, you should have configured Health Analyzer rules, reviewed Health
Analyzer reports, and repaired Health Analyzer problems.
L C: Reportin
Lab
R
ng Share
ePoint Usage
U
Sccenario
Co
ontoso recently implemente
ed a systems management
m
re
eport center. You
Y are require
ed to submit reports
r
re
elated to perfo
ormance and usage.
u
You havve been tasked
d with creating
g a SharePoint performance and
ussage report that uses the SharePoint loggiing database as
a its data sourrce.
4.
Open SharePoint 2010 Central Administration. Click the Monitoring link, and then browse to the
Configure web analytics and health data collection page. Click Health Logging Schedule.
Observe the set of Health Analysis jobs. Then, run the Health Analysis Job (Daily, Microsoft
SharePoint Foundation Timer, All Servers) job.
Click the Monitoring link, and then browse to the Configure web analytics and health data
collection page. Click Log Collection Schedule. Run the following jobs: Microsoft SharePoint
Foundation Usage Data Import and Microsoft SharePoint Foundation Usage Data Processing.
Log off of SP2010-WFE1.
Results: After this exercise, you should have executed the logging timer jobs that populate the
logging database.
10
4.
5.
Database: WSS_Logging
Create a PivotTable report. In the PivotTable Field List panel, in the Choose fields to add to report
list, select the following options:
MachineName
WebApplicationName
JobTitle
Drag the Duration field from the field list to the Values box.
You now have a report of timer job durations presented by server, by webapplication, and by
timerjob.
Results: After this exercise, you should have created a usage report based on data from the
SharePoint logging database.
Module 1
Lab Answer Key: Introducing SharePoint 2010
Contents:
Exercise 1: Creating Active Directory Accounts for SharePoint
10
11
Start 10174A-CONTOSO-DC-A.
After CONTOSO-DC-A has completed startup, start 10174A-SP2010-WFE1-A.
5.
6.
7.
E-mail: SP_Farm@contoso.com
E-mail: SP_ServiceApps@contoso.com
Click Start, click All Programs, click Microsoft SQL Server 2008 R2, hold the SHIFT key and rightclick SQL Server Management Studio, and then click Run as different user.
The Windows Security dialog box appears.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Click Connect.
Expand Security.
Right-click Logins, and then click New Login.
In the Login name box, type CONTOSO\SP_Admin.
In the Select a page panel, click Server Roles.
Select the dbcreator check box.
Select the securityadmin check box.
Click OK.
Close Microsoft SQL Server Management Studio.
4.
5.
Click Yes.
The Microsoft SharePoint 2010 Products Preparation Tool appears.
6.
7.
8.
Click Next.
Select the I accept the terms of the License Agreement(s) check box.
Click Next.
The prerequisite installer prepares the server.
The Microsoft SharePoint 2010 Products Preparation Tool displays the message, There was an error
during installation. A summary of prerequisite installation status is also displayed.
2.
Press CTRL+F.
The Find dialog box appears.
3.
4.
5.
6.
7.
8.
9.
Open Notepad.
Type the following, on one line, with spaces between each switch:
/SQLNCli:PrerequisiteInstallerFiles\sqlncli.msi
/ChartControl:PrerequisiteInstallerFiles\MSChart.exe
/KB976462:PrerequisiteInstallerFiles\Windows6.1-KB976462-v2-x64.msu
/IDFXR2:PrerequisiteInstallerFiles\Windows6.1-KB974405-x64.msu
/Sync:PrerequisiteInstallerFiles\Synchronization.msi
/FilterPack:PrerequisiteInstallerFiles\FilterPack.msi
/ADOMD:PrerequisiteInstallerFiles\SQLSERVER2008_ASADOMD10.msi
/ReportingServices:PrerequisiteInstallerFiles\rsSharePoint.msi
/Speech:PrerequisiteInstallerFiles\SpeechPlatformRuntime.msi
/SpeechLPK:PrerequisiteInstallerFiles\MSSpeech_SR_en-US_TELE.msi
4.
5.
6.
7.
8.
9.
Click Yes.
Type the following commands, each followed by ENTER:
D:
CD Software\SharePointServer2010
PrerequisiteInstaller.exe
2.
3.
4.
5.
6.
7.
8.
Click Yes.
Type 36BY2-DVVJY-6426X-PXWVQ-BM342, and then click Continue.
Select the I accept the terms of this agreement check box.
Click Continue.
Click Server Farm.
On the Server Type page, click Complete, and then click Install Now.
Installation proceeds for approximately 7-10 minutes.
9.
On the Run Configuration Wizard page, clear the Run the SharePoint Products Configuration
Wizard now check box.
10. Click Close.
11. On the SharePoint installation page, click Exit.
12. Close the Windows Explorer window that is displaying the contents of the SharePointServer2010
folder.
Open D:\Software\SharePointServer2010\Files\SetupFarmSilent.
Right-click config.xml, and then click Edit.
Perform one of the following two tasks:
1.
In a production environment, you would leave the Display element with its default values
(Level=none and CompletionNotice=no) for a completely unattended installation.
In this lab, you change the values of the Display element so that installation can be monitored.
4.
5.
6.
7.
8.
Click Yes.
Type the following command on one line, and then press ENTER:
"D:\Software\SharePointServer2010\setup.exe" /config
"D:\Software\SharePointServer2010\Files\SetupFarmSilent\
config.xml"
9.
Click Start, then type %temp% and then press ENTER. Open the log named SharePoint Server
Setup*.log.
Open Task Manager, and then monitor processes including msiexec.exe, setup.exe,
mscorsvw.exe, and psconfigui.exe.
On the Run Configuration Wizard page, clear the Run the SharePoint Products Configuration
Wizard now check box.
10. Click Close.
Click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click
SharePoint 2010 Products Configuration Wizard.
The User Account Control dialog box appears.
2.
Click Yes.
After a few minutes, the SharePoint Products Configuration Wizard appears.
3.
4.
5.
6.
7.
8.
9.
10.
Click Yes.
On the Connect to a server farm page, click Create a new server farm, and then click Next.
In the Database server box, type SP2010-WFE1.
In the Username box, type CONTOSO\SP_Farm.
In the Password box, type Pa$$w0rd.
Click Next.
On the Specify Farm Security Settings page, type 10174_SharePoint_2010 in the Passphrase and
Confirm passphrase boxes, and then click Next.
11. On the Configure SharePoint Central Administration Web Application page, select the Specify
port number check box.
12. In the Specify port number box, type 9999, and then click Next.
13. On the Completing the SharePoint Products Configuration Wizard page, click Next.
The Configuring SharePoint Products page indicates the progress of configuration, which takes
approximately five minutes.
14. On the Configuration Successful page, click Finish.
Windows Internet Explorer appears and opens the Help Make SharePoint Better page. This is the
Customer Experience Improvement survey page of the SharePoint 2010 Central Administration
website.
15. Click Yes, I am willing to participate (Recommended).
16. Click OK.
17. Close Internet Explorer.
You configure SharePoint in the next exercise.
In the task bar, hold the SHIFT key and right-click Windows PowerShell, and then click Run as
administrator.
The User Account Control dialog box appears.
2.
3.
Click Yes.
Type the following command, and then press ENTER:
D:\Labfiles\Lab01\ConfigureSharePoint.ps1
The Windows PowerShell Credential Request dialog box appears to prompt you for the credentials of
the CONTOSO\SP_Farm account.
4.
5.
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
The local farm does not yet exist. It will be created by the configuration script.
You can monitor the progress of the SharePoint installation by performing these steps:
a.
b.
6.
7.
Open Task Manager, click the Processes tab, and then select the Show processes from all
users check box.
Monitor processes including powershell.exe, sqlservr.exe, and owstimer.exe.
10
Click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click
SharePoint 2010 Central Administration.
Click Yes.
After a few moments, Central Administration opens.
3.
4.
5.
6.
7.
8.
9.
11
Double-click D:\Software\SharePointLanguagePackFR\ServerLanguagePack.exe.
The User Account Control dialog box appears.
2.
3.
4.
Click Yes.
Select the Jaccepte les termes de ce contrat check box.
Click Continuer.
The language pack installs.
5.
6.
On the Excuter lAssistant Configuration page, clear the Excuter lAssistant Configuration des
produits SharePoint check box.
Click Fermer.
Click Start, then click All Programs, then click Microsoft SharePoint 2010 Products, and then click
SharePoint 2010 Products Configuration Wizard.
The User Account Control dialog box appears.
2.
Click Yes.
After a few minutes, the SharePoint 2010 Products Configuration Wizard appears.
3.
4.
Click Yes.
The farm is configured.
5.
In SharePoint 2010 Central Administration, in the Quick Launch, click System Settings.
In the Servers section, click Manage servers in this farm.
The Servers in Farm page appears.
3.
Confirm that SP2010-WFE1 has the Language Pack for SharePoint, Project Server, and Office
Web Apps 2010 - French/Franais installed.
Module 2
Lab Answer Key: Creating a SharePoint 2010 Intranet
Contents:
Exercise 1: Creating a Web Application
Start 10174A-CONTOSO-DC-B.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-B.
3.
4.
5.
6.
Click Yes.
In the Central Administration Quick Launch, click Application Management.
In the Web Applications section, click Manage web applications.
On the Web Applications tab of the ribbon, click New.
The Create New Web Application page opens.
7.
8.
9.
10.
11.
12.
In the IIS Web Site section, in the Port box, type 80.
In the Host Header box, type intranet.contoso.com.
Make no changes to the Security Configuration and Public URL sections.
In the Application Pool section, ensure that Create new application pool is selected.
In the Application pool name box, type SharePoint Web Applications.
You should use a meaningful, descriptive name for each application pool that you create.
13. In the Application Pool section, under Select a security account for this application pool, in the
Configurable list, select CONTOSO\SP_ServiceApps.
14. In the Database Name and Authentication section, in the Database Name box, type
WSS_Content_Intranet.
You should always use a meaningful name for your content databases.
15. Click OK.
The Web application and content database will be created. When it is complete, the Application
Created page opens.
16. Click OK.
The new Web application is displayed on the Web Applications Management page.
4.
5.
6.
7.
8.
9.
Click OK.
In Windows Internet Explorer, in the address bar, type http://intranet.contoso.com and then press
ENTER.
An Internet Explorer cannot display the webpage error page is displayed.
f Task 3: Add a DNS host record for the new Web application
1.
Click Start, then point to Administrative Tools, then hold the SHIFT key and right-click DNS and
then click Run as different user.
The Windows Security dialog box appears.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
In Internet Explorer, in the address bar, type http://intranet.contoso.com and then press ENTER.
An Internet Explorer cannot display the webpage error is displayed. If this error does not appear on
your system, continue to the next task.
Question: What is the cause of this error?
Answer: The DNS client has cached the negative resolution of intranet.contoso.com.
2.
3.
4.
5.
On the Contoso intranet site, click Site Actions, and then click New Page.
The New Page page opens.
2.
3.
4.
5.
5.
6.
4.
5.
6.
7.
8.
In the Template Selection section, ensure that the Team Site site definition is selected.
In the Primary Site Collection Administrator section, in the User name box, type
CONTOSO\SP_Admin.
Click OK.
The Top-Level Site Successfully Created page appears.
9.
Click OK.
2.
Spend some time reviewing and experimenting with the new site. You can make changes to the site,
but those changes will not persist after this lab.
Module 3
Lab Answer Key: Administering and Automating SharePoint
Contents:
Lab A: Automating SharePoint with Windows PowerShell
Exercise 1: Adding SharePoint Functionality to Windows PowerShell
Start 10174A-CONTOSO-DC-C
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-C.
3.
To identify the assemblies that are currently loaded, type the following command and then press
ENTER:
[AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object { Split-Path $_.Location Leaf } | Sort
Microsoft.SharePoint.dll is not in the list. To use the Microsoft SharePoint object model, you must
load the SharePoint .dll files.
4.
The output displays global assembly cache (GAC), version, and location information for the assembly.
5.
Tip: You can press the UP ARROW to scroll through previously executed commands.
The listing includes the Microsoft.SharePoint.dll.
The output lists the snap-ins that have been added to the current session. The SharePoint snap-in is
not listed.
2.
The output lists the snap-ins that are registered on the system, except for those that are installed with
Windows PowerShell.
3.
Add-PSSnapin Microsoft.SharePoint.PowerShell
4.
The output lists the snap-ins that have been added to the current session. The SharePoint snap-in is
now added.
5.
To identify the assemblies that are currently loaded, type the following command and then press
ENTER:
[AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object { Split-Path $_.Location Leaf } | Sort
Click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click
SharePoint 2010 Management Shell.
Type the following command and then press ENTER:
Get-PSSnapin
The output lists the snap-ins that have been added to the current session. The SharePoint snap-in is
already added to the session.
3.
To identify the assemblies that are currently loaded, type the following command and then press
ENTER:
[AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object { Split-Path $_.Location Leaf } | Sort
The listing demonstrates that SharePoint 2010 Management Shell preloads the SharePoint .dll files.
In SharePoint 2010 Management Shell, type the following command and the press ENTER:
$spsite = Get-SPSite "http://intranet.contoso.com"
2.
To enumerate all of the webs in the site collection, type the following command and then press
ENTER:
$spsite | Get-SPWeb
An error appears, indicating that login failed. The SP_Admin user account does not have the
permissions required to access the information about the intranet site collection with Windows
PowerShell.
f Task 2: Configure least privilege rights to manage SharePoint with Windows PowerShell
1.
Click Start, click All Programs, click Microsoft SharePoint 2010 Products, hold down the SHIFT key
and right-click SharePoint 2010 Management Shell, and then click Run as different user.
The Windows Security dialog box appears.
2.
3.
4.
5.
6.
3.
To enumerate all of the webs in the site collection, type the following command and then press
ENTER:
$spsite | Get-SPWeb
4.
To enumerate all of the webs in the site collection using the AllWebs collection, type the following
command and then press ENTER:
$spsite.AllWebs
5.
To list specific properties of the webs, type the following command and then press ENTER:
$spsite.AllWebs | Select LastItemModifiedDate, Url, Created | Sort Created
To enumerate all of the site collections in the farm, except Central Administration, type the following
command and then press ENTER:
Get-SPSite
2.
An error indicates that the Windows PowerShell Integrated Scripting Environment feature is not
installed.
An error indicates that you must run the command with elevated rights.
2.
Right-click the Windows PowerShell icon in the Windows taskbar, and then click Run as
Administrator.
A User Account Control message appears.
3.
4.
Click Yes.
Type the following two commands each followed by ENTER:
Import-Module ServerManager
Add-WindowsFeature PowerShell-ISE
5.
In SharePoint 2010 Management Shell, press the UP ARROW several times until you see the
command you typed in Task 2, and then press ENTER to rerun the command:
Get-SPSite | Select URL, @{Name="Storage"; Expression={"{0:N2} MB" -f
($_.Usage.Storage/1000000)}}, @{Name="Quota"; Expression={"{0:N2} MB" -f
($_.Quota.StorageMaximumLevel/1000000)} } | Out-GridView -Title "Sites with Usage"
An error indicates that the Windows PowerShell Integrated Scripting Environment feature is not
installed. This occurs because you must close and reopen SharePoint 2010 Management Shell to load
the component.
2.
3.
4.
A site collection and top-level web for the Sales department is created using the Team Site site
definition.
2.
3.
4.
In SharePoint 2010 Management Shell, type the following script. On the last line, press ENTER to
create a blank line. This causes the script to execute.
$i = ("HR", "Marketing")
ForEach($url in $i)
{
New-SPContentDatabase -Name WSS_Content_Intranet_$url -WebApplication
http://intranet.contoso.com
New-SPSite -Url http://intranet.contoso.com/sites/$url -ContentDatabase
WSS_Content_Intranet_$url -OwnerAlias CONTOSO\SP_Admin -Template "STS#0"
}
Two new content databases, site collections, and top-level webs are created.
2.
To enumerate all of the site collections in the farm, except Central Administration, type the following
command and then press ENTER:
Get-SPSite
The list item will be updated. Notice that you did not use a cmdlet to update a list item. There are
things that will require direct access to the object model and, as such, you need to be careful to
dispose of objects you create.
5.
6.
7.
Switch to Internet Explorer, and then press F5 to refresh the view of the Announcements list.
Observe the updated title of the announcement.
Close all Internet Explorer and Windows PowerShell windows.
Leave the virtual machines running. You will use them for Lab B.
Click Start, click All Programs, click Microsoft SharePoint 2010 Products, right-click SharePoint
2010 Management Shell, and then click Run as administrator.
The User Account Control dialog box appears.
2.
3.
Click Yes.
Type the following command and then press ENTER:
stsadm
Examine the output of the command, which includes a list of the numerous operations supported by
Stsadm. Also notice the examples displayed at the end of the Help documentation.
4.
To display Help documentation for the enumsites operation, type the following command and then
press ENTER:
stsadm help enumsites
Type the following command, and observe the amount of time it takes for the command to execute:
stsadm -o enumsites -url "http://intranet.contoso.com"
Review the Extensible Markup Language (XML) response that you get from the command, and note
that this can be used in a Windows PowerShell script to iterate through all your site collections.
2.
Type the following command, and observe the amount of time it takes for the command to execute:
Get-SPSite "http://intranet.contoso.com" | Get-SPWeb
3.
Repeat steps 1 and 2, and observe the amount of time it takes for each command to execute.
4.
5.
10
6.
Switch to SharePoint Management Shell, and then type the following command:
stsadm -o createweb -url "http://intranet.contoso.com/sites/Operations/Maintenance"
4.
Click the SharePoint Administrator menu in the upper-right corner of the page, and then click Sign
in as Different User.
The Windows Security dialog box appears.
2.
3.
4.
Switch to SharePoint2010 Management Shell, and then type the following command:
stsadm -o siteowner -url "http://intranet.contoso.com/sites/Operations" -ownerlogin
CONTOSO\Administrator
5.
6.
Module 4
Lab Answer Key: Configuring Content Management
Contents:
Lab A: Configuring List Throttling and Remote BLOB Storage
Exercise 1: Configuring List Throttling
10
Start 10174A-CONTOSO-DC-D.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-D.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15. In the Column name box, type Computer Name, and then click OK.
16. Click the List tab, and then click Create Column.
The Create Column page opens.
17. In the Column name box, type Serial Number, and then click OK.
Click Start, click All Programs, click Microsoft SharePoint 2010 Products, hold down the SHIFT key
and right-click SharePoint 2010 Management Shell, and then click Run as different user.
Enter the user name CONTOSO\Administrator and the password Pa$$w0rd, and then click OK.
Type the following command, and then press ENTER.
Add-SPShellAdmin -UserName CONTOSO\SP_Admin -Database (Get-SPContentDatabase
"WSS_Content_Intranet_IT" )
4.
You can watch the progress of the script by refreshing the Computer Inventory list page in the IT
Web.
You can watch the progress of the script by refreshing the Computer Inventory list page in the IT
Web.
6.
Click OK.
An Error page appears that indicates the operation is prohibited because it exceeds the list view
threshold.
7.
8.
9.
Click Start, click All Programs, click Microsoft SQL Server 2008 R2, click Configuration Tools, hold
down the SHIFT key and right-click SQL Server Configuration Manager, and then click Run as
different user.
The Windows Security dialog appears.
2.
In the User name box, type CONTOSO\Administrator. In the Password box, type Pa$$w0rd. Then,
click OK.
3. SQL Server Services.
4. Right-click SQL Server (MSSQLServer), and then click Properties.
5. Click the FILESTREAM tab.
6. Select the Enable FILESTREAM for Transact-SQL access check box.
7. Select the Enable FILESTREAM for file I/O streaming access check box.
8. Select the Allow remote clients to have streaming access to FILESTREAM data check box, and
then click OK.
9. Close SQL Server Configuration Manager.
10. Click Start, click All Programs, click Microsoft SQL Server 2008 R2, hold down the SHIFT key and
right-click SQL Server Management Studio, and then click Run as different user.
The Windows Security dialog appears.
11. In the User name box, type CONTOSO\Administrator. In the Password box, type Pa$$w0rd. Then,
click OK.
12. Confirm that the Server name is SP2010-WFE1, and then click Connect.
13. In Object Explorer, right-click SP2010-WFE1, and then click Properties.
14. In the Select a page section, click Advanced.
15. Click Filestream Access Level, click the drop-down arrow, and then click Full access enabled. Click
OK.
A message appears indicating that you must restart Microsoft SQL Server. Click OK.
16. In Object Explorer, right-click SP2010-WFE1, and then click Restart.
A confirmation dialog appears.
17. Click Yes.
In Microsoft SQL Server Management Studio, expand Databases, and then click
WSS_Content_Intranet_IT.
Click the New Query button on the toolbar.
The Query Editor opens a new query in the details pane.
3.
To set the database master key, type the following query into the Query Editor:
use [WSS_Content_Intranet_IT]
if not exists (select * from sys.symmetric_keys where name =
N'##MS_DatabaseMasterKey##')create master key encryption by password = N'Master Key
Pa$$w0rd'
4.
5.
6.
To enable a new filegroup for your Remote BLOB Storage (RBS) provider, type the following query
into the Query Editor:
if not exists (select groupname from sysfilegroups where
groupname=N'RBSFilestreamProvider')alter database [WSS_Content_Intranet_IT]
add filegroup RBSFilestreamProvider contains filestream
7.
8.
9.
To add a file system mapping for your RBS provider, type the following query into the Query Editor:
alter database [WSS_Content_Intranet_IT] add file (name = RBSFilestreamFile, filename
= 'c:\Blobstore') to filegroup RBSFilestreamProvider
Click Start, right-click Command Prompt, and then click Run as administrator.
The User Account Control dialog appears.
2.
3.
Click Yes.
Type the following commands, and then press ENTER.
cd d:\labfiles\lab04
d:
4.
5.
3.
4.
5.
6.
7.
8.
Close rbs_install_log1.
Switch to Microsoft SQL Server Management Studio.
In Object Explorer, right-click the root node SP2010-WFE1, and then click Refresh.
Expand Databases, expand WSS_Content_Intranet_IT, and then expand Tables.
Verify that several tables exist with names that begin with the letters mssqlrbs.
Close SQL Server Management Studio. When prompted to save changes, click No.
2.
Click Continue.
The Blobstore folder opens.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Leave the virtual machines running. You will use them for Lab B.
10
Under Taxonomy Term Store, point at Managed Metadata Service, click the drop-down arrow
that appears, and then click New Group.
Type Organization, and then press ENTER.
Point at Organization, click the drop-down arrow, and then click New Term Set.
Type Department, and then press ENTER.
Point at Department, click the drop-down arrow, and then click Create Term.
Type Marketing, and then press ENTER.
Type Finance, and then press ENTER.
Type IT, and then press ENTER.
Type Sales, and then press ENTER.
5.
6.
7.
8.
9.
10.
11.
12.
Click the Browse for a valid choice button next to the Request Type box.
Click Add New Item.
Type New User, and then press ENTER.
Click Select, and then click OK.
Click Save.
Repeat the steps in this task to create the following support requests:
Title
User Name
ChristaG
IT
Password Reset
FrankM
Marketing
Desktop Support
SeanC
Sales
New User
LolaJ
Sales
Password Reset
11
Module 5
Lab Answer Key: Configuring Authentication
Contents:
Lab A: Configuring Custom Authentication
Exercise 1: Creating and Configuring an ASP.NET Membership Database
10
Start 10174A-CONTOSO-DC-D.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-D.
3.
4.
Click Yes.
Type the following commands:
cd c:\windows\microsoft.net\framework\v2.0.50727
aspnet_regsql.exe
2.
Modify the connectionStrings element of the XML file to match the following:
<connectionStrings>
<clear/>
<add name="LocalSQLServer"
connectionString="Server=.;Database=aspnetdb;uid=sa;pwd=Pa$$w0rd;"
providerName="System.Data.SqlClient"/>
</connectionStrings>
3.
4.
5.
6.
Click Start, click All Programs, click Microsoft SharePoint 2010 Products, right-click SharePoint
2010 Management Shell, and then click Run as administrator.
The User Account Control dialog box appears.
2.
3.
Click Yes.
Execute the following commands:
$member = New-Object System.Web.Security.SQLMembershipProvider
$vals=New-Object System.Collections.Specialized.NameValueCollection
$vals.Add("name", "sql")
$vals.Add("connectionStringName", "LocalSQLServer")
$vals.Add("applicationName", "/")
$member.Initialize("sql", $vals);
$status = New-Object System.Web.Security.MembershipCreateStatus
$member.CreateUser('SiteAdministrator', 'Pa$$w0rd', 'SharePoint@contoso.com', 'first
person kissed', 'mom', $true, $id, [ref] $status)
Ignore the error message that indicates the membership provider name specified is invalid.
4.
5.
6.
Ignore the error message that indicates the membership provider name specified is invalid.
7.
8.
9.
notepad web.config
2.
3.
4.
5.
6.
7.
8.
Locate the <system.web> element, then locate the <membership> element, and then locate the
<providers> element.
Remove the <clear/> directive inside the <providers> element.
Locate the <roleManager> element, and then locate the <providers> element.
Remove the <clear/> directive inside the <providers> element.
Click File, and then click Save.
Close Notepad.
Close Administrator: Command Prompt.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Click Yes.
In the Application Management section, click Manage web applications.
On the ribbon, click New.
In the Authentication section, click Claims Based Authentication.
In the Port box, type 80.
In the Host Header box, type clients.contoso.com.
In the Claims Authentication Types section, select the Enable Windows Authentication and
Integrated Windows Authentication check boxes, and then select NTLM from the drop-down list.
Select Enable Forms Based Authentication (FBA).
In the ASP.NET Membership provider name box, type AspNetSqlMembershipProvider.
In the ASP.NET Role manager name box, type AspNetSqlRoleProvider.
In the Application Pool section, click Use existing application pool, and then select SharePoint
80 (CONTOSO\SP_ServiceApps) from the drop-down list.
For the database name, type WSS_Content_Clients.
Click OK.
Central Administration provisions the new Web application.
15.
16.
17.
18.
On the Application Created page, click the Create Site Collection link.
In the Title box, type CONTOSO Client Portal.
In the Template Selection section, click the Publishing tab, and then click Publishing Portal.
In the Primary Site Collection Administrator section, in the User name text box, type
CONTOSO\SP_Admin.
19. In the Secondary Site Collection Administrator section, type SiteAdministrator.
20. Click OK.
The Top-Level Site Successfully Created dialog box appears.
21. Click OK.
f Task 2: Add a DNS host record for the new Web application
1.
Click Start, then click to Administrative Tools, then hold SHIFT and right-click DNS, and then select
Run as different user.
The Windows Security dialog box appears.
2.
3.
4.
5.
6.
7.
8.
9. Click OK.
10. Click Done.
11. Close DNS Manager.
11.
12.
13.
14.
15.
Leave the virtual machines running. You will use them for Lab B.
Lab Review
Question: Why must you remove the <clear/> elements from the Web.config file?
Answer: The <clear/> elements prevent the SharePoint Secure Token service from finding users in the
forms-based authentication database. The service cannot build claims for the users, and authentication
would fail.
Question: If you are familiar with the configuration of forms-based authentication on Microsoft Office
SharePoint Server 2007, what is different about the number and type of Web applications required to
support forms-based authentication in Microsoft SharePoint Server 2010 in the client extranet scenario
presented in this lab?
Answer: Microsoft Office SharePoint Server 2007 required a separate, extended Web application to
support forms-based authentication. In SharePoint Server 2010, claims-based authentication accepts
claims from multiple authentication mechanisms, including both Windows and forms-based
authentication. Therefore, only one Web application is required to support this scenario.
On SP2010-WFE1, click Start, then click Administrative Tools, then hold the SHIFT key and rightclick Active Directory Users and Computers, and then select Run as different user.
The Windows Security dialog box appears.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
Full name: Performance Point Unattended Service Account, User logon name:
SP_PerfPoint_USA.
Full name: Visio Graphics Unattended Service Account, User logon name: SP_Visio_USA.
Open SharePoint 2010 Central Administration. At the User Account Control dialog box, click Yes.
In the Quick Launch, click Application Management.
In the Service Applications section, click Manage service applications.
Click the Secure Store Service link on the Secure Store Service Application row.
On the ribbon, click Generate New Key.
In the Pass Phrase and Confirm Pass Phrase boxes, type 10174_SSS_2010.
Click OK.
5.
Click OK.
10
Module 6
Lab Answer Key: Securing Content
Contents:
Exercise 1: Managing SharePoint Groups
Start 10174A-CONTOSO-DC-D.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-D.
3.
4.
5.
6.
7.
8.
In the upper-right corner of the page, click Shah, Sanjay, and then click Sign in as Different User.
The Windows Security dialog appears.
2.
3.
4.
5.
6.
7.
8.
3.
4.
5.
6.
7.
f Task 5: Create a new group and assign it the Design permission level
1.
In the upper-right corner of the page, click Low, Jeff, and then click Sign in as Different User.
The Windows Security dialog appears.
2.
3.
4.
5.
6.
7.
8.
Click Create.
Click Site Actions, and then click Site Permissions.
On the ribbon, click Create Group.
In the Name box, type Usage Monitors.
In the About Me box, type Use this group to grant people permission to view Web Analytics
data for the SharePoint site: Information Technology Dept.
In the Give Group Permission to this Site section, select the View Usage check box.
Click Create.
Click the drop-down arrow next to the New button, and then click Add Users.
In the Users/Groups box, type CONTOSO\LolaJ, and then click OK.
In the address bar of Internet Explorer, type http://intranet.contoso.com/sites/IT, and then press
ENTER.
In the upper-right corner of the page, click SharePoint Administrator, and then click Sign in as
Different User.
The Windows Security dialog appears.
3.
4.
5.
6.
2.
3.
4.
5.
6.
7.
8.
9.
In the address bar of Internet Explorer, type http://intranet.contoso.com/sites/IT, and then press
ENTER.
In the upper-right corner of the page, click SharePoint Administrator, and then click Sign in as
Different User.
The Windows Security dialog appears.
3.
4.
5.
6.
3.
4.
5.
6.
7.
8.
2.
3.
4.
5.
6.
Click OK.
To select all permissions, click the check box in the column heading row, next to Name.
On the ribbon, click Remove User Permissions.
A Message from webpage dialog appears.
7.
8.
9.
10.
Click OK.
On the ribbon, click Grant Permissions.
In the Users/Groups box, type CONTOSO\LolaJ.
In the Grant Permissions box, select the Full Control check box, and then click OK.
In the address bar of Internet Explorer, type http://intranet.contoso.com/sites/IT, and then press
ENTER.
In the upper-right corner of the page, click SharePoint Administrator, and then click Sign in as
Different User.
The Windows Security dialog appears.
3.
4.
5.
6.
7.
On SP2010-WFE1, click Start, click Administrative Tools, hold down the SHIFT key and right-click
Active Directory Users and Computers, and then select Run as different user.
Enter the user name CONTOSO\Administrator and the password Pa$$w0rd, and then click OK.
Expand the contoso.com domain, and then click the Users container.
Right-click the Users container, point to New, and then click Group.
In the Name box, type SharePoint Content Auditors, and then click OK.
In the details pane, double-click SharePoint Content Auditors.
Click the Members tab.
Click Add.
Type CONTOSO\JimD, click OK, and then click OK again.
Right-click the Users container, point to New, and then click Group.
In the Name box, type SharePoint Full Control Policy, and then click OK.
Right-click the Users container, point to New, and then click Group.
In the Name box, type SharePoint Deny Policy, and click OK.
Close Active Directory Users and Computers.
6.
In the address bar of Internet Explorer, type http://intranet.contoso.com/sites/IT, and then press
ENTER.
In the upper-right corner of the page, click SharePoint Administrator, and then click Sign in as
Different User.
The Windows Security dialog appears.
3.
4.
5.
6.
7.
Results: After this exercise, you should have created a new Web application policy granting full Read
permission to the intranet for audit purposes.
Module 7
Lab Answer Key: Managing SharePoint Customizations
Contents:
Lab A: Administering Features and Solutions
Exercise 1: Administering Features
11
Start 10174A-CONTOSO-DC-D.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-D.
6.
7.
8.
9.
10.
11.
12.
Observe that a calendar or contact list are not shown as available options.
Close the Create page.
Click Site Actions, and then click Site Settings.
In the Site Actions section, click Manage site features.
In the Team Collaboration Lists row, click Activate.
Click Site Actions, and then click View All Site Content.
Click Create.
The Create page appears.
13. Observe that you can now create a calendar or contact list.
14. Close the Create page.
4.
5.
6.
Press CTRL+V to paste the CustomAction folder into the Features folder.
Close the Features folder window.
Click Start, then click All Programs, then click Microsoft SharePoint 2010 Products, then rightclick SharePoint 2010 Management Shell, and then click Run as administrator.
The User Account Control dialog box appears.
7.
8.
Click Yes.
Type the following command and then press ENTER:
stsadm -o installfeature -filename CustomAction\feature.xml
This will install a new feature into SharePoint that enables a simple custom action in the Site Actions
menu.
6.
Click OK.
4.
5.
6.
3.
4.
5.
6.
7.
8.
Click Yes.
In the Quick Launch, click System Settings.
In the Farm Management section, click Manage farm solutions.
Observe that the two solutions are installed, but are not deployed.
Click applicationtemplatecore.wsp.
Click Deploy Solution.
Review the settings, and then click OK.
Click bugdatabase.wsp.
Click Deploy Solution.
Review the settings, and then click OK.
7.
8.
Results: After completing this exercise, you should have installed and deployed SharePoint solutions to
your farm.
Leave the virtual machines running. You will use them for Lab B.
Lab Review
Question: What is a disadvantage of deploying a feature, in contrast to a solution, to a farm with more
than one server?
Answer: The Features folder must be the same on all servers in the farm, so you must copy the feature to
all servers and keep the Features folder in sync. When you deploy a feature with a solution, SharePoint
updates the Features folder on each server in the farm.
Question: Why is it important in some cases, such as the solutions deployed in this lab, to deploy
solutions in a specific order?
Answer: Solutions can have dependencies upon other solutions. The Bug Database solution has
dependencies on the Application Template Core solution.
Click Start, then click Administrative Tools, and then click Services.
Right-click SharePoint 2010 User Code Host, and then click Properties.
Verify that the service is not started, and that the Startup type is Disabled.
Click OK.
Open SharePoint 2010 Central Administration.
The User Account Control dialog box appears.
6.
7.
8.
9.
Click Yes.
In the Quick Launch, click System Settings.
Click Manage services on server.
In the Microsoft SharePoint Foundation Sandboxed Code Service row, click Start.
The service status changes to Started.
10.
11.
12.
13.
14.
Results: After completing this exercise, you should have deployed and tested the BadReceiver solution.
2.
3.
4.
5.
Click Yes.
In the Quick Launch, click Monitoring.
In the Timer Jobs section, click Review job definitions.
Locate the Solution Resource Usage Update timer job for SharePoint intranet.contoso.com80.
Tip: You must click the arrow at the bottom of the page.
6.
Note: Be sure to click Solution Resource Usage Update and not Solution Daily Resource Usage
Update. Clicking the latter will cause resource usage points to be reset.
7.
8.
9.
Switch to the instance of Internet Explorer that is displaying the Solutions Gallery
Press F5 to refresh the page.
The resource usage for the solution should now be updated. If you do not see the updated resource
usage, then you may need to wait for up to 5 minutes for the timer jobs to execute.
2.
3.
Click Yes.
To export a list of default point values, type the following command and then press ENTER:
$spusercodeservice = [Microsoft.SharePoint.Administration.SPUserCodeService]::Local
$spusercodeservice.ResourceMeasures > c:\ResourceMeasures.txt
4.
5.
6.
7.
To find the section for database queries, press CTRL+F, then type SharePointDatabaseQueryCount,
and then press ENTER.
Record the current values of ResourcesPerPoint and AbsoluteLimit.
Close the file.
This script sets the ResourcesPerPoint property for SharePointDatabaseQueryCount to 1 and will
cause SharePoint database queries to increase the resource usage point count very quickly.
3.
Switch to the instance of Internet Explorer that displays the IT intranet Web.
It will take a few seconds to load the Web, because you recently reset IIS.
2.
3.
4.
5.
6.
10
7.
Click Save.
An error message appears.
5.
Leave the virtual machines running. You will use them for Lab C.
Lab Review
Question: What was the value of ResourcesPerPoint for SharePointDatabaseQueryCount? Explain the
relationship between this number and one resource usage point.
Answer: 400. Each database query accrues 1/400 of a resource usage point.
4.
11
12
Lab Review
Question: Describe the role of the Developer Dashboard.
Answer: The Developer Dashboard exposes performance and debugging information that can be used to
monitor and improve the performance of pages and solutions.
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
Module 8
Lab Answer Key: Configuring and Securing SharePoint
Services and Service Applications
Contents:
Lab A: Administering SharePoint Services
Exercise 1: Administering SharePoint services
11
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
Start 10174A-CONTOSO-DC-D.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-D.
4.
5.
6.
7.
Click Site Actions, and then click View All Site Content.
Click Documents.
On the ribbon, click Documents.
Click New Document.
The Open Document dialog appears.
8.
Click OK.
After a few moments, the new document opens in Microsoft Office Word. If prompted for a user
name, click OK.
If the Windows Security dialog appears, perform the following steps:
a.
b.
Point at the row containing the new document SharePoint IT Policies and Procedures, and then
click the drop-down arrow that appears next to the file name.
Observe that there are no options to convert the document.
You must enable document conversion for each Web application and it requires several services to be
running.
3.
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
2.
3.
4.
Click Yes.
In the Quick Launch, click General Application Settings.
In the External Service Connections section, click Configure document conversions.
The Configure Document Conversions page appears.
5.
Click the Web Application list, and then click Change Web Application.
The Select Web Application dialog appears.
6.
7.
8.
9.
3.
4.
5.
6.
On the Launcher Service Settings page, in the Select Server section, verify that SP2010-WFE1 is
selected.
In the Load Balancer list, select SP2010-WFE1, and then click OK.
The service starts.
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
Switch to the instance of Windows Internet Explorer that displays the document library.
To refresh the page, press F5, and then click Retry.
Point at the row containing the new document SharePoint IT Policies and Procedures, and then
click the drop-down arrow that appears next to the file name.
Observe the new menu item, Convert Document.
Click Convert Document, and then click From Word Document to Web Page.
The Create Page From Document page opens.
6.
7.
8.
4.
5.
In the Microsoft SharePoint Foundation Subscription Settings Service row, click Start.
The service starts.
6.
7.
8.
9.
10.
11.
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
Click Start, right-click Command Prompt, and then click Run as administrator.
The User Account Control dialog appears.
2.
3.
Click Yes.
Type the following command, and then press ENTER:
net stop sptimerv4
This will stop the SharePoint 2010 Timer service. When this Windows Service has stopped, your
SharePoint farm loses much of its functionality.
4.
Open SharePoint 2010 Central Administration, and then in the Quick Launch, click Application
Management.
In the Service Applications section, click Manage Service Applications.
The Manage Service Applications page opens.
3.
On the ribbon, click New, and then click Managed Metadata Service.
The Create New Managed Metadata Service dialog appears.
4.
5.
6.
7.
2.
3.
Right-click the SharePoint 2010 Timer service, and then click Start.
Close the Services console.
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
4.
5.
6.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
4.
In the Notification E-Mail Address box, type sharepoint@contoso.com, and then click OK.
3.
4.
5.
6.
7.
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
3.
4.
Hold down the SHIFT key and right-click Server Manager, and then click Run as different user.
The Windows Security dialog appears.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Note: If you cannot select Enterprise, ensure that you are logged in as CONTOSO\Administrator.
13.
14.
15.
16.
17.
18.
19.
20.
On the Specify CA Type page, ensure that Root CA is selected, and then click Next.
On the Set Up Private Key page, click Next.
On the Configure Cryptography for CA page, click Next.
On the Configure CA Name page, click Next.
On the Set Validity Period page, click Next.
On the Configure Certificate Database page, click Next.
On the Confirm Installation Selections page, click Install.
On the Installation Results page, click Close.
In the console tree, expand Roles, expand Web Server (IIS), and then click Internet Information
Services (IIS) Manager.
In the Connections panel, expand SP2010-WFE1, and then click SP2010-WFE1.
In the IIS section of the SP2010-WFE1 Home pane, double-click Server Certificates.
In the Actions panel, click the Create Domain Certificate.
In the Common name box, type Contoso.
In the Organization box, type Contoso.
10
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
7.
8.
9.
10.
11.
12.
13.
14.
15.
3.
4.
5.
6.
7.
8.
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
2.
3.
4.
Click Yes.
In the Quick Launch, click Application Management.
In the Service Applications section, click Manage service applications.
The Manage Service Applications page opens.
5.
6.
7.
8.
9.
3.
4.
3.
4.
5.
6.
7.
Click OK.
Observe that there is an application proxy group labeled custom assigned to the intranet Web
application.
11
12
Lab Answer Key: Configuring and Securing SharePoint Services and Service Applications
3.
Tip: Do not click the Managed Metadata Clients link. The link opens the management page for the
service application. Instead, click any part of the row other than the link.
4.
5.
6.
Click OK.
Module 9
Lab Answer Key: User Profiles and Social Networking
Contents:
Lab: A: Configuring User Profiles
Exercise 1: Creating a User Profile Service Application
14
17
19
Start 10174A-CONTOSO-DC-D.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-D.
6.
4.
5.
6.
7.
8.
9.
3.
4.
5.
6.
7.
8.
In the Select the User Profile Application list, select User Profile Service Application.
In the Password and Confirm Password boxes, type Pa$$w0rd.
Click OK.
Observe the Status of the User Profile Synchronization Service.
A timer job is created that will configure user profile settings in the farm. When it has completed, the
status of the service will change from Starting to Started.
9.
10.
11.
12.
13.
14.
Note: It can take up to 5 minutes for the ProfileSynchronizationSetupJob to appear on the Running
Jobs list. If you dont see the job start, re-start the Timer Service, but be sure you DO NOT restart it if
this job is running.
15. Monitor the page. Press F5 to refresh the page. Repeat this step until the
ProfileSynchronizationSetupJob disappears.
Note: It can take up to 15 minutes for the ProfileSynchronizationSetupJob to complete.
16.
17.
18.
19.
In the Timer Links section of the Quick Launch, click Job History.
Confirm that the Status of ProfileSynchronizationSetupJob is Succeeded.
In the Quick Launch, click System Settings.
In the Servers section, click Manage services on server.
The Services on Server page opens.
20. Confirm that the Status of the user profile synchronization service is Started.
21. Close SharePoint 2010 Central Administration.
If a service is not started, then press F5 to refresh the view. Repeat this step until the services have
started.
Note: This can take several minutes.
3.
4.
5.
Confirm that the ILMMA folder exists. Confirm that a folder named
MOSS-GUID exists with todays date.
If the folders do not exist, wait until the timer job has completed fully, at which point the folders will
appear.
6.
Close the Windows Explorer window that is showing the MaData folder.
Click Start, right-click Command Prompt, and then click Run as administrator.
The Windows Security dialog box appears.
2.
3.
4.
Click Yes.
Type IISRESET, and then press ENTER.
After the command has completed, close Administrator: Command Prompt.
4.
5.
6.
Confirm that there are numbers on the right side of the page, which indicates that the service
application is running.
Close SharePoint 2010 Central Administration.
Click Start, click Administrative Tools, hold the SHIFT key and right-click Active Directory Users
and Computers, and then click Run as different user.
The Windows Security dialog box appears.
2.
3.
4.
Enter the user name, CONTOSO\Administrator, and the password, Pa$$w0rd, and then click OK.
In the console tree, expand contoso.com.
Right-click contoso.com, and then click Delegate Control.
The Delegation of Control Wizard appears.
5.
6.
7.
8.
9.
10.
11.
12.
13.
4.
5.
6.
7.
8.
9.
Note: This is the account used by the User Profile Synchronization Service in the Beta virtual machine.
10. In the Password and Confirm password boxes, type Pa$$w0rd.
5.
6.
7.
8.
9.
2.
3.
4.
5.
6.
Click Start, click Administrative Tools, hold the SHIFT key and right-click Active Directory Users
and Computers, and then click Run as different user.
The Windows Security dialog box appears.
2.
3.
4.
5.
6.
7.
8.
9.
4.
5.
6.
7.
8.
Click OK.
Wait 30 seconds.
The synchronization does not start immediately.
2.
3.
4.
5.
6.
3.
4.
5.
6.
Note: You must type the text exactly as shown, with no space.
7.
Note: You must type the text exactly as shown, with a space.
8. In the Type list, select integer.
9. In the Policy Settings section, in the Default Privacy Setting list, select Everyone.
10. Select the Replicable check box.
A message appears indicating that replicated data will not be deleted.
11. Click OK.
12. Click the Allow users to edit values for this property radio button.
13. In the Display Settings section, select the Show in the profile properties section of the users
profile page check box.
14. Select the Show on the Edit Details page check box.
15. Click OK.
Click Start, click All Programs, then click Microsoft SQL Server 2008 R2, hold SHIFT and right-click
SQL Server Management Studio, and then click Run as different user.
The Windows Security dialog box appears.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Enter the user name, CONTOSO\Administrator, the password, Pa$$w0rd, and then click OK.
On the Connect to Server dialog box, click the Connect button.
Expand Databases.
Expand AdventureWorks.
Expand Security.
Right-click Users, select New User.
In the User name box, type CONTOSO\SP_Admin.
In the Login name box, type CONTOSO\SP_Admin.
In the Database role membership list, select the db_owner check box.
Click OK.
10
Click Start, click All Programs, click SharePoint, and then click Microsoft SharePoint Designer
2010.
Click Open Site.
Type http://intranet.contoso.com/sites/IT, and then click Open.
Wait for the site to open.
4. When prompted for credentials, use Contoso\SP_Admin with the password Pa$$w0rd.
5. In the Site Objects panel, click External Content Types.
Wait for SharePoint to retrieve external content types.
6.
7.
19.
20.
21.
22.
Click Next.
Click Finish.
To save the external content type, press CTRL+S.
Close SharePoint Designer.
4.
5.
6.
Click AdventureWorks.
On the ribbon, click Set Object Permissions.
7.
8.
9.
10.
11
3.
4.
5.
6.
7.
8.
Tip: The Select External Content Type button is the right-most button.
The External Content Type Picker dialog box appears.
9.
10.
11.
12.
13.
Click AdventureWorks.
Click OK.
Click Connect User Profile Store to Business Data Connectivity Entity as a 1:1 mapping.
In the Return items identified by this profile property list, select EmployeeID.
Click OK.
3.
4.
5.
6.
7.
8.
9.
10.
12
3.
4.
5.
6.
7.
8.
9.
10.
4.
5.
6.
7.
8.
2.
3.
4.
5.
6.
7.
8.
9.
Question: What group does the farm account have to be in in order for user profile synchronization to
work?
Answer: The farm account must be a local administrator. This requirement is enforced by the set up of
Forefront Identity Manager in the synchronization process.
13
14
4.
5.
6.
In the IIS Web Site section, in the Port box, type 80.
In the Host Header box, type mysites.contoso.com.
Note: A DNS host record for mysites.contoso.com has already been created in the domain's DNS zone.
7.
8.
9.
10.
11.
12.
13.
14.
3.
4.
5.
6.
7.
8.
4.
5.
6.
7.
8.
3.
4.
Click On.
Click OK.
3.
4.
5.
15
16
6.
7.
8.
Note: If My Profile is not visible, click My Settings, and then click My Profile.
The profile page for Dan Jump, CEO, opens.
5.
6.
7.
3.
Value
About me
Mobile phone
206-555-1234
Home phone
725-555-1234
Office Location
New Tower
Time Zone
Past projects
SharePoint 2007
Skills
Public Speaking
Schools
University of SharePoint
Birthday
January 1
Employee ID
17
18
4.
5.
6.
19
2.
3.
4.
5.
In the Colleagues box, type CONTOSO\LolaJ, and then click the Check Names button.
In the Add to My Team section, click Yes.
Click OK.
Lola Jacobson is added as your colleague.
The Suggested Colleagues page opens.
6.
Click Skip.
Click the Dan Jump logon menu, and then click Sign in as a Different User.
The Windows Security dialog box appears.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
2.
3.
4.
5.
6.
7.
20
8.
9.
10.
11.
12.
13.
14.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
5.
6.
7.
8.
Switch to the instance of Internet Explorer that displays the My Site for Dan Jump.
Click My Newsfeed.
You should see the various changes you have made.
3.
4.
5.
21
Module 10
Lab Answer Key: Administering and Configuring SharePoint
Search
Contents:
Lab A: Configuring Search
Exercise 1: Creating Content for Search
11
14
16
18
20
Start 10174A-CONTOSO-DC-E.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-E.
3.
4.
5.
6.
7.
8. In the File name box, type C:\Data\Temporary Drafts\Crawl Rules, and then press ENTER.
9. Close Notepad.
10. Copy D:\LabFiles\Lab10\SharePoint Governance Checklist.pdf to C:\Data.
Switch to the instance of Windows Internet Explorer that displays the Information Technology Web.
Click Site Actions, and then click New Site.
The Create page opens.
3.
4.
5.
6.
7.
Note: The Microsoft SharePoint Server Publishing Infrastructure feature must be active to create a
Web using the Enterprise Search Center site definition. You can create a Web using the Basic Search
Center site definition without activating the SharePoint Server Publishing Infrastructure feature.
The SharePoint Server Standard Site Collection Features feature must also be active before you can
create a Web with either site definition.
8.
Close the error message, and then close the Create page.
2.
3.
4.
5.
6.
2.
3.
2.
3.
4.
5.
Click Yes.
In the Quick Launch, click Application Management.
In the Service Applications section, click Manage service applications.
Click Search Service Application.
The Search Administration page opens.
6.
7.
8.
9.
10.
11.
12. Click Refresh above the list of content sources. Repeat this step to refresh the page until the Status
column of the Shared Folder - Data row displays Idle.
Tip: The full crawl takes two to four minutes.
Switch to the instance of Internet Explorer that displays the Search Center.
In the search box, type index, and then press ENTER.
The file SharePoint Search.txt is returned as a result.
3.
4.
5.
In the Settings section, select the Repeat within the day option.
In the Every box, type 60, click OK, and then click OK again.
3.
4.
Switch to the instance of Internet Explorer that displays the Search Center.
In the search box, type index, and then press ENTER.
The file SharePoint Search.txt is returned as a result.
3.
3.
4.
Switch to the instance of Internet Explorer that displays the Search Center.
In the search box, type governance, and then press ENTER.
The file sharepoint governance checklist.pdf is returned as a result.
3.
4.
Note: Deployment is a term in the PDF file. You must install a 64-bit iFilter for PDFs on all servers that perform
indexing to index the contents of PDF documents successfully.
Switch to the instance of Internet Explorer that displays the Search Center.
In the search box, type governance, and then press ENTER.
The file sharepoint governance checklist.pdf is returned in the list of results.
3.
Observe that the URL of the file sharepoint governance checklist.pdf is displayed as localhost
instead of sp2010-wfe1.contoso.com.
10
In the Quick Launch, in the Crawling section, click Crawler Impact Rules.
Click Add Rule.
In the Site box, type SP2010-WFE1.
Click Request one document at a time and wait the specified time between requests.
In the Time to wait box, type 30, and then click OK.
Switch to the instance of Internet Explorer that displays the Search Center.
In the address bar, type http://intranet.contoso.com/sites/IT, and then press ENTER.
In the Quick Launch, click Shared Documents.
On the ribbon, click Library.
Click Create Column.
In the Column name box, type Summary, and then click OK.
Point at IT Policies and Procedures for SharePoint 2010, click the drop-down arrow that appears,
and then click Edit Properties.
The properties page for the document opens.
8.
9.
In the Summary box, type Contoso IT Policies and Procedures for SharePoint 2010.
Click Save.
Note: If you do not see ows_Summary(Text) in the list, you must reindex your content source and wait
for it to show up on this page.
12. Click OK.
13. Select the Allow this property to be used in scopes option, and then click OK.
11
12
Switch to the instance of Internet Explorer that displays the Shared Documents document library.
In the address bar, type http://intranet.contoso.com/sites/IT/Search, and then press ENTER.
Next to the search box, click Advanced.
Click Site Actions, and then select Edit Page.
In the Advanced Search Box Web Part, point at Advanced Search Box Web part Menu, click the
drop-down arrow, and then click Edit Web Part.
The Advanced Search Box Web Part properties panel appears.
6.
7.
8.
After the <PropertyDefs> tag, before the first <PropertyDef> element, add the following text:
<PropertyDef Name="ContosoSummary" DataType="text" DisplayName="Summary"/>
10. Locate the <ResultTypes> tag, locate the <ResultType> element <ResultType DisplayName="All
Results" Name="Default">, and then locate the end of that element, which is the next
</ResultType> tag.
11. Before the </ResultType> tag you located in the previous step, add the following text:
<PropertyRef Name="ContosoSummary"/>
4.
5.
6.
13
14
Switch to the instance of Internet Explorer that displays the Search Center.
In the address bar, type http://intranet.contoso.com/sites/IT, and then press ENTER.
Click Site Actions, and then click Site Settings.
In the Site Collection Administration section, click Search settings.
In the Site Collection Search Center section, click Enable custom scopes.
In the text box, type http://intranet.contoso.com/sites/IT/Search/Pages.
In the Site Collection Search Dropdown Mode section, select Show scopes dropdown, and then
click OK.
8. In the Site Collection Administration section, click Search Scopes.
9. Click Display Groups.
10. Click Search Dropdown.
11. Select the Shared Files option, and then click OK.
3.
4.
Click the Back button on the browser to return to the Information Technology Web home page.
In the Search Scope list, which displays All Sites by default, select Shared Files.
Note: If you do not see Shared Files, you need to wait for the scope to be updated.
5.
15
Do not turn off the virtual machines. You use the same virtual machines in the next lab.
Lab Review
Question: In what scenarios would you create a crawl rule?
Answer: Answers may vary. A common scenario is a requirement to use an account other than the default
crawl account to index content. Another common scenario is a requirement to exclude a subset of data in a
content source from indexing.
Question: You have added documents from a popular application to a SharePoint document library, but they
are not being indexed. What must be done to ensure that a file is indexed both for its attributes and content?
Answer: A file type must be added, and an iFilter must be installed.
Question: You have extended a Web application and now search results are listed twice with different URLs.
How can you prevent this duplication of results?
Answer: Create a server mapping that replaces the URL of results from the extended Web application with the
URL of the original Web application, effectively hiding the duplicate results.
Question: Users want to be able to search list items based on a custom column in the list. How can you
accomplish this and make it easy for users to perform the queries in the user interface without typing
property:value search syntax?
Answer: Create a managed property for the custom column. Then, customize the Search Center to support
queries based on the new property.
Question: Users are complaining that too many results are being returned. How can you provide users a way
to narrow down their search results?
Answer: Implement search scopes that target specific sets of data.
16
Switch to the instance of Internet Explorer that displays the Search Center.
Click Site Actions, and then click Site Settings.
In the Site Collection Administration section, click Go to top level site settings.
In the Site Collection Administration section, click Search keywords.
Click Add Keyword.
In the Keyword Information section, in the Keyword Phrase box, type SharePoint.
In the Best Bets section, click Add Best Bet.
In the URL box, type http://sharepoint.microsoft.com.
In the Title box, type Microsoft SharePoint Server Home Page, and then click OK.
In the Keyword Definition box, type Microsoft SharePoint Server is the business collaboration
platform for the enterprise and the Internet, and then click OK.
On the search results page, click Site Actions, and then click Edit Page.
In the Search Best Bets Web Part, click the drop-down arrow, Search Best Bets Web Part Menu,
and then click Edit Web Part.
The Search Best Bets Web Part properties panel appears.
Tip: You might need to scroll to the right, and to the top, to see the properties panel.
3.
4.
5.
Update the Extensible Stylesheet Language (XSL) template starting with that line and ending with the
line </xsl:template> to the following:
<xsl:template match="All_Results/BestBetResults/Result">
<xsl:if test="$DisplayBB = 'True'" >
<xsl:if test="position() <= $BBLimit" >
<xsl:variable name="url" select="url"/>
<xsl:variable name="id" select="id" />
These are the results that the Contoso Search Team recommends, based on your
query.<br/>
<xsl:if test="$DisplayTitle = 'True'" >
<span style="padding-right: 4px;">
<img src="/_layouts/images/star.gif" alt="" />
</span>
<span class="srch-BestBetsTitle">
<a href="{$url}" id="{concat('BBR_',$id)}">
<xsl:value-of select="title"/>
</a>
<br/>
</span>
</xsl:if>
<xsl:if test="$DisplayDescription = 'True' and description[. != '']" >
<div class="srch-BB-Description">
<xsl:value-of select="description"/>
<br/>
</div>
</xsl:if>
<xsl:if test="$DisplayUrl = 'True'" >
<span class="srch-BB-URL">
<a href="{$url}" id="{concat('BBR_U_',$id)}" dir="ltr">
<xsl:value-of select="$url"/>
</a>
</span>
<br/>
<br/>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>
6.
7.
8.
Click Save.
In the Search Best Bets Web Part properties panel, click OK.
On the ribbon, click Save & Close.
17
18
Switch to the instance of Internet Explorer that displays the Search Center.
In the search box, type sharepoint, and then press ENTER.
Search results appear.
3.
Tip: If the number of results is reported as an approximate number, page through the results so that
you can identify the exact number of results that were returned.
4.
5.
6.
7.
8.
Tip: You need to expand the Name column in Windows Explorer to see the full name of the folders.
2.
3.
4.
5.
2.
3.
Click Yes.
Type the following commands:
net stop osearch14
net start osearch14
Switch to the instance of Internet Explorer that displays the Search Center.
In the search box, type sharepoint, and then press ENTER.
Search results appear.
3.
Tip: If the number of results is reported as an approximate number, page through the results so that
you can identify the exact number of results that were returned.
4.
5.
6.
7.
19
20
Switch to the instance of Windows Explorer that displays the Config folder.
Right-click noiseenu.txt, and then click Edit.
Add the following line to the end of the file:
dirty
4.
5.
Switch to the instance of Internet Explorer that displays the Search Center.
In the search box, type dirty, and then press ENTER.
No results are returned.
Note: In a production environment, you should consider reindexing all content after modifying the
noise word file so that the words are removed from the index itself.
Lab Review
Question: Describe the two functions of synonyms in a thesaurus file.
Answer: A query keyword can be replaced with another keyword to yield a more accurate result set. A
query keyword can be used along with its synonyms to yield an expanded result set.
Module 11
Lab Answer Key: Implementing Office Web Apps
Contents:
Exercise 1: Installing and Configuring Office Web Apps
Start 10174A-CONTOSO-DC-D.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-D.
3.
4.
5.
6.
7.
8.
Click Yes.
On the Enter your Product Key page, type BFGMH-8RM8J-JWMCQ-P784Q-F7R2Y.
Click Continue.
Select the I accept the terms of this agreement check box.
Click Continue.
Click Install Now.
The Microsoft Office Web Apps are installed.
9.
On the Run Configuration Wizard page, leave the check box selected, and then click Close.
The Microsoft SharePoint Products Configuration Wizard appears.
On the Initial Farm Configuration Wizard page, click Start the Wizard.
Click Next.
Service applications for Office Web Apps are created and configured.
3.
4.
5.
6.
7.
Confirm that the following services are started, and if they are not, then start them by clicking Start:
Exercise 2: Configuring and Testing the Office Web Apps in a Document Library
f Task 1: Configure documents to open in a browser
1.
Click Start, click All Programs, click Microsoft Office, and then click Microsoft PowerPoint 2010.
Microsoft PowerPoint opens.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
On the title slide, click the title placeholder, and then type Marketing Strategy.
Press CTRL+M to create a new slide, and then type Product.
Press CTRL+M to create a new slide, and then type Pricing.
Press CTRL+M to create a new slide, and then type Packaging.
Press CTRL+M to create a new slide, and then type Positioning.
Click File, and then click Save.
In the Save As dialog box, click Save.
Minimize, but do not close PowerPoint.
Switch to Internet Explorer.
In the Quick Launch, click Shared Documents.
Click Add document.
Click Browse.
In the navigation pane, click Documents and then click Marketing Strategy, and then click Open.
Click OK.
The document is uploaded to the shared documents library.
The shared documents library page refreshes and the presentation, Marketing Strategy, appears.
Click Start, click All Programs, click Microsoft Office, and then click Microsoft Word 2010.
Microsoft Word opens.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Click Save.
On the ribbon, click File, and then click Close.
Close Microsoft Word.
Switch to Internet Explorer.
In the Quick Launch, click Shared Documents to refresh the view of the document library.
The document, SharePoint Governance Plan, appears in the Shared Documents library.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
Results: After completing this exercise, you should have tested the functionality of Office Web Apps.
Lab Review
Question: Describe the business scenarios for which Office Web Apps are useful.
Answer: Answers will vary, but may include responses from users on non-Windows platforms who require
the ability to view and edit Word, PowerPoint, and Excel documents; scenarios in which multiple users
need to collaborate and make concurrent edits to documents; users who do not have the Microsoft Office
client applications installed; and remote users working from computers without Office client applications.
Module 12
Lab Answer Key: Installing and Upgrading to SharePoint
2010
Contents:
Lab A: Preparing SharePoint 2007 for Upgrade to SharePoint 2010
Exercise 1: Performing SQL Server Database Maintenance
11
13
Start 10174A-CONTOSO-DC-F.
After CONTOSO-DC has completed startup, start 10174A-SP2007-WFE1-F.
8.
Repeat steps 67 for the following databases. When you are finished, close the SQL Server
Management Studio.
WSS_Content_Intranet_IT.
WSS_Content_MySites.
SharePoint_AdminContent_GUID.
SharePoint_Config.
2.
3.
4.
5.
6.
7.
Click Start, click All Programs, click Microsoft Office Server, and then click SharePoint 3.0 Central
Administration. If prompted for credentials, provide Contoso\Administrator and the password
Pa$$w0rd.
Click the Application Management tab.
In the SharePoint Site Management section, click Create site collection.
In the Web Application section, ensure that http://intranet.contoso.com/ is selected.
In the Title box, type Sales.
In the URL box, type Sales.
In the Primary Site Collection Administrator section, in the User name box, type
CONTOSO\SP_Admin, and then click OK.
3.
To open the site listing in Notepad, type the following command and press ENTER:
notepad C:\SiteList.xml
4.
Site Url="http://intranet.contoso.com"
Site Url="http://intranet.contoso.com/sites/IT"
Confirm that the only remaining Site element is for the Sales site collection.
5.
6.
7.
8.
9.
iisreset
2.
3.
4.
Observe that the WSS_Content_Intranet_Sales content database now contains one site.
Switch to Administrator: Command Prompt.
To export an XML listing of sites in the intranet Web application, type the following command:
"C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\12\Bin\stsadm.exe" -o enumsites -url http://intranet.contoso.com >
C:\SiteList.xml
5.
6.
7.
8.
9.
7.
8.
9.
10. Repeat the preceding steps to back up and truncate the WSS_Content_Intranet_Sales database. Use
the following query:
use WSS_Content_Intranet_Sales
dbcc shrinkfile ('WSS_Content_Intranet_Sales')
dbcc shrinkfile ('WSS_Content_Intranet_Sales_log')
go
backup database WSS_Content_Intranet_Sales to disk =
'C:\Backups\WSS_Content_Intranet_Sales.bak'
go
backup log WSS_Content_Intranet_Sales to disk =
'C:\Backups\WSS_Content_Intranet_Sales_log.bak'
go
dbcc shrinkfile ('WSS_Content_Intranet_Sales')
dbcc shrinkfile ('WSS_Content_Intranet_Sales_log')
go
11. Repeat the preceding steps to back up and truncate the WSS_Content_MySites database. Use the
following query:
use WSS_Content_MySites
dbcc shrinkfile ('WSS_Content_MySites')
dbcc shrinkfile ('WSS_Content_MySites_log')
go
backup database WSS_Content_MySites to disk = 'C:\Backups\WSS_Content_MySites.bak'
go
backup log WSS_Content_MySites to disk = 'C:\Backups\WSS_Content_MySites_log.bak'
go
dbcc shrinkfile ('WSS_Content_MySites')
dbcc shrinkfile ('WSS_Content_MySites_log')
go
13. Confirm that the database and log backup files were created.
14. Close the C:\Backups folder.
15. Close SQL Server Management Studio. When prompted to save your changes, click No.
7.
8.
Click OK.
Click OK.
The content database is removed.
Lab Review
Question: Why did you defragment the database indexes before the upgrade?
Answer: A fragmented database means the upgrade will take longer. By reducing the database
fragmentation, you speed up the movement from one database schema to another.
Start 10174A-CONTOSO-DC-F.
After CONTOSO-DC has completed startup, start 10174A-SP2007-WFE1-G.
4.
5.
Click Yes.
On the Specify Farm Security Settings page, type 10174_SharePoint_2010 in the Passphrase and
Confirm passphrase boxes.
6. Click Next.
7. On the Visual Upgrade page, review the message and options.
8. Click Preserve the look and feel of existing SharePoint Sites, and allow end users to update
their sites user experience.
9. Click Next.
10. On the Completing the SharePoint Products Configuration Wizard page, click Next.
A SharePoint Products Configuration Wizard message opens.
The message reminds you to install the binaries on all servers in the farm before you run the wizard.
11. Click OK.
SharePoint 2010 is configured.
12. On the Configuration Successful, Upgrade In Progress page, read the message, and then click
Finish.
SharePoint 2010 Central Administration opens.
In SharePoint 2010 Central Administration, on the Upgrade Status page, confirm that Status is
Succeeded.
Note: You might need to wait a few minutes before the upgrade completes. Press F5 to refresh the
page, and then return to step 1.
10
2.
3.
4.
5.
Identify the Log File that contains a record of events during the upgrade.
Open the log file in Notepad.
Press CTRL+F, and then type [Warning].
6.
4.
5.
6.
3.
4.
5.
Click the Web Application list, and then click Change Web Application.
Click SharePoint - intranet.contoso.com80.
Confirm that three databases are attached to the intranet Web application.
11
12
6.
7.
Click WSS_Content_Intranet.
In the Database Versioning section, confirm that the
Microsoft.SharePoint.Administration.SPContentDatabase Current Schema Version is
14.0.4762.1000.
6.
13
In the information bar, click View or modify this sites Visual Upgrade settings.
Click Use the previous user interface, and click OK.
Click the Home tab.
In the Quick Launch, click Calendar.
Observe the SharePoint 2007 user interface.
3.
Click Site Actions, and then observe that the Visual Upgrade command no longer appears.
Lab Review
Question: Why did you detach the content databases before the upgrade?
Answer: Although the content databases in this lab are small, the ones you may have in production could
be very large. Rather than upgrade in place, you can use the database attach approach to migrate the
content one database, or many, at a time.
Question: Why would you want to choose the visual upgrade approach?
Answer: Some customization may not work properly with the new master pages of SharePoint 2010. By
doing a visual upgrade, you can keep the old look and test the new look and feel for any incompatibilities.
Module 13
Lab Answer Key: Implementing Business Continuity
Contents:
Lab A: Implementing a Backup Strategy
Exercise 1: Backing Up SharePoint Using Central Administration
10
12
Start 10174A-CONTOSO-DC-E.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-E.
Note: In a production environment, you should configure NTFS permissions that ensure the least
privilege access to the folder. The service account that performs the backup operation should be given
Full Control permission to the backup share.
10.
11.
12.
13.
14.
15.
16.
17.
18.
Click OK.
Click the Sharing tab.
Click Advanced Sharing.
Select the Share this folder check box.
Click Permissions.
Select Allow check box next to Full Control.
Click OK.
Click OK.
Click Close.
2.
3.
4.
Click Yes.
In the Quick Launch, click Backup and Restore.
In the Farm Backup and Restore section, click Perform a Backup.
The Perform a Backup Step 1 of 2: Select Component to Back Up page opens.
5.
Farm
Various solutions and services
Microsoft Office InfoPath Forms Services
SharePoint Server State Service
6.
7.
8.
9.
4.
5.
6.
7.
8.
9.
10.
11.
Double-click spbackup.log.
Examine the log. Observe that each of the backup operations is listed, including the T-SQL commands
that were sent to Microsoft SQL Server.
3.
4.
5.
6.
11. Press F3 to find the next instance of the text, BACKUP DATABASE. Repeat this step as necessary to
locate the backup command that was used to back up the WSS_Content_Intranet_IT database.
Answer the following question:
Which database backup (.bak) file in the backup folder contains that SharePoint database? Write
down the file name. You will need it in Lab 13B.
6.
7.
8.
Click Start, point to Administrative Tools, and then click Task Scheduler.
In the Actions panel, click Create Basic Task.
On the Create Basic Task page, in the Name box, type
Backup SharePoint - FULL.
In the Description box, type Back up the SharePoint farm.
Click Next.
On the Trigger page, click Daily.
Click Next.
On the Daily page, configure the Start time to 1:00 AM.
Click Next.
On the Action page, click Start a program.
Click Next.
On the Start a Program page, in the Program/script box, type PowerShell.exe.
In the Add arguments (optional) box, type C:\Scripts\backup.ps1.
Click Next.
On the Summary page, select the Open the Properties dialog for this task when I click Finish
check box.
Click Finish.
Click Change User or Group.
Type CONTOSO\SP_Farm and then click OK.
On the General tab, in the Security options section, click Run whether user is logged on or not.
Select the Run with highest privileges check box.
Click OK.
The Task Scheduler dialog box appears.
4.
Tip: It may take up to 60 seconds for the script to call the backup APIs, and for the new backup folder
to appear.
The operation to perform a full backup of the entire farm can take up to 30 minutes to complete.
Tip: You may continue to the next task.
4.
5.
6.
7.
8.
9.
Examine the information that is presented on the Backup and Restore Job Status page.
Click View History.
Examine the information that is presented on the Backup and Restore History page.
Click Backup and Restore Job Status to return to the status page.
Wait for the Phase to be Completed before continuing to the next lab.
Close all open applications and windows.
Do not turn off the virtual machines. Allow the backup operation to continue until it has completed.
You will use the same virtual machines in the next lab to perform restore operations.
Lab Review
Question: Does SharePoint automatically clean your Spbrtoc.xml file when you delete a corresponding
backup directory?
Answer: No, you are responsible for cleaning out any backup entries from this file. This can be done using
Windows PowerShell.
4.
5.
Select the radio button next to Farm in the first (oldest) backup.
Click Next.
The Restore from Backup Step 2 of 3 page opens.
6.
7.
8.
9. Click OK.
10. In the Login Names and Passwords section, in the Password box, type Pa$$w0rd.
11. Click Start Restore.
A timer job is created to perform the restore of the selected item(s).
The Backup and Restore Job Status page opens. The page refreshes every few seconds. You can click
Refresh to refresh the page manually.
12. Wait until Phase shows as Completed.
Switch to the instance of Internet Explorer that displays the error page from Task 2.
In the address bar, type http://intranet.contoso.com, and then press ENTER.
After a few moments, the intranet site opens.
10
7.
8.
9.
10.
11.
12.
13.
Close Notepad.
In Windows Explorer, open the spbr0001 folder.
Right-click Sprestore.xml, and then click Edit.
Examine the Sprestore.xml file.
This file contains attributes related to the restore operation and to each of the components. You
should not modify, delete, or rename the sprestore.xml file.
Double-click Sprestore.log.
Press CTRL+END to navigate to the end of the log.
Observe the last lines of the log, which indicate that the backup completed and summarizes the
number of warnings and errors.
Press CTRL+HOME to navigate to the top of the log.
Press CTRL+F, then type Progress: Starting Restore, and then press ENTER.
This step locates the beginning of the restore operation.
6.
In the Find dialog box, in the Find what box, type Warning: and then press ENTER.
Which database backup (.bak) file in the backup folder contains that SharePoint database?
11
12
Click Start, click All Programs, click Microsoft SQL Server 2008 R2, hold the SHIFT key and rightclick SQL Server Management Studio, and then click Run as different user.
The Windows Security dialog box appears.
2.
Enter the user name, CONTOSO\Administrator, and the password, Pa$$w0rd, and then click OK.
The Connect to Server dialog box appears.
3.
4.
5.
6.
7.
8.
Click Connect.
Expand Databases.
Right-click Databases, and then click Restore Database.
In the To Database box, type WSS_Content_Intranet_IT_Backup.
Click From device.
Click the browse button, which is displayed with ellipses ().
The Specify Backup dialog box appears.
9. Click Add.
10. Select C:\SharePointBackup\spbr0000\00000xxx.bak, where 00000xxx.bak is the backup of the
WSS_Content_Intranet_IT database that you identified in Lab A, Exercise 2, Task 2.
11. Click OK.
12. Click OK.
13. In the Select the backup sets to restore box, select the check box next to
WSS_Content_Intranet_IT.
Tip: If you do not see WSS_Content_Intranet_IT listed, it is because you did not restore the correct
database. Return to Lab A, Exercise 2, Task 2 to identify the database that contains
WSS_Content_Intranet_IT. Then repeat Task 1 of this exercise.
14. Click OK.
A message appears indicating that the restore operation was successful.
15. Click OK.
Switch to the instance of Internet Explorer that displays the intranet site.
In the address bar, type http://intranet.contoso.com/sites/IT, and then press ENTER.
In the Quick Launch, click Shared Documents.
On the ribbon, click the Library tab.
Click Library Settings.
In the Permissions and Management section, click Delete this document library.
A confirmation message appears.
7.
Click OK.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
Click the Site Collection list, and then click Change Site Collection.
Click /sites/IT.
Click OK.
Click the Site list, and then click Change Site.
Click /sites/IT.
Click OK.
Click the List down list, and then click Change List.
Click the next page button, which is displayed as a right-pointing arrow in the upper-right corner of
the page.
Click Shared Documents.
Click OK.
Click Export site or list.
Click Next.
In the Filename box, type \\SP2010-WFE1.contoso.com\SharePointBackup
\ITSharedDocuments.cmp.
Select the Export full security check box.
Click Start Export.
The Granular Backup Job Status page appears
22. Press F5 to refresh the page. Monitor the Current Job section. Wait until Status is No operation in
progress.
23. Confirm that in the Previous Job section, Status is Succeeded. Repeat steps 22 and 23 until the
Status of the Previous Job is Succeeded.
2.
Open SharePoint 2010 Management Shell as Contoso\SP_Farm with the password of Pa$$w0rd.
To do this, hold down the shift key, right click SharePoint 2010 Management Shell and then click
Run as different user.
To import the document library, type the following command:
Import-SPWeb -identity http://intranet.contoso.com/Sites/IT -path
c:\SharePointBackup\ITSharedDocuments.cmp
13
14
Switch to the instance of Internet Explorer that displays the All Site Content page of the
Information Technology Web.
Press F5 to refresh the page.
Confirm that the Shared Documents document library is restored.
5.
Click OK.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
Click the Site Collection list, and then click Change Site Collection.
Click /sites/IT.
Click OK.
Click the Site list, and then click Change Site.
Click /sites/IT.
Click OK.
Click the List down list, and then click Change List.
Select Announcements.
Click OK.
Click Export Site or list.
Click Next.
In the Filename box, type \\SP2010-WFE1.contoso.com\SharePointBackup
\ITAnnouncements.cmp.
19. Select the Export full security check box.
20. Click Start Export.
The Granular Backup Job Status page appears
21. Press F5 to refresh the page. Monitor the Current Job section. Wait until Status is No operation in
progress.
22. Confirm that in the Previous Job section, Status is Succeeded. Confirm that the Completed time is
current, indicating that the job is the export job that you just performed. Repeat steps 21 and 22 until
the Status of the Previous Job is Succeeded, and the Completed time is current.
15
Switch to the instance of Internet Explorer that displays the All Site Content page of the
Information Technology Web.
Press F5 to refresh the page.
Confirm that the Announcements list is restored.
Lab Review
Question: Can you use Central Administration to restore a list to a site?
Answer: No, the out of the box Central Administration site does not have this functionality; you must use
the PowerShell cmdlet Import-SPWeb to restore the exported list.
Question: Can you restore a single document using Central Administration?
Answer: No, you cannot restore a single document. You would need to restore the library to a temporary
location and then download the item you are looking for.
Module 14
Lab Answer Key: Monitoring and Optimizing SharePoint
Performance
Contents:
Lab A: Configuring SharePoint Monitoring
Exercise 1: Configuring SharePoint Diagnostic Logging
Start 10174A-CONTOSO-DC-D.
After CONTOSO-DC has completed startup, start 10174A-SP2010-WFE1-D.
3.
4.
5.
Click Yes.
In the Quick Launch, click Monitoring.
In the Reporting section, click Configure diagnostic logging.
The Diagnostic Logging page opens.
6.
7.
8.
9.
Note: It is not recommended you configure a trace log level of Verbose in a production environment.
10. In the Event Log Flood Protection section, select the Enable Event Log Flood Protection option.
Event log flood protection is a new setting that prevents the repetitive logging of redundant events.
11. In the Trace Log section, select the Restrict Trace Log disk space usage option.
12. In the Maximum storage space for Trace Logs (GB) box, type 10, and then click OK.
2.
3.
4.
Click Yes.
In the Quick Launch, click Monitoring.
In the Health Analyzer section, click Review problems and solutions.
The Review Problems And Solutions page opens.
5.
3.
Security4 rules
Performance17 rules
Configuration30 rules
Availability13 rules
Tip: The list of rules is paged. Click the Next Page button, displayed as a right-pointing arrow below
the list, to see additional rules.
4.
In the Availability section, click Some content databases are growing too large.
The Health Analyzer Rule Definitions page opens.
5.
6.
Title
Scope
Schedule
Enabled
Repair Automatically
Version
Note: You cannot change the actions that the rule uses to perform its health analysis task. The rules
actions are determined by the code used to develop the rule.
7.
8.
In the Availability section, click Some content databases are growing too large.
Click Run Now.
Click Close.
At the bottom of the list of rules, click the previous page link, which is displayed as a left-pointing
arrow.
In the Configuration section, click One or more categories are configured with Verbose trace
logging.
Click Run Now.
Click Close.
3.
4.
In the Configuration section, observe that a new problem is reported: One or more categories are
configured with Verbose trace logging.
Click One or more categories are configured with Verbose trace logging.
The problem details page opens.
5.
6.
7.
8.
Click One or more categories are configured with Verbose trace logging.
Click Repair automatically.
Click Close.
Press F5 to refresh the view of the page. Repeat this step until the problem report disappears.
3.
4.
5.
6.
7.
8.
In the Configuration section, click One or more categories are configured with Verbose trace
logging.
9. Click Run Now.
10. Click Close.
11. In the Quick Launch, click Monitoring.
12. In the Health Analyzer section, click Review problems and solutions.
The Review Problems And Solutions page opens.
13. Confirm that the report does not include the problem One or more categories are configured with
Verbose trace logging.
14. Close all open applications and windows.
Do not turn off the virtual machines. You use the same virtual machines in the next lab.
Lab Review
Question: How often do Health Analyzer rules run, and when might you want to run them manually?
Answer: Each rule has its own schedule. You can run a rule manually when you suspect a problem that is
evaluated by a rule. If the rule finds a problem, you can in some cases click the Repair Automatically
button to fix the problem.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
Results: After this exercise, you should have executed the logging timer jobs to populate the logging
database.
8.
9.
Click Start, click All Programs, click Microsoft Office, and then click Microsoft Excel 2010.
Microsoft Office Excel opens.
2.
3.
4.
5.
6.
7.
8.
On the Connect To Database Server page, in the Server name box, type SP2010-WFE1.
Click Next.
On the Select Database And Table page, in the Select the database that contains the data you
want list, select WSS_Logging.
9. In the list of tables, select TimerJobUsage_PartitionXX table, where XX is the ConfigValue value
you obtained in Task 1.
10. Click Next.
11. On the Save Data Connection File And Finish page, click Finish.
The Import Data dialog box appears.
12. Click PivotTable Report, and then click OK.
13. In the PivotTable Field List panel, in the Choose fields to add to report list, select the following
options in the order listed:
MachineName
WebApplicationName
JobTitle
14. Drag the Duration field from the field list to the Values box.
You now have a report of timer job durations presented by server, by webapplication, and by
timerjob.
Lab Review
Question: Why is it important that you run queries against the logging database rather than the
Microsoft SharePoint content databases?
Answer: The logging database is configured to support any SELECT query, whereas the content database
must have special locking hints specified when doing queries. Third-party queries and applications could
cause locking and latency of the Web front ends, and therefore it is not recommended or supported to
run queries directly against SharePoint databases.