Presentation is loading. Please wait.

Presentation is loading. Please wait.

SharePoint 2010 & PowerShell

Similar presentations


Presentation on theme: "SharePoint 2010 & PowerShell"— Presentation transcript:

1 SharePoint 2010 & PowerShell
12/14/2017 4:05 PM SharePoint 2010 & PowerShell Александр Романов © 2007 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 Предистория… 2000 2001 Monad 2003 PowerShell 1.0 2007 PowerShell 2.0
12/14/2017 4:05 PM Предистория… 2000 Office Web Server owsadm.exe 2001 SharePoint Team Services 2001 stsadm.exe 2003 Windows SharePoint Services 2.0 Monad PowerShell 1.0 2007 WSS 3.0/SPS 2007 PowerShell 2.0 2010 SPF/SPS 2010

3 12/14/2017 4:05 PM Что появилось нового Оснастка ставиться вместе с SharePoint – SharePoint Management Shell [Verb]-SP[Noun] (get-command -Noun SP* | measure-object) = 482!

4 482 12/14/2017 4:05 PM Access Excel Word Visio Services ECM InfoPath
PowerShell SPProvider Access Excel Word Visio Services ECM InfoPath Metadata PerformancePoint Search Secure Store SharePoint Products State Service User Profile Web Analytics 482

5 Карта использования Other Services Other Application OpenXML
12/14/2017 4:05 PM Карта использования Other Services Other Application OpenXML Other Services Other Application msbuild Windows Server PowerShell IIS COM/.NET AD SQL Server VM SharePoint 2010

6 12/14/2017 4:05 PM ДЕМО © 2007 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.

7 Сценарий 1: Установка SharePoint
12/14/2017 4:05 PM Сценарий 1: Установка SharePoint SharePoint 2010 PowerShell Scripts & Utilities Get-SPPreRequisites - загрузка всех необходимых prerequisites New-SPInstallPackage - создает пакет для автоматической установки

8 Сценарий 2: Работа с логами
12/14/2017 4:05 PM Сценарий 2: Работа с логами Set-SPLogLevel Get-SPLogEvent New-SPLogFile

9 12/14/2017 4:05 PM ДЕМО © 2007 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.

10 Сценарий 3: Backup Backup-SPFarm Backup-SPSite
12/14/2017 4:05 PM Сценарий 3: Backup Backup-SPFarm Backup-SPSite Backup-SPConfigurationDatabase

11 12/14/2017 4:05 PM ДЕМО © 2007 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.

12 Сценарий 4: Работа с сайтами
12/14/2017 4:05 PM Сценарий 4: Работа с сайтами New-SPSite Get-SPSite Remove-SPSite New-SPWeb Get-SPWeb Get-SPWebTemplate – получение шаблонов (Get-SPWeb " ).RecycleBin

13 12/14/2017 4:05 PM ДЕМО © 2007 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.

14 Сценарий 5: Работа со списками
12/14/2017 4:05 PM Сценарий 5: Работа со списками Get-SPWeb $url | Select -Expand Lists | Where {$_.BaseType –eq "DocumentLibrary"} | Select -Expand Items | select Name, Url function New-SPFile($WebUrl, $ListName, $DocumentName, $Content) Освобождайте память! Делайте паузы…

15 12/14/2017 4:05 PM ДЕМО © 2007 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.

16 Сценарий 6: SharePoint на ноутбуке
12/14/2017 4:05 PM Сценарий 6: SharePoint на ноутбуке Скрипт остановки, старта и скрипт выключения автозагрузки local SQL Services IIS SharePoint 2010 Services SharePoint Search 2010 Warmup SharePoint WebApplications

17 12/14/2017 4:05 PM ДЕМО © 2007 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.

18 Сценарий 7: Сборка решений
12/14/2017 4:05 PM Сценарий 7: Сборка решений VisualStudio Project PowerShell Create new VM Msbuild.exe Virtual Machine Solution Deploy Solution Create Sites Test Sites Production CruiseControl XML

19 12/14/2017 4:05 PM ДЕМО © 2007 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 Сценарий 8: Управление поиском
12/14/2017 4:05 PM Сценарий 8: Управление поиском Создаем пул приложений Создаем search service application Создаем search service application proxy Устанавливаем запуск экземпляра Подготавливаем Search Administration Component Подготавливаем и активируем Crawl Подготавливаем и активируем Query Components

21 12/14/2017 4:05 PM ДЕМО © 2007 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 Сценарий 9: Собственный коммандлет
12/14/2017 4:05 PM Сценарий 9: Собственный коммандлет

23 Недостатки PowerShell
12/14/2017 4:05 PM Недостатки PowerShell Медленный Слаботипизированный Нет четких стандартов создания скриптов (пока) Встроенный редактор имеет ряд недостатков (есть альтернативы)

24 12/14/2017 4:05 PM Выводы PowerShell стал основным инструментом администрирования SharePoint Позволяет легко автоматизировать повторяющиеся задачи администрирования и разработки Становиться стандартом администрирования Windows Позволяет в одном решении (скрипте) единообразно обращаться к любым внутренним и внешним компонентам Единый язык общения администраторов и разработчиков 

25 12/14/2017 4:05 PM Ресурсы и инструменты CHM Help по всем коммандлетам PowerShell для SharePoint Карманный справочник администратора

26 Ресурсы и инструменты FAR 2.0 + Colorer + PowerShell.hrc
12/14/2017 4:05 PM Ресурсы и инструменты FAR Colorer + PowerShell.hrc PowerGUI PowerConsole for VS Вызов PowerShell из MSBuild

27 Вопросы? Александр Романов SharePoint Server MVP
12/14/2017 4:05 PM Вопросы? Александр Романов SharePoint Server MVP Twitter: Romy63ru Blog:

28 12/14/2017 4:05 PM


Download ppt "SharePoint 2010 & PowerShell"

Similar presentations


Ads by Google