• No results found

Automating. Administration. Microsoft SharePoint with Windows. PowerShell 2.0. Gary Lapointe Shannon Bray. Wiley Publishing, Inc.

N/A
N/A
Protected

Academic year: 2021

Share "Automating. Administration. Microsoft SharePoint with Windows. PowerShell 2.0. Gary Lapointe Shannon Bray. Wiley Publishing, Inc."

Copied!
11
0
0

Loading.... (view fulltext now)

Full text

(1)

Automating

Microsoft®

SharePoint®

2010

Administration

with Windows

PowerShell®

2.0

Gary Lapointe

Shannon

Bray

WILEY

(2)

TABLE

B®S8®0©«4}®8#«l6&

OF

CONTENTS

Introduction

xxv

Part

1

Getting

Started With Windows Powershell Basics

1

Chapter

1 Windows PowerShell 101 3

Prepare

for Your

Journey

4

Automate SharePoint:AHistorical

Perspective

5

From STSADMtoWindowsPowerShell 7

Understandthe Components 8

TheSharePoint 2010 ManagementShell 8

UnderstandRequiredPermissions 11

Windows PowerShell: An

Object-Based

Scripting Language 12

Discover Cmdlets and

Objects

14

Understand Variables andTypes 21

Declare and Use Variables 21

Understand

Object Types

22

Declare andUseArraysand HashTables 28

Work withOutput 31

Understand the

Object

Pipelineand

PipeBind Objects

31 Format YourResults 35

Chapter

2

Filtering

and

Iterating

Your Data 39

AddConditionalLogic 40

UseComparisonand

Logic Operators

—40

Use the If/Elself/Else Statements 45

Use the SwitchStatement 47

Filter Your Data 49

Use the

Where-Object

Cmdlet 49

Usethe

Sort-Object

Cmdlet 51

Usethe

Select-Object

Cmdlet 53

Iterate

Through

Your Data 57

Use WhileLoops 57

UseDoWhileLoops 58

Use Do UntilLoops 59

Use ForLoops 59

Use ForeachLoops 61

(3)

XVI TABLE OF CONTENTS

Chapter

3

Making

Your

PowerShell Reusable

65

ScriptYour Solutions 66

Create and Execute

Scripts

66

Execute

Script

Blocks 70

Define ScriptParameters 71

Comment YourScripts 74

Understandthe UseofFunctions 75

Create Functions 76

Define Function Parameters 79

Process

Pipeline

Data 81

UnderstandScopes 82

CompartmentalizewithModules 85

Create and LoadScriptModules 86

Create Module Manifests 88

Add Error

Handling

toScripts 92

Throw Errors 92

UseTrapBlocks 93

Use

Try/Catch/Finally

Blocks 97

Understand

Object

DisposalIssues 100

Part 2

Installing

and

Configuring

a

SharePoint

2010 Environment 107

Chapter

4

Deploying

New Installations and

Upgrades

109

InstallSharePoint 2010 110

ReviewHelperFunctions 110

DefineXMLSettingsFile 113

Run theSharePoint2010 Server Installation Files 114

Run theScript 122

BuildaSharePoint 2010 Farm 123

Create andConfigure RequiredAccounts 124

Verify SQL Connectivity 125

Create XMLSettingsFile • 126

Review the Farm Build Cmdlets 127

Review the Central Administration Site Cmdlets 132

Run theScript 136

UpgradetoSharePoint 2010 137

SharePoint

Upgrade Approaches

137

Perform

Pre-upgrade

Scan 139

UpgradeContent Database 141

(4)

TABLE OF CONTENTS XVII

Chapter

5

Configuring

Server

Communications

145

Configure

Intra-FarmCommunications 147

Network 147

Windows Firewall 151

SQLServerandtheDatabases 156

WindowsServices 161

Configure

Inter-Server Communications 164 ActiveDirectory 164

Chapter

6

Configuring

Farm

Application

Settings

171

ConfigureIPFS 172

Configure InfoPath Forms ServicesOptions 174

Configure

Administrator-Approved

Form

Templates

181

ManageForm

Templates

, 184

ManageData Connection Files 186

ConfigureWebService Proxies 187

Configure

ContentDeployment 188

PreparetheEnvironment 189

ManageContent

Deployment

Jobs 193

Configure

IncomingandOutgoing Email 199

Configure

OutgoingEmail 200

Configure

IncomingEmail 201

Part 3

Deploying

and

Managing Applications

207

Chapter

7

Managing

Web

Applications

209

Configure ApplicationPools , 210

Distinguish Typesof

Application

Pools 210

List and Control

Application

Pool State 213

CreateApplicationPools 217

Create and Extend Web

Applications

220

CreateaNew Web

Application

221

ExtendaWeb

Application

223

Use XML Files forScriptingWeb

Applications

224

Understand AlternateAccessMapping 226

CreateaNew IIS

Binding

229

Adda NewAlternateAccess Mapping 229

EditIIS

Bindings

230

Edit Alternate AccessMappings 231

Remove aBindingfrom IIS 232

(5)

XVIII TABLE OF CONTENTS

ConfigureWeb

Applications

234

Modify

the General

Settings

ofaWeb

Application

234

Work with

Managed

Paths 243

Implement Security

246

Manage

Blocked FileTypes 246

Manage UserPermissions 247

ManageWeb ApplicationPolicies 250

AccessWeb

Applications

from the Server 253

Configurethe

DisableLoopbackCheck

Setting 254

Configure

the BackConnectionHostNamesSetting 254

Chapter

8

Managing

Site

Collections

and Sites 257

Understand Site Collections and Sites 258

Manage

Site Collections 260

CreateaSite Collection 261

RetrieveaSite Collection 265

Modify

aSiteCollection 267

DeleteaSite Collection 269

MoveaSite Collection 269

ManageSiteCollectionsas aFarmAdministrator 270

Manage

Sites 271 CreateaSite 272 RetrieveaSite 273 ModifyaSite 275 DeleteaSite 278 Configure Auditing 278

Configure

AuditLog

Trimming

279

Configure

Audit

Settings

for Documents and Items 280

Configure

Audit

Settings

forLists, Libraries,and Sites 281

ManageQuotas and Locks 282

CreateaNew Quota

Template

283

RetrieveQuota

Templates

283

Apply

aQuota

Template

toaSite Collection 284

Configure

Locks 285

Manage

Security 287

Manage

SharePointGroups 290

ManageSharePointUsers 294

Create Permission Levels 301

Chapter

9

Understanding

Authentication

303

Understand the Various Forms of Authentication 304

(6)

TABLE OF CONTENTS XIX

Configure

Classic Mode Web

Applications

310

Configure

Secure Sockets

Layer

311

Configure

Kerberos 312

Configure

ClaimsMode Authentication 315

CreateaWeb

Application Using

ClaimsMode Authentication 315

Configure

Forms-BasedAuthentication 317

RetrieveanAuthentication Provider 320

ConfigureSharePointtoUseaClaim 321

Chapter

10

Managing

Features

and Solutions

329

Deploy

and

Manage

Features 330

Understand theComponentsofaFeature 331

Retrieve Features 335

InstallFeatures 339

Uninstall Features 341

Activate Features 342

Deactivate Features 343

Deploy

andManageFarm Solutions 345

AddaFarm Solution 346

Deploy

aFarm Solution 347

Retrieve Farm Solutions 349

RetractaFarm Solution 350

RemoveaFarm Solution 352

Update

aFarm Solution 352

Start AdministrationJobs 354

RemoveaFarm SolutionDeploymentLock 355

Deploy

and

Manage

SandboxedSolutions 356

The Solution

Gallery

357

AddaSandboxed Solution 358

Deploy

aSandboxed Solution 359

RetrieveSandboxedSolutions 360

RetractaSandboxedSolution 362

RemoveaSandboxed Solution 362

Update

aSandboxedSolution 363

Part

4 Services

and Service

Applications

367

Chapter

11

Managing

Service

Applications

369

Manage

Service Instances 371

Retrieve Service Instances 371

Start Service Instances 373

Stop

Service Instances 375

(7)

XX TABLE OF CONTENTS

Retrieve Service

Applications

377

Create Service

Application

Pools 378

Create Service

Applications

381

Manage

Service

Application

Proxies 382

RetrieveServiceApplication Proxies 382

CreateServiceApplicationProxies 383

Manage Proxy Groups 384

SecureService Applications 388

Retrieve ServiceApplicationAdministrators and Permissions 389 Set ServiceApplicationAdministratorsandPermissions 391

PublishandConsume ServiceApplicationsAcross Farms 394

ExportCertificates 396

Establish the Trust

Relationship

396

Grant Permissions 397

PublishaService

Application

400

Connectto aService

Application

401

Chapter

12

Provisioning

Support

Services 403

Provision Web

Analytics

Services 404

Provision the Web

Analytics

ServicesServiceApplication 405

Test the Service

Application

412

Provision StateServices 412

Provision theState ServicesServiceApplication 413

TesttheStateServices Service

Application

417

Provision Secure Store Services 417

ProvisiontheSecure Store Services Service

Application

418 GenerateaSecure

Key

422

TesttheSecureStore Services Service

Application

423

Provision UserCodeServices 423

Start the User Code Service 423

Setthe User Code Service

Identity

424

Test the User Code Service 426

ProvisionClaimstoWindows TokenServices 426

Start the c2wts ServiceInstance 427

Set thec2wts

Identity

428

Reset thec2wts

Identity

428

Test the ClaimstoWindows Token Service 429

Provision

Usage

andHealthData Collection Services 430

Provision the ServiceApplication 430

Provision the ServiceApplication

Proxy

431

Configure

the Service Instance 432

(8)

TABLE OF CONTENTS XXI

Chapter

13

Provisioning

Business

Intelligence,

Business

Connectivity,

and Word

Automation Services 437

Provision Excel Services 438

Provision the Excel Services ServiceApplication 439

Create theSecure StoreTarget Application 442

Test theServiceApplication 446

ProvisionAccessServices 448

Enable theSession State Service 449

Provision the Access Services Service

Application

451

Test the ServiceApplication 454

Provision VisioGraphicsServices 456

Provision the Visio ServicesService

Application

457

Create the Secure Store

Target Application

460

Test the Service

Application

461

Provision PerformancePointServices 462

Provision the PerformancePointServiceApplication 464

Set the UnattendedService Account 467

Test theService

Application

468

Provision BusinessConnectivityServices 470

Provision theBCS ServiceApplication 471

Test theServiceApplication •.474

ProvisionWordAutomationServices 476

Provision theWord Automation Services Service

Application

476

Test the Service

Application

479

Chapter

14

Provisioning

Search

Services 481

Understand EnterpriseSearch

Concepts

482

Understand Administration

Topology

Components 482

Understand

Query Topology Components

483

Understand Crawl

Topology Components

485

Understand

Query

ProcessorComponents 486

Understand ServicePlacement 487

Understand the

Crawling

Process 488

RetrieveEnterpriseSearch Services 491

Retrieve theService

Application

492

RetrievetheCrawl Components 492

Retrieve theQuery Components 493 Retrievethe Crawl Database 494 Retrieve thePropertyDatabase 495

ProvisionEnterpriseSearch Services 496

(9)

XXII TABLE OF CONTENTS

Start the ServiceInstance 497

Configure

the Search Service 499

Create the ServiceApplication 501

Configure

the AdministrationComponent 504

Createthe Crawl andQuery Components 506 Createthe Service

Application

Proxy 518

PerformaFullorIncremental Crawl 519

ProvisionFoundationSearch Services 520

StarttheFoundationSearch Service 521

ExamineFoundationSearch ServicesSettings 526

StartandStopFull Crawls 526

Chapter

15

Provisioning

Metadata and User Profile Services 527

ProvisionManaged MetadataServices 528

Provision the

Managed

MetadataServices

Service

Application

528

Test the ServiceApplication 535

Provision User Profile Services 536

Provision the User Profile Services ServiceApplication 537

Test the ServiceApplication 545

Provision the User ProfileSynchronizationService 545

Test the

Synchronization

Service 548

Address Common Issues 551

Part

5

Managing

and

Maintaining

a

SharePoint Environment

557

Chapter

16

Managing Operational Settings

559

Manage Logging

560

ReviewDiagnostic

Configuration

Settings 562

Modify

Diagnostic

Configuration

Settings 563

Review

Log

Levels 565

Modify

LogLevels 567

ResetLogLevels 568

Create New Log Files 569

Merge

Existing Log Files 569

ReviewLogEvents 571 WriteLogEvents 573 Examinethe HealthAnalyzer 577

Review and

Modify

Rule Definitions 578 Review FailedRules 579

ManageTimerJobs 581

ReviewTimer Jobs 581

ExecuteaTimer Job 583

(10)

TABLE OF CONTENTS XXIII

Understand the

Developer

Dashboard 585

Overviewofthe

Developer

Dashboard 585

Configure

theDeveloperDashboard 587

Chapter

17 Back

Up

and Restorea SharePoint Environment 591

BackUpand RestoreaFarm 592

BackUpaFarm 593

BackUpanInactive Farm

Configuration

597

Restorea Farm 600

RetrieveBackup History 603 BackUpand RestoreaSite Collection 605

BackUpaSiteCollection 605

RestoreaSite Collection 607

Export

andImportSites and Lists 609

Export

aSiteorList 610

Import

aSiteorList 613

Chapter

18

Optimizing

the Performance ofa SharePoint Environment 617

Configure

Resource

Throttling

618

Configure

PerformanceCounterMonitoring 620

Monitor HTTP

Throttling

625

Configure Caching Options 629

Configure Page Output Caching 629

Configure Object Caching 631

ConfigureBLOBCaching 634

Configure

Remote BLOBStorage 636

ConfigureRBSinSQL Server 638

MigrateContent toAnother Provider 641

DisableRBS 642

Part 6

Advanced

Administration

643

Chapter

19 Remote Administration 645

Use ClassicRemoting 646

Configure

Windows PowerShellRemoting 649

Enable

Remoting

650

Enable CredSSP 652

Increase

Memory

for Remote Sessions 654 ExecuteRemote Commands 655

Use Invoke-Command 656

UseEnter-PSSession 661

Uselmport-PSSession 663

(11)

XXIV TABLE OF CONTENTS

Configure

Sessions 672

CreateSession

Configurations

672

SecureSession

Configurations

676

Chapter

20

Multi-Tenancy

679

CreateaTenantHostingWebApplication 681

Create the WebApplication 683

Create theManaged Paths 684

ConfigureServiceApplications 685

Provision the

Subscription

SettingsService 685

Configure

Tenant Services 688

ManageFeature Packs and SiteSubscriptions 695

Manage

Feature Packs 696

Manage

Site

Subscriptions

699

Provision Tenants 701

CreateMember Sites 701

CreatetheTenantAdministrationSite 702

Configure

UserProfileandManagedMetadata

Service

Applications

703 Store Tenant Information 705

References

Related documents

Service Application Architecture in SharePoint 2010 Service Application Architecture and Components Topologies for Service Applications. Map Service Applications to Your

• Windows SharePoint Services 2.0 (free license) - Microsoft SharePoint Portal Server 2003 (commercial release) • Windows SharePoint Services 3.0 (free license) - plus

Add new multiple links without compromising usability or your budget Always available connectivity with maximized throughput Ensure that your critical business traffic

and Microsoft SUS allows you to update operating systems using Microsoft SUS (Windows 2000, XP, .NET, IIS, IE, Windows Media) and service packs, Microsoft application patches,

Formal : The assigning of a mentor through a command program establishing a command instruction for a formal program can provide basic guidance and expectations that enable

System Windows 2003 Server, Standard Edition Windows 2003, Enterprise Edition Windows 2000 Server with Service Pack 2 Software Content Server Application.. Microsoft

•Microsoft SQL Server 2008 Service Pack 3 (Windows only) •Microsoft SQL Server 2008 R2 Service Pack 2 (Windows only) •Microsoft SQL Server 2012 Service Pack 2 (Windows only)

This provides students with the fundamental knowledge and skills to use Windows PowerShell 3.0 for administering and automating administration of Windows based