Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tech Ed North America 2010 4/27/ :04 AM Required Slide

Similar presentations


Presentation on theme: "Tech Ed North America 2010 4/27/ :04 AM Required Slide"— Presentation transcript:

1 Tech Ed North America 2010 4/27/ :04 AM Required Slide SESSION CODE: OSP402 Windows PowerShell Made Less Scary for the Microsoft SharePoint Server 2010 Administrator Todd Klindt and Shane Young SharePoint Nerds SharePoint911 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 Who is this Todd guy? WSS MVP since 2006
Speaker, writer, consultant, stunt double for Ray Romano Personal Blog Twitter

3 Who Am I? Shane Young Owner of SharePoint911.com
Microsoft Office SharePoint Server MVP Consultant, Trainer, Writer, & Speaker Blog SharePoint Consulting I am going to run for President when I grow up.

4 05 - SharePoint Administration with PowerShell
v2.0 Agenda What is Windows PowerShell Windows PowerShell basics Windows PowerShell scripts for administrators © 2010 Critical Path Training, LLC - All Rights Reserved

5 What is Windows PowerShell?
Command-line interface and scripting language used for SharePoint Server administration Compliments CMD Extends STSADM Uses XML & Objects Built on the .Net Framework

6 Why do we care? Complete command-line system that is far more powerful than any previous Windows-based command-line prompt environment. Provides: More Control More Efficiency More Productivity

7 What about STSADM? STSADM still available to support backwards compatibility Can leverage it in Windows PowerShell scripts Whatever STSADM can do, Windows PowerShell can do better! Ability to run against SQL Snapshots, instead of production. More granular control for backup / restore.

8 Windows PowerShell Basics
cmdlet pronounced "command-let“ single function that can be used separately or combined with other cmdlets to perform complex tasks and automate administration

9 Windows PowerShell Basics
cmdlets = verbs (actions) & nouns (objects) Combine the two to build specific commands Examples Get-SPSite Get = Verb SPSite = Noun

10 Getting the list of SharePoint cmdlets
Get a list of all commands: Get-Command –noun sp* Get help for a specific command: Get-Help <cmdlet>

11 Getting the list of SharePoint cmdlets
For more detailed help add the following parameters: Get-Help <cmdlet> -full Get-Help <cmdlet> -examples Get-Help <cmdlet> -detailed

12 Noodling around in Windows PowerShell
Tech Ed North America 2010 4/27/ :04 AM Noodling around in Windows PowerShell Todd Klindt and Shane Young SharePoint Nerds SharePoint911 DEMO © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

13 PowerShell Scripts Build scripts to easily execute through common commands and tasks Develop using PowerShell ISE or other shells Schedule using Task Scheduler.

14 PowerShell Scripts Examples:
Activate a feature across multiple site collections Provisioning of Managed Accounts Creating of New Sites Backup all Site Collections in Farm

15 Scripting Syntax Sample Script:
$password = Read-Host "What is the password for all accounts?" -assecurestring ; Get-Content usernames.txt | ForEach-Object {New-SPManagedAccount -password $password -username litwareinc\$_; Set-SPManagedAccount -identity $_ -autogenerate -confirm:$False} Syntax Description $ Denotes a variable. ; Denotes completion of cmdlet, continue to next one. | Sends the output of the preceding cmdlet to the next cmdlet. ForEach-Object { } For each object, execute all the commands within the { }.

16 Windows PowerShell scripts in SharePoint
Tech Ed North America 2010 4/27/ :04 AM Windows PowerShell scripts in SharePoint Todd Klindt and Shane Young SharePoint Nerds SharePoint911 DEMO © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

17 Additional PowerShell Resources
Windows PowerShell for SharePoint Foundation 2010 Windows PowerShell Getting Started Guide Windows PowerShell Cheat Sheet STSADM to Windows PowerShell mapping Zach Rosenfield’s blog

18 Track Resources For More Information: http://sharepoint.microsoft.com
Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Tech Ed North America 2010 4/27/ :04 AM Track Resources For More Information: SharePoint Developer Center: SharePoint Tech Center: Official SharePoint Team Blog: © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

19 Resources Learning Required Slide www.microsoft.com/teched
Tech Ed North America 2010 4/27/ :04 AM Required Slide Resources Learning Sessions On-Demand & Community Microsoft Certification & Training Resources Resources for IT Professionals Resources for Developers © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

20 Required Slide Speakers, please list the Breakout Sessions, Interactive Sessions, Labs and Demo Stations that are related to your session. Tech Ed North America 2010 4/27/ :04 AM Related Content Breakout Sessions – See Conference Guide for full list of OSP Track Sessions Interactive Sessions – OSP Track has 10 Interactive Sessions – OSP01-INT – OSP10-INT Hands-on Labs – OSP01-HOL – OSP20-HOL Product Demo Stations: Yellow Section, OSP Office 2010, SharePoint 2010, Project Server 2010, Visio 2010 have kiosks & demos © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

21 Complete an evaluation on CommNet and enter to win!
Tech Ed North America 2010 4/27/ :04 AM Required Slide Complete an evaluation on CommNet and enter to win! © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

22 Tech Ed North America 2010 4/27/2019 12:04 AM
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

23 Required Slide Tech Ed North America 2010 4/27/2019 12:04 AM
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Tech Ed North America 2010 4/27/ :04 AM Required Slide"

Similar presentations


Ads by Google