Beruflich Dokumente
Kultur Dokumente
10174B
Configuring and Administering Microsoft®
SharePoint® 2010
Volume 2
MCT USE ONLY. STUDENT USE PROHIBITED
ii 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.
© 2012 Microsoft Corporation. All rights reserved.
Released: 02/2012
MCT USE ONLY. STUDENT USE PROHIBITED
MICROSOFT LICENSE TERMS
OFFICIAL MICROSOFT LEARNING PRODUCTS
MICROSOFT OFFICIAL COURSE Pre-Release and Final Release Versions
These license terms are an agreement between Microsoft Corporation and you. Please read them. They apply to
the Licensed Content named above, which includes the media on which you received it, if any. These license
terms also apply to any updates, supplements, internet based services and support services for the Licensed
Content, unless other terms accompany those items. If so, those terms apply.
BY DOWNLOADING OR USING THE LICENSED CONTENT, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT
THEM, DO NOT DOWNLOAD OR USE THE LICENSED CONTENT.
If you comply with these license terms, you have the rights below.
1. DEFINITIONS.
a. “Authorized Learning Center” means a Microsoft Learning Competency Member, Microsoft IT Academy
Program Member, or such other entity as Microsoft may designate from time to time.
b. “Authorized Training Session” means the Microsoft-authorized instructor-led training class using only
MOC Courses that are conducted by a MCT at or through an Authorized Learning Center.
c. “Classroom Device” means one (1) dedicated, secure computer that you own or control that meets or
exceeds the hardware level specified for the particular MOC Course located at your training facilities or
primary business location.
d. “End User” means an individual who is (i) duly enrolled for an Authorized Training Session or Private
Training Session, (ii) an employee of a MPN Member, or (iii) a Microsoft full-time employee.
e. “Licensed Content” means the MOC Course and any other content accompanying this agreement.
Licensed Content may include (i) Trainer Content, (ii) software, and (iii) associated media.
f. “Microsoft Certified Trainer” or “MCT” means an individual who is (i) engaged to teach a training session
to End Users on behalf of an Authorized Learning Center or MPN Member, (ii) currently certified as a
Microsoft Certified Trainer under the Microsoft Certification Program, and (iii) holds a Microsoft
Certification in the technology that is the subject of the training session.
g. “Microsoft IT Academy Member” means a current, active member of the Microsoft IT Academy
Program.
h. “Microsoft Learning Competency Member” means a Microsoft Partner Network Program Member in
good standing that currently holds the Learning Competency status.
i. “Microsoft Official Course” or “MOC Course” means the Official Microsoft Learning Product instructor-
led courseware that educates IT professionals or developers on Microsoft technologies.
MCT USE ONLY. STUDENT USE PROHIBITED
j. “Microsoft Partner Network Member” or “MPN Member” means a silver or gold-level Microsoft Partner
Network program member in good standing.
k. “Personal Device” means one (1) device, workstation or other digital electronic device that you
personally own or control that meets or exceeds the hardware level specified for the particular MOC
Course.
l. “Private Training Session” means the instructor-led training classes provided by MPN Members for
corporate customers to teach a predefined learning objective. These classes are not advertised or
promoted to the general public and class attendance is restricted to individuals employed by or
contracted by the corporate customer.
m. “Trainer Content” means the trainer version of the MOC Course and additional content designated
solely for trainers to use to teach a training session using a MOC Course. Trainer Content may include
Microsoft PowerPoint presentations, instructor notes, lab setup guide, demonstration guides, beta
feedback form and trainer preparation guide for the MOC Course. To clarify, Trainer Content does not
include virtual hard disks or virtual machines.
2. INSTALLATION AND USE RIGHTS. The Licensed Content is licensed not sold. The Licensed Content is
licensed on a one copy per user basis, such that you must acquire a license for each individual that
accesses or uses the Licensed Content.
2.1 Below are four separate sets of installation and use rights. Only one set of rights apply to you.
ii. Use of Instructional Components in Trainer Content. You may customize, in accordance with the
most recent version of the MCT Agreement, those portions of the Trainer Content that are logically
associated with instruction of a training session. If you elect to exercise the foregoing rights, you
agree: (a) that any of these customizations will only be used for providing a training session, (b) any
customizations will comply with the terms and conditions for Modified Training Sessions and
Supplemental Materials in the most recent version of the MCT agreement and with this agreement.
For clarity, any use of “customize” refers only to changing the order of slides and content, and/or
not using all the slides or content, it does not mean changing or modifying any slide or content.
2.2 Separation of Components. The Licensed Content components are licensed as a single unit and you
may not separate the components and install them on different devices.
2.4 Third Party Programs. The Licensed Content may contain third party programs or services. These
license terms will apply to your use of those third party programs or services, unless other terms accompany
those programs and services.
2.5 Additional Terms. Some Licensed Content may contain components with additional terms,
conditions, and licenses regarding its use. Any non-conflicting terms in those conditions and licenses also
apply to that respective component and supplements the terms described in this Agreement.
3. PRE-RELEASE VERSIONS. If the Licensed Content is a pre-release (“beta”) version, in addition to the other
provisions in this agreement, then these terms also apply:
a. Pre-Release Licensed Content. This Licensed Content is a pre-release version. It may not contain the
same information and/or work the way a final version of the Licensed Content will. We may change it
for the final version. We also may not release a final version. Microsoft is under no obligation to
provide you with any further content, including the final release version of the Licensed Content.
b. Feedback. If you agree to give feedback about the Licensed Content to Microsoft, either directly or
through its third party designee, you give to Microsoft without charge, the right to use, share and
commercialize your feedback in any way and for any purpose. You also give to third parties, without
charge, any patent rights needed for their products, technologies and services to use or interface with
any specific parts of a Microsoft software, Microsoft product, or service that includes the feedback. You
will not give feedback that is subject to a license that requires Microsoft to license its software,
technologies, or products to third parties because we include your feedback in them. These rights
MCT USE ONLY. STUDENT USE PROHIBITED
survive this agreement.
c. Term. If you are an Authorized Training Center, MCT or MPN, you agree to cease using all copies of the
beta version of the Licensed Content upon (i) the date which Microsoft informs you is the end date for
using the beta version, or (ii) sixty (60) days after the commercial release of the Licensed Content,
whichever is earliest (“beta term”). Upon expiration or termination of the beta term, you will
irretrievably delete and destroy all copies of same in the possession or under your control.
4. INTERNET-BASED SERVICES. Microsoft may provide Internet-based services with the Licensed Content,
which may change or be canceled at any time.
a. Consent for Internet-Based Services. The Licensed Content may connect to computer systems over an
Internet-based wireless network. In some cases, you will not receive a separate notice when they
connect. Using the Licensed Content operates as your consent to the transmission of standard device
information (including but not limited to technical information about your device, system and
application software, and peripherals) for internet-based services.
b. Misuse of Internet-based Services. You may not use any Internet-based service in any way that could
harm it or impair anyone else’s use of it. You may not use the service to try to gain unauthorized access
to any service, data, account or network by any means.
5. SCOPE OF LICENSE. The Licensed Content is licensed, not sold. This agreement only gives you some rights
to use the Licensed Content. Microsoft reserves all other rights. Unless applicable law gives you more
rights despite this limitation, you may use the Licensed Content only as expressly permitted in this
agreement. In doing so, you must comply with any technical limitations in the Licensed Content that only
allows you to use it in certain ways. Except as expressly permitted in this agreement, you may not:
• install more copies of the Licensed Content on devices than the number of licenses you acquired;
• allow more individuals to access the Licensed Content than the number of licenses you acquired;
• publicly display, or make the Licensed Content available for others to access or use;
• install, sell, publish, transmit, encumber, pledge, lend, copy, adapt, link to, post, rent, lease or lend,
make available or distribute the Licensed Content to any third party, except as expressly permitted
by this Agreement.
• reverse engineer, decompile, remove or otherwise thwart any protections or disassemble the
Licensed Content except and only to the extent that applicable law expressly permits, despite this
limitation;
• access or use any Licensed Content for which you are not providing a training session to End Users
using the Licensed Content;
• access or use any Licensed Content that you have not been authorized by Microsoft to access and
use; or
• transfer the Licensed Content, in whole or in part, or assign this agreement to any third party.
6. RESERVATION OF RIGHTS AND OWNERSHIP. Microsoft reserves all rights not expressly granted to you in
this agreement. The Licensed Content is protected by copyright and other intellectual property laws and
treaties. Microsoft or its suppliers own the title, copyright, and other intellectual property rights in the
Licensed Content. You may not remove or obscure any copyright, trademark or patent notices that
appear on the Licensed Content or any components thereof, as delivered to you.
MCT USE ONLY. STUDENT USE PROHIBITED
7. EXPORT RESTRICTIONS. The Licensed Content is subject to United States export laws and regulations. You
must comply with all domestic and international export laws and regulations that apply to the Licensed
Content. These laws include restrictions on destinations, End Users and end use. For additional
information, see www.microsoft.com/exporting.
8. LIMITATIONS ON SALE, RENTAL, ETC. AND CERTAIN ASSIGNMENTS. You may not sell, rent, lease, lend or
sublicense the Licensed Content or any portion thereof, or transfer or assign this agreement.
9. SUPPORT SERVICES. Because the Licensed Content is “as is”, we may not provide support services for it.
10. TERMINATION. Without prejudice to any other rights, Microsoft may terminate this agreement if you fail
to comply with the terms and conditions of this agreement. Upon any termination of this agreement, you
agree to immediately stop all use of and to irretrievable delete and destroy all copies of the Licensed
Content in your possession or under your control.
11. LINKS TO THIRD PARTY SITES. You may link to third party sites through the use of the Licensed Content.
The third party sites are not under the control of Microsoft, and Microsoft is not responsible for the
contents of any third party sites, any links contained in third party sites, or any changes or updates to third
party sites. Microsoft is not responsible for webcasting or any other form of transmission received from
any third party sites. Microsoft is providing these links to third party sites to you only as a convenience,
and the inclusion of any link does not imply an endorsement by Microsoft of the third party site.
12. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates and support services are
the entire agreement for the Licensed Content.
b. Outside the United States. If you acquired the Licensed Content in any other country, the laws of that
country apply.
14. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of
your country. You may also have rights with respect to the party from whom you acquired the Licensed
Content. This agreement does not change your rights under the laws of your country if the laws of your
country do not permit it to do so.
15. DISCLAIMER OF WARRANTY. THE LICENSED CONTENT IS LICENSED "AS-IS," "WITH ALL FAULTS," AND "AS
AVAILABLE." YOU BEAR THE RISK OF USING IT. MICROSOFT CORPORATION AND ITS RESPECTIVE
AFFILIATES GIVE NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS UNDER OR IN RELATION TO
THE LICENSED CONTENT. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS
WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS,
MICROSOFT CORPORATION AND ITS RESPECTIVE AFFILIATES EXCLUDE ANY IMPLIED WARRANTIES OR
CONDITIONS, INCLUDING THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NON-INFRINGEMENT.
MCT USE ONLY. STUDENT USE PROHIBITED
16. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. TO THE EXTENT NOT PROHIBITED BY
LAW, YOU CAN RECOVER FROM MICROSOFT CORPORATION AND ITS SUPPLIERS ONLY DIRECT
DAMAGES UP TO USD$5.00. YOU AGREE NOT TO SEEK TO RECOVER ANY OTHER DAMAGES, INCLUDING
CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES FROM MICROSOFT
CORPORATION AND ITS RESPECTIVE SUPPLIERS.
It also applies even if Microsoft knew or should have known about the possibility of the damages. The
above limitation or exclusion may not apply to you because your country may not allow the exclusion or
limitation of incidental, consequential or other damages.
Please note: As this Licensed Content is distributed in Quebec, Canada, some of the clauses in this agreement
are provided below in French.
Remarque : Ce le contenu sous licence étant distribué au Québec, Canada, certaines des clauses dans ce
contrat sont fournies ci-dessous en français.
EXONÉRATION DE GARANTIE. Le contenu sous licence visé par une licence est offert « tel quel ». Toute
utilisation de ce contenu sous licence est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie
expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection dues
consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties
implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues.
Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage.
Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects,
accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera
pas à votre égard.
EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus
par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays
si celles-ci ne le permettent pas.
Acknowledgements
Microsoft Learning would like to acknowledge and thank the following for their contribution towards
developing this title. Their effort at various stages in the development has ensured that you have a good
classroom experience.
Alistair Matthews
A consultant with extensive and cutting-edge experience in Microsoft technologies, Alistair has
spent the last 10 years developing with, consulting on, and communicating about both the
developer and IT professional sides of SharePoint, Visual Studio, Active Directory, Exchange, and
Windows. He is currently most interested in SharePoint Web Content Management and likes to
impress clients with elegant publishing workflows and custom UI elements. He’s also more excited
about Office 365 than he cares to admit. Alistair has a particular passion for writing about technology and
has contributed to many Microsoft Learning courses, MSDN and TechNet articles, and white papers. He is the
principal consultant at Web Dojo Ltd and lives the telecommuting dream in Cornwall, UK.
SharePoint technologies, BizTalk, Commerce Server, and Content Management Server with other
Microsoft and non-Microsoft platforms.
Contents
Lab Answer Keys
MCT USE ONLY. STUDENT USE PROHIBITED
Lab: Installing SharePoint 2010 L1-1
5. Click Yes.
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.
/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
8. Click Yes.
9. Type the following commands, each followed by ENTER:
D:
CD Software\SharePointServer2010
PrerequisiteInstaller.exe
3. Click Yes.
4. Type 36BY2-DVVJY-6426X-PXWVQ-BM342, and then click Continue.
5. Select the I accept the terms of this agreement check box.
6. Click Continue.
7. Click Server Farm.
8. On the Server Type page, click Complete, and then click Install Now.
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.
1. Open D:\Software\SharePointServer2010\Files\SetupFarmSilent.
2. Right-click config.xml, and then click Edit.
3. Perform one of the following two tasks:
<Display AcceptEULA="yes"
Level="basic"
CompletionNotice="yes" />
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.
7. Click Yes.
8. Type the following command on one line, and then press ENTER:
"D:\Software\SharePointServer2010\setup.exe" /config
"D:\Software\SharePointServer2010\Files\SetupFarmSilent\
config.xml"
In a production environment in which you have configured the DisplayLevel value to “none,” you can
monitor the progress of the SharePoint installation using any of these methods:
• 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.
9. On the Run Configuration Wizard page, clear the Run the SharePoint Products Configuration
Wizard now check box.
10. Click Close.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab: Installing SharePoint 2010 L1-7
2. Click Yes.
A message appears to inform you that services may have to be started or reset.
4. Click Yes.
5. On the Connect to a server farm page, click Create a new server farm, and then click Next.
6. In the Database server box, type SP2010-WFE1.
7. In the Username box, type CONTOSO\SP_Farm.
8. In the Password box, type Pa$$w0rd.
9. Click Next.
10. 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.
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.
2. Click Yes.
3. Type the following command, and then press ENTER:
D:\Labfiles\Lab01\ConfigureSharePoint.ps1
MCT USE ONLY. STUDENT USE PROHIBITED
L1-8 Lab: Installing SharePoint 2010
The Windows PowerShell Credential Request dialog box appears to prompt you for the credentials of
the CONTOSO\SP_Farm account.
After a few moments, configuration status will be displayed. Configuration proceeds for 7-10 minutes.
The following warning is expected during the configuration of SharePoint:
• 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. Open Task Manager, click the Processes tab, and then select the Show processes from all
users check box.
b. Monitor processes including powershell.exe, sqlservr.exe, and owstimer.exe.
6. When prompted Press Enter to exit, press ENTER.
7. Close Windows PowerShell.
a. Click Start, click All Programs, click Microsoft SharePoint 2010 Products, and then click
SharePoint 2010 Central Administration.
2. Click Yes.
After a few moments, Central Administration opens.
Farm service applications are created and started. This takes several minutes. Optionally, you can
open SQL Server Management Studio and refresh the view of the Databases node to monitor the
creation of service application databases.
When the configuration is complete, the Create Site Collection page opens.
2. Click Yes.
3. Select the J’accepte les termes de ce contrat check box.
4. Click Continuer.
5. On the Exécuter l’Assistant Configuration page, clear the Exécuter l’Assistant Configuration des
produits SharePoint check box.
6. Click Fermer.
2. Click Yes.
After a few minutes, the SharePoint 2010 Products Configuration Wizard appears.
A message appears to inform you that services may have to be started or reset.
4. Click Yes.
3. Click Yes.
4. In the Central Administration Quick Launch, click Application Management.
5. In the Web Applications section, click Manage web applications.
6. On the Web Applications tab of the ribbon, click New.
Microsoft® SharePoint® can now use Claims Based Authentication, which is discussed in Module 5.
8. In the IIS Web Site section, in the Port box, type 80.
9. In the Host Header box, type intranet.contoso.com.
10. Make no changes to the Security Configuration and Public URL sections.
11. In the Application Pool section, ensure that Create new application pool is selected.
12. 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.
The Web application and content database will be created. When it is complete, the Application
Created page opens.
The new Web application is displayed on the Web Applications Management page.
MCT USE ONLY. STUDENT USE PROHIBITED
L2-2 Lab: Creating a SharePoint 2010 Intranet
If not, click the button, then click Change Web Application, and then click SharePoint –
intranet.contoso.com80.
9. Click OK.
Answer: The browser cannot resolve the name intranet.contoso.com. There is no DNS record for
intranet.contoso.com.
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.
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.
All users with Active Directory accounts in the CONTOSO domain can now access the intranet site.
MCT USE ONLY. STUDENT USE PROHIBITED
L2-4 Lab: Creating a SharePoint 2010 Intranet
If not, click the button, then click Change Web Application, and then click SharePoint –
intranet.contoso.com80.
The result will be the URL for the site collection: http://intranet.contoso.com
/sites/IT.
6. In the Template Selection section, ensure that the Team Site site definition is selected.
7. In the Primary Site Collection Administrator section, in the User name box, type
CONTOSO\SP_Admin.
8. 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.
3. To identify the assemblies that are currently loaded, type the following command and then press
ENTER:
Microsoft.SharePoint.dll is not in the list. To use the Microsoft® SharePoint® object model, you must
load the SharePoint .dll files.
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
The output displays global assembly cache (GAC), version, and location information for the assembly.
Tip: You can press the UP ARROW to scroll through previously executed commands.
Get-PSSnapin
The output lists the snap-ins that have been added to the current session. The SharePoint snap-in is
not listed.
Get-PSSnapin –Registered
MCT USE ONLY. STUDENT USE PROHIBITED
L3-2 Lab A: Automating SharePoint with Windows PowerShell
The output lists the snap-ins that are registered on the system, except for those that are installed with
Windows PowerShell.
Add-PSSnapin Microsoft.SharePoint.PowerShell
Get-PSSnapin
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:
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:
The listing demonstrates that SharePoint 2010 Management Shell preloads the SharePoint .dll files.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Automating SharePoint with Windows PowerShell L3-3
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.
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.
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:
Get-SPSite
An error indicates that the Windows PowerShell Integrated Scripting Environment feature is not
installed.
Import-Module ServerManager
Add-WindowsFeature PowerShell-ISE
An error indicates that you must run the command with elevated rights.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Automating SharePoint with Windows PowerShell L3-5
2. Right-click the Windows PowerShell icon in the Windows taskbar, and then click Run as
Administrator.
3. Click Yes.
4. 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.
A site collection and top-level web for the Sales department is created using the Team Site site
definition.
$i = ("HR", "Marketing")
ForEach($url in $i)
{
New-SPContentDatabase -Name WSS_Content_Intranet_$url -WebApplication
http://intranet.contoso.com
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
$gc = Start-SPAssignment
$splist = $spsite.rootweb.lists["Announcements"]
$splistitem = $splist.items[0]
$splistitem["Title"] = "Our SharePoint 2010 Sales site is now live!"
$splistitem.update()
$gc | Stop-SPAssignment
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. Switch to Internet Explorer, and then press F5 to refresh the view of the Announcements list.
6. Observe the updated title of the announcement.
7. Close all Internet Explorer and Windows PowerShell windows.
2. Click Yes.
3. 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:
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:
3. Repeat steps 1 and 2, and observe the amount of time it takes for each command to execute.
15. In the Column name box, type Computer Name, and then click OK.
16. Click the List tab, and then click Create Column.
17. In the Column name box, type Serial Number, and then click OK.
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.
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)
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring List Throttling and Remote BLOB Storage L4-3
$web.dispose()
$site.dispose()
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.
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.
10. Click OK.
18. Switch to the instance of Internet Explorer that displays the Computer Inventory list.
19. Click the List tab, and then click List Settings.
20. Verify that the List view threshold is 7000.
21. Close all open Internet Explorer windows.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring List Throttling and Remote BLOB Storage L4-5
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.
A message appears indicating that you must restart Microsoft® SQL Server®. Click OK.
3. To set the database master key, type the following query into the Query Editor:
use [WSS_Content_Intranet_IT]
6. To enable a new filegroup for your Remote BLOB Storage (RBS) provider, type the following query
into the Query Editor:
9. To add a file system mapping for your RBS provider, type the following query into the Query Editor:
2. Click Yes.
3. Type the following commands, and then press ENTER.
cd d:\labfiles\lab04
d:
Product: SQL Server 2008 R2 Remote Blob Store -- Installation completed successfully.
3. Close rbs_install_log1.
4. Switch to Microsoft SQL Server Management Studio.
5. In Object Explorer, right-click the root node SP2010-WFE1, and then click Refresh.
6. Expand Databases, expand WSS_Content_Intranet_IT, and then expand Tables.
7. Verify that several tables exist with names that begin with the letters mssqlrbs.
8. Close SQL Server Management Studio. When prompted to save changes, click No.
A message appears indicating that you need permission to access the folder.
2. Click Continue.
New User is displayed with a red, dashed underline. This indicates that the term does not exist.
7. Click the Browse for a valid choice button next to the Request Type box.
8. Click Add New Item.
9. Type New User, and then press ENTER.
10. Click Select, and then click OK.
11. Click Save.
12. Repeat the steps in this task to create the following support requests:
Create a new account for Sean Chai SeanC Sales New User
3. Click Yes.
4. Type the following commands:
cd c:\windows\microsoft.net\framework\v2.0.50727
aspnet_regsql.exe
cd c:\windows\microsoft.net\framework\v2.0.50727\config
notepad machine.config
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>
cd c:\windows\microsoft.net\framework64\v2.0.50727\config
notepad machine.config
2. Click Yes.
3. Execute the following commands:
$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
Ignore the error message that indicates the membership provider name specified is invalid.
4. Type the following command:
$status
$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
Ignore the error message that indicates the membership provider name specified is invalid.
$status
notepad web.config
2. Locate the <system.web> element, then locate the <membership> element, and then locate the
<providers> element.
3. Remove the <clear/> directive inside the <providers> element.
4. Locate the <roleManager> element, and then locate the <providers> element.
5. Remove the <clear/> directive inside the <providers> element.
6. Click File, and then click Save.
7. Close Notepad.
8. Close Administrator: Command Prompt.
MCT USE ONLY. STUDENT USE PROHIBITED
L5-4 Lab A: Configuring Custom Authentication
2. Click Yes.
3. In the Application Management section, click Manage web applications.
4. On the ribbon, click New.
5. In the Authentication section, click Claims Based Authentication.
6. In the Port box, type 80.
7. In the Host Header box, type clients.contoso.com.
8. 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.
9. Select Enable Forms Based Authentication (FBA).
10. In the ASP.NET Membership provider name box, type AspNetSqlMembershipProvider.
11. In the ASP.NET Role manager name box, type AspNetSqlRoleProvider.
12. In the Application Pool section, click Use existing application pool, and then select SharePoint –
80 (CONTOSO\SP_ServiceApps) from the drop-down list.
13. For the database name, type WSS_Content_Clients.
14. Click OK.
15. On the Application Created page, click the Create Site Collection link.
16. In the Title box, type CONTOSO Client Portal.
17. In the Template Selection section, click the Publishing tab, and then click Publishing Portal.
18. 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.
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.
9. Click OK.
10. Click Done.
11. Close DNS Manager.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L5-6 Lab A: Configuring Custom Authentication
Excel Services can now use the credentials in Secure Store to render spreadsheets and connect to
external data connections.
PerformancePoint will create its own Secure Store account based on the information you entered.
Visio can now execute diagrams and data connection refreshes using the unattended account
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.
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.
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.
7. Click Create.
8. Click Site Actions, and then click Site Permissions.
9. On the ribbon, click Create Group.
10. In the Name box, type Usage Monitors.
11. 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.
12. In the Give Group Permission to this Site section, select the View Usage check box.
13. Click Create.
14. Click the drop-down arrow next to the New button, and then click Add Users.
15. In the Users/Groups box, type CONTOSO\LolaJ, and then click OK.
An Access Denied error appears. This is because although you have permission to access Web
analytics data, you do not yet have permission to view the default application pages that present that
data.
Do not click the Usage Reports link because it will open the folder.
4. Click OK.
5. To select all permissions, click the check box in the column heading row, next to Name.
6. On the ribbon, click Remove User Permissions.
7. Click OK.
8. On the ribbon, click Grant Permissions.
9. In the Users/Groups box, type CONTOSO\LolaJ.
10. In the Grant Permissions box, select the Full Control check box, and then click OK.
The document library opens. You are able to see the Usage Reports folder but not the policies
document.
Results: After this exercise, you should have created a new Web application policy granting full Read
permission to the intranet for audit purposes.
6. Observe that a calendar or contact list are not shown as available options.
7. Close the Create page.
8. Click Site Actions, and then click Site Settings.
9. In the Site Actions section, click Manage site features.
10. In the Team Collaboration Lists row, click Activate.
11. Click Site Actions, and then click View All Site Content.
12. Click Create.
13. Observe that you can now create a calendar or contact list.
14. Close the Create page.
Each folder in the Features folder represents a feature on the Microsoft® SharePoint® server.
4. Press CTRL+V to paste the CustomAction folder into the Features folder.
5. Close the Features folder window.
6. Click Start, then click All Programs, then click Microsoft SharePoint 2010 Products, then right-
click SharePoint 2010 Management Shell, and then click Run as administrator.
7. Click Yes.
8. Type the following command and then press ENTER:
This will install a new feature into SharePoint that enables a simple custom action in the Site Actions
menu.
A Message from webpage window appears with the message, Hello World.
6. Click OK.
5. Click Yes.
6. In the Quick Launch, click System Settings.
7. In the Farm Management section, click Manage farm solutions.
8. Observe that the two solutions are installed, but are not deployed.
Results: After completing this exercise, you should have installed and deployed SharePoint solutions to
your farm.
Lab Review
Question: What is a disadvantage of deploying a feature, in contrast to a solution, to a farm with more
than one server?
MCT USE ONLY. STUDENT USE PROHIBITED
L7-4 Lab A: Administering Features and Solutions
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.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Administering Features and Solutions L7-5
6. Click Yes.
7. In the Quick Launch, click System Settings.
8. Click Manage services on server.
9. In the Microsoft SharePoint Foundation Sandboxed Code Service row, click Start.
Observe that the BadReceiver solution shows no resource usage. That is because the timer job has not
yet calculated the resource usage for the solution.
If you happened to see resource usage, then you were lucky! The timer jobs executed just in time.
Results: After completing this exercise, you should have deployed and tested the BadReceiver solution.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Administering Features and Solutions L7-7
2. Click Yes.
3. In the Quick Launch, click Monitoring.
4. In the Timer Jobs section, click Review job definitions.
5. 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.
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.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L7-8 Lab A: Administering Features and Solutions
2. Click Yes.
3. 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
This file contains a listing of the resource measures that are monitored for sandboxed solutions.
5. To find the section for database queries, press CTRL+F, then type SharePointDatabaseQueryCount,
and then press ENTER.
6. Record the current values of ResourcesPerPoint and AbsoluteLimit.
7. Close the file.
$spusercodeservice = [Microsoft.SharePoint.Administration.SPUserCodeService]::Local
$obj = $spusercodeservice.ResourceMeasures["SharePointDatabaseQueryCount"]
$obj.ResourcesPerPoint = 1
$obj.Update()
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.
iisreset
It will take a few seconds to load the Web, because you recently reset IIS.
7. Click Save.
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 saw resource usage, then you were lucky! The timer jobs executed just in time. Skip to step 13.
11. Repeat Task 1 of Exercise 2 to run the sandboxed solutions timer jobs.
12. Switch to the instance of Internet Explorer that displays the Solutions gallery for the IT intranet
Web.
13. Press F5 to refresh the page.
14. 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.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L7-10 Lab A: Administering Features and Solutions
$svc=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ddsetting=$svc.DeveloperDashboardSettings
$ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel
]::OnDemand
$ddsetting.Update()
$svc=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ddsetting=$svc.DeveloperDashboardSettings
$ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel
]::Off
$ddsetting.Update()
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Administering Features and Solutions L7-11
Results: After completing the exercise, you should have enabled and disabled the Developer
Dashboard on the IT intranet Web.
Lab Review
Answer: The Developer Dashboard exposes performance and debugging information that can be used to
monitor and improve the performance of pages and solutions.
MCT USE ONLY. STUDENT USE PROHIBITED
L7-12 Lab A: Administering Features and Solutions
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Administering SharePoint Services L8-1
4. Click Site Actions, and then click View All Site Content.
5. Click Documents.
6. On the ribbon, click Documents.
7. Click New Document.
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:
After a few moments, the Save As dialog displays the Documents library.
You must enable document conversion for each Web application and it requires several services to be
running.
2. Click Yes.
3. In the Quick Launch, click General Application Settings.
4. In the External Service Connections section, click Configure document conversions.
5. Click the Web Application list, and then click Change Web Application.
At the top of the page, a message appears that indicates you must choose a document conversion
server.
The Services On Server page opens. A list of all registered SharePoint Services is displayed.
3. In the Document Conversions Load Balancer Service row, click Start.
5. On the Launcher Service Settings page, in the Select Server section, verify that SP2010-WFE1 is
selected.
6. In the Load Balancer list, select SP2010-WFE1, and then click OK.
2. Click Yes.
3. Type the following command, and then press ENTER:
This will stop the SharePoint 2010 Timer service. When this Windows Service has stopped, your
SharePoint farm loses much of its functionality.
3. On the ribbon, click New, and then click Managed Metadata Service.
The Timer service must be running to process the jobs related to the creation of a service application.
2. Right-click the SharePoint 2010 Timer service, and then click Start.
3. Close the Services console.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Administering SharePoint Services L8-5
SharePoint will reconfigure services that use the farm account to now use the SP_Admin account.
4. In the Notification E-Mail Address box, type sharepoint@contoso.com, and then click OK.
Note: If you cannot select Enterprise, ensure that you are logged in as CONTOSO\Administrator.
13. On the Specify CA Type page, ensure that Root CA is selected, and then click Next.
14. On the Set Up Private Key page, click Next.
15. On the Configure Cryptography for CA page, click Next.
16. On the Configure CA Name page, click Next.
17. On the Set Validity Period page, click Next.
18. On the Configure Certificate Database page, click Next.
19. On the Confirm Installation Selections page, click Install.
20. On the Installation Results page, click Close.
A message indicates the following: There is a problem with this website’s security certificate.
This message appears because the certificate is issued by the server itself, not a trusted certificate
authority. In a production environment in which you had established your certificate authority using a
certificate from a trusted certificate root, this message would not appear.
3. Click Continue to this website (not recommended).
2. Click Yes.
3. In the Quick Launch, click Application Management.
4. In the Service Applications section, click Manage service applications.
6. Click OK.
7. Observe that there is an application proxy group labeled custom assigned to the intranet Web
application.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Administering SharePoint Services L8-11
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.
Because this lab contains only one farm, you cannot configure a trust relationship.
6. Click OK.
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.
5. In the Select the User Profile Application list, select User Profile Service Application.
6. In the Password and Confirm Password boxes, type Pa$$w0rd.
7. Click OK.
8. 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.
Note: It can take up to 5 minutes for the ProfileSynchronizationSetupJob to appear on the Running
Jobs list. If you don’t 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.
16. In the Timer Links section of the Quick Launch, click Job History.
17. Confirm that the Status of ProfileSynchronizationSetupJob is Succeeded.
18. In the Quick Launch, click System Settings.
19. In the Servers section, click Manage services on server.
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.
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.
2. Click Yes.
3. Type IISRESET, and then press ENTER.
4. After the command has completed, close Administrator: Command Prompt.
5. Confirm that there are numbers on the right side of the page, which indicates that the service
application is running.
6. Close SharePoint 2010 Central Administration.
MCT USE ONLY. STUDENT USE PROHIBITED
L9-4 Lab A: Configuring User Profiles
2. Enter the user name, CONTOSO\Administrator, and the password, Pa$$w0rd, and then click OK.
3. In the console tree, expand contoso.com.
4. Right-click contoso.com, and then click Delegate Control.
Note: This is the account used by the User Profile Synchronization Service in the Beta virtual machine.
A message box appears indicating that replicated data will not be deleted.
Tip: l (lowercase L) is the Lightweight Directory Access Protocol (LDAP) name for the locale, or city
attribute.
11. In the Profiles section, confirm that the Number of user profiles is 53 and confirm that Profile
Synchronization Status displays Idle.
7. Click OK.
8. Wait 30 seconds.
Note: You must type the text exactly as shown, with no space.
Note: You must type the text exactly as shown, with a space.
2. Enter the user name, CONTOSO\Administrator, the password, Pa$$w0rd, and then click OK.
3. On the Connect to Server dialog box, click the Connect button.
4. Expand Databases.
5. Expand AdventureWorks.
6. Expand Security.
7. Right-click Users, select New User.
8. In the User name box, type CONTOSO\SP_Admin.
9. In the Login name box, type CONTOSO\SP_Admin.
10. In the Database role membership list, select the db_owner check box.
11. Click OK.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring User Profiles L9-9
4. When prompted for credentials, use Contoso\SP_Admin with the password Pa$$w0rd.
5. In the Site Objects panel, click External Content Types.
5. Click AdventureWorks.
6. On the ribbon, click Set Object Permissions.
MCT USE ONLY. STUDENT USE PROHIBITED
L9-10 Lab A: Configuring User Profiles
Tip: The Select External Content Type button is the right-most button.
9. Click AdventureWorks.
10. Click OK.
11. Click Connect User Profile Store to Business Data Connectivity Entity as a 1:1 mapping.
12. In the Return items identified by this profile property list, select EmployeeID.
13. Click OK.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring User Profiles L9-13
5. In the IIS Web Site section, in the Port box, type 80.
6. 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.
Note: If My Profile is not visible, click My Settings, and then click My Profile.
Birthday January 1
Employee ID 2
A listing of your colleagues is displayed. Anyone that is specified as a direct report in Active Directory
is automatically listed as a colleague.
6. Click Skip.
You should see the new Information Technology site you are a member of.
4. Click Information Technology.
5. Click the browser's Back button.
SharePoint crawl rules allow you to manage the content that is included and excluded.
MCT USE ONLY. STUDENT USE PROHIBITED
L10-2 Lab A: Configuring Search
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.
The file IT Policies and Procedures for SharePoint is returned in the list of results.
2. Click Yes.
3. In the Quick Launch, click Application Management.
4. In the Service Applications section, click Manage service applications.
5. Click Search Service Application.
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.
4. In the Settings section, select the Repeat within the day option.
5. In the Every box, type 60, click OK, and then click OK again.
You should not see the file sharepoint governance checklist.pdf in the results even though it is in the
shared folder Data.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L10-8 Lab A: Configuring Search
SharePoint notifies you that host distribution rules cannot be applied to a farm with only one crawl
database.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring Search L10-9
8. In the Summary box, type Contoso IT Policies and Procedures for SharePoint 2010.
9. 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.
9. After the <PropertyDefs> tag, before the first <PropertyDef> element, add the following text:
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"/>
The file IT Policies and Procedures for SharePoint 2010 is listed as the result.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring Search L10-13
Wait until the scope is updated before continuing to the next task.
Many results are listed, including both documents in the shared folder and items from SharePoint
sites.
3. Click the Back button on the browser to return to the Information Technology Web home page.
4. 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.
The files sharepoint search.txt and sharepoint governance checklist.pdf are listed as the only results.
MCT USE ONLY. STUDENT USE PROHIBITED
L10-14 Lab A: Configuring Search
Lab Review
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?
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?
Tip: You might need to scroll to the right, and to the top, to see the properties panel.
<xsl:template match="All_Results/BestBetResults/Result">
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">
MCT USE ONLY. STUDENT USE PROHIBITED
L10-16 Lab B: Tuning SharePoint Search
<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. Click Save.
7. In the Search Best Bets Web Part properties panel, click OK.
8. On the ribbon, click Save & Close.
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.
Tip: You need to expand the Name column in Windows Explorer to see the full name of the folders.
2. Click Yes.
3. Type the following commands:
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.
More results appear than in Task 1 because searching for WSS also returns results for the term
SharePoint Foundation as a result of expansion.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab B: Tuning SharePoint Search L10-19
dirty
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
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L10-20 Lab B: Tuning SharePoint Search
MCT USE ONLY. STUDENT USE PROHIBITED
Lab: Implementing Office Web Apps L11-1
3. Click Yes.
4. On the Enter your Product Key page, type BFGMH-8RM8J-JWMCQ-P784Q-F7R2Y.
5. Click Continue.
6. Select the I accept the terms of this agreement check box.
7. Click Continue.
8. Click Install Now.
9. On the Run Configuration Wizard page, leave the check box selected, and then click Close.
Service applications for Office Web Apps are created and configured.
7. Confirm that the following services are started, and if they are not, then start them by clicking Start:
MCT USE ONLY. STUDENT USE PROHIBITED
L11-2 Lab: Implementing Office Web Apps
Exercise 2: Configuring and Testing the Office Web Apps in a Document Library
Task 1: Configure documents to open in a browser.
1. In the Microsoft Internet Explorer® address bar, type http://intranet.contoso.com/sites/IT, and
then press ENTER.
2. If you get an error, it is memory related; just click Go back to Site.
3. Click Site Actions, and then click Site Settings.
4. In the Site Collection Administration section, click Site collection features.
5. In the Office Web Apps row, click Activate.
6. In the Quick Launch, click Shared Documents.
7. On the ribbon, click the Library tab.
8. Click Library Settings.
9. Click Advanced Settings.
10. In the Opening Documents in the Browser section, click Open in the browser.
11. Click OK.
Wait for the Windows Security dialog box to appear. This takes approximately one minute.
MCT USE ONLY. STUDENT USE PROHIBITED
L11-4 Lab: Implementing Office Web Apps
If necessary, click Shared Documents to open the Information Technology Shared Documents
document library.
9. Click Save.
10. On the ribbon, click File, and then click Close.
11. Close Microsoft Word.
12. Switch to Internet Explorer.
13. 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.
After a few moments, the document opens in the browser in view mode. If you get an error, try again.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L11-6 Lab: Implementing Office Web Apps
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Preparing SharePoint 2007 for Upgrade to SharePoint L12-1
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.
8. Repeat steps 6–7 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.
3. To open the site listing in Notepad, type the following command and press ENTER:
notepad C:\SiteList.xml
iisreset
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.
2. Observe that the WSS_Content_Intranet_Sales content database now contains one site.
3. Switch to Administrator: Command Prompt.
4. To export an XML listing of sites in the intranet Web application, type the following command:
notepad C:\SiteList.xml
use WSS_Content_Intranet
go
go
go
go
use WSS_Content_Intranet_IT
go
go
go
go
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
go
go
go
go
11. Repeat the preceding steps to back up and truncate the WSS_Content_MySites database. Use the
following query:
use WSS_Content_MySites
go
go
go
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.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L12-8 Lab A: Preparing SharePoint 2007 for Upgrade to SharePoint 2010
Note: To save time the actual installation of Microsoft® SharePoint® 2010 has already been completed
on 10174A-SP2007-WFE1-G. You use this virtual machine for the remainder of the lab.
A message appears to inform you that services may have to be started or reset.
4. Click Yes.
5. 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.
12. On the Configuration Successful, Upgrade In Progress page, read the message, and then click
Finish.
SharePoint 2010 Central Administration opens.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Preparing SharePoint 2007 for Upgrade to SharePoint L12-9
3. Identify the Log File that contains a record of events during the upgrade.
4. Open the log file in Notepad.
5. Press CTRL+F, and then type [Warning].
3. Click the Web Application list, and then click Change Web Application.
4. Click SharePoint - intranet.contoso.com80.
5. Confirm that three databases are attached to the intranet Web application.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Preparing SharePoint 2007 for Upgrade to SharePoint L12-11
6. Click WSS_Content_Intranet.
7. In the Database Versioning section, confirm that the
Microsoft.SharePoint.Administration.SPContentDatabase Current Schema Version is
14.0.4762.1000.
If they are not yet upgraded, your upgrade process is still running.
The site is updated to the new SharePoint 2010 look and feel.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Implementing a Backup Strategy L13-1
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.
2. Click Yes.
3. In the Quick Launch, click Backup and Restore.
4. In the Farm Backup and Restore section, click Perform a Backup.
Note: The backup operation may complete with warnings. This is expected in this lab. You may
continue to the next step.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Implementing a Backup Strategy L13-3
This element describes the backup operation, and is used during a restore operation.
This element is a reference to the folder in which the backup files are stored.
This file contains attributes related to the backup operation and to each of the components. It is used
during a restore operation. You should not modify, delete, or rename the Spbackup.xml file.
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.
• 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.
Add-PSSnapin Microsoft.SharePoint.PowerShell
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.
4. Examine the information that is presented on the Backup and Restore Job Status page.
5. Click View History.
6. Examine the information that is presented on the Backup and Restore History page.
7. Click Backup and Restore Job Status to return to the status page.
8. Wait for the Phase to be Completed before continuing to the next lab.
9. Close all open applications and windows.
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®.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Implementing a Backup Strategy L13-7
4. Select the radio button next to Farm in the first (oldest) backup.
5. Click Next.
9. Click OK.
10. In the Login Names and Passwords section, in the Password box, type Pa$$w0rd.
11. Click Start Restore.
The Backup and Restore Job Status page opens. The page refreshes every few seconds. You can click
Refresh to refresh the page manually.
This element describes the type of restore operation that was performed.
This element is a reference to the folder in which the backup files are stored.
These elements report warnings and errors. The same count was shown on the timer job status page
in the previous task.
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.
6. In the Find dialog box, in the Find what box, type Warning: and then press ENTER.
9. Press CTRL+F, then type RESTORE DATABASE, and then press ENTER.
10. Observe the command that was sent to SQL Server to restore one of the SharePoint databases.
2. Enter the user name, CONTOSO\Administrator, and the password, Pa$$w0rd, and then click OK.
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.
7. Click OK.
MCT USE ONLY. STUDENT USE PROHIBITED
L13-12 Lab A: Implementing a Backup Strategy
7. Click the Site Collection list, and then click Change Site Collection.
8. Click /sites/IT.
9. Click OK.
10. Click the Site list, and then click Change Site.
11. Click /sites/IT.
12. Click OK.
13. Click the List down list, and then click Change List.
14. Click the next page button, which is displayed as a right-pointing arrow in the upper-right corner of
the page.
15. Click Shared Documents.
16. Click OK.
17. Click Export site or list.
18. Click Next.
19. In the Filename box, type \\SP2010-WFE1.contoso.com\SharePointBackup
\ITSharedDocuments.cmp.
20. Select the Export full security check box.
21. Click Start Export.
5. Click OK.
7. Click the Site Collection list, and then click Change Site Collection.
8. Click /sites/IT.
9. Click OK.
10. Click the Site list, and then click Change Site.
11. Click /sites/IT.
12. Click OK.
13. Click the List down list, and then click Change List.
14. Select Announcements.
15. Click OK.
16. Click Export Site or list.
17. Click Next.
18. In the Filename box, type \\SP2010-WFE1.contoso.com\SharePointBackup
\ITAnnouncements.cmp.
19. Select the Export full security check box.
20. Click Start Export.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L13-14 Lab A: Implementing a Backup Strategy
Lab Review
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.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring SharePoint Monitoring L14-1
3. Click Yes.
4. In the Quick Launch, click Monitoring.
5. In the Reporting section, click Configure diagnostic logging.
This is the list of event categories, each of which can be configured independently for a desired level
of detail.
7. Select the All Categories option.
8. In the Least critical event to report to the event log, select Verbose.
9. In the Least critical event to report to the trace log, select Verbose.
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. Click Yes.
3. In the Quick Launch, click Monitoring.
4. In the Health Analyzer section, click Review problems and solutions.
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.
Note: You cannot change the actions that the rule uses to perform its health analysis task. The rule’s
actions are determined by the code used to develop the rule.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring SharePoint Monitoring L14-3
3. In the Configuration section, observe that a new problem is reported: One or more categories are
configured with Verbose trace logging.
4. Click One or more categories are configured with Verbose trace logging.
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.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring SharePoint Monitoring L14-5
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.
MCT USE ONLY. STUDENT USE PROHIBITED
L14-6 Lab A: Configuring SharePoint Monitoring
The Configure Web Analytics And Health Data Collection page opens.
Results: After this exercise, you should have executed the logging timer jobs to populate the logging
database.
MCT USE ONLY. STUDENT USE PROHIBITED
Lab A: Configuring SharePoint Monitoring L14-7
Use WSS_Logging
6. On the Connect To Database Server page, in the Server name box, type SP2010-WFE1.
7. Click Next.
8. 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.
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.