Painless PowerShell for SharePoint Admins Rick Taylor.

Slides:



Advertisements
Similar presentations
Top 10 things you need to know about SharePoint Site Administration
Advertisements

SharePoint Security and Search Lou Farho, Design Architect Alexander Open Systems.
Gary Lapointe SharePoint MVP.  SharePoint MVP  Blog: 
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Jason Himmelstein, MVP Senior Technical Director,
Non-displaying slide…. SharePoint 2010 and 2013 Auditing and Site Content Administration using PowerShell 55095AC.
James Boother Blog: INTRODUCTION TO POWERSHELL.
James Boother Blog: AUTOMATING ADMIN TASKS WITH POWERSHELL.
Fabian Schenker Consultant Microsoft Schweiz ShowerPoint - PowerShell und SharePoint für die Installation und Management von SharePoint 2010 Farmen Thomas.
SharePoint 2010 Administration using PowerShell Brian Caauwe Senior Consultant – SharePoint – MCTS March 20, 2010.
10 PowerShell Commands Every Admin Should Know David Price.
SSRS Integration with SharePoint JACOB CHANG. Jacob Chang MCSE Degree in biology and computer engineering Started as an application developer Worked with.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Introduction to SharePoint Development with VS2010 Paul Yuknewicz Lead Program Manager
JourneyTEAM - – Tales From The Field: 2010 to 2013 Upgrade Horror Stories and How to Avoid Creating a Horror of Your Own.
Module 11 : Backup and Restore Jong S. Bok
Module 8 Configuring and Securing SharePoint Services and Service Applications.
©2012 Microsoft Corporation. All rights reserved..
SharePoint and SharePoint Online: Today and what's next? Presented by Luke Abeling – IT Platforms.
SharePoint Online 2013 Rules!. SharePoint Online 2013 Rules???
PowerShell Brian Caauwe – Senior Consultant April 14, 2012 The Administrator’s Best Friend.
Microsoft ® Official Course Module XA Using Windows PowerShell ®
Appendix A Starting Out with Windows PowerShell™ 2.0.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Module 3 Administering and Automating SharePoint.
EDUCATION YOU CAN TRUST ® Course Review Review provided by: DNS Computing Services, LLC SharePoint Server 2010.
Introduction to Windows PowerShell DANIEL HIBBERT PRIMER FIELD ENGINEER DMVMUG User Conference 2013 – Reston, VA.
Intro To PowerShell Jack Fruh Sharepointjack.com.
WIN a Netbook!!! Drop a business card in the basket to win.
Online Conference June 17 th and 18 th SharePoint Online Administration with PowerShell.
Welcome to the Minnesota SharePoint User Group. Introductions / Overview SharePoint 101 High level overview of SharePoint Differences between SharePoint.
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
Windows PowerShell Introduction 1 Morgan Simonsen Ementor.
Mirek Sztajno SQL Server Security PM
Todd Klindt and Shane Young SharePoint911. Who is this Todd guy?
Module 9 User Profiles and Social Networking. Module Overview Configuring User Profiles Implementing SharePoint 2010 Social Networking Features.
CIS 1402: Intro to CIS Tom Gustafson. Facts About PowerShell PowerShell is Microsoft’s command-line interface that provides scripting and management capability.
Automating SharePoint 2010 administration tasks with Power Shell Toni Frankola SharePoint MVP, Croatia
Office 365: SharePoint Online 31 May | SharePoint Saturday Calgary – 31 MAY 2014 About Me – Jason Kaczor
Module 14: Advanced Topics and Troubleshooting. Microsoft ® Windows ® Small Business Server (SBS) 2008 Management Console (Advanced Mode) Managing Windows.
Business Continuity Management. Rick Taylor, MCSE, MCT – Principal Architect for Summit 7 Systems – –
Ravikanth C.
Productivity Architect Meet Chris Bortlik Author, Blogger, Speaker.
Windows Enterprise Services.  Introductions  UNM Directory Services  RSAT  Organizational Units (OU)  Active Directory Groups  Naming Convention.
Powering up your Office 365 cmdlets with CSOM Bjoern H Rapp, Senior Architect Public Cloud, SopraSteria.
Module 6: Configuring and Managing Windows SharePoint Services 3.0.
SharePoint Online and PowerShell?
By: Toby McGrail Sr. Software Engineer
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
PowerShell 101 sharepoint on-premise
Max Fritz Senior Systems Consultant, Now Micro
SharePoint Permissions Manager 2017 – Product Demo
Using Microsoft Identity Manger with SharePoint 2016 to fill the User Profile Sync Gap Max Fritz Senior Systems Consultant Now Micro.
Technical Overview (IT Pro)
Migration to SharePoint 2013
SharePoint Online Management and Control
SharePoint Saturday Omaha April 2016
Office 365 PowerShell Jeremy Sublett.
Making PowerShell Useful
Hybrid Search Technical Guidance.
Using PowerShell Magic to Manage Microsoft Office 365
Building your SharePoint Farm with PowerShell
2/27/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Grow Your Script From Simple to Module
SPC2012 – IT-Pro 4/9/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator NACS Branson, MO.
Tech Ed North America /27/ :04 AM Required Slide
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator SharePoint Saturday.
08 | Configuring SharePoint Online
10/2/ :13 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Presentation transcript:

Painless PowerShell for SharePoint Admins Rick Taylor

Special Thanks to our Platinum Sponsor …and our Gold Sponsor

Who am I??? Who am I ??????????

Rick Taylor, MCSE, MCT SharePoint architect, formerly with Microsoft SharePoint Platform Architecture Team for SharePoint Online (O365) Contact

Agenda What is Windows PowerShell Windows PowerShell basics Windows PowerShell scripts for administrators

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

cmdlet pronounced "command-let“ More than 500 cmdlets for SharePoint alone Windows PowerShell Basics

©2012 Microsoft Corporation. All rights reserved.

SharePoint 2013 Nouns and Verbs 774 Total commands Nouns start with SP 334 Nouns

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

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

Windows PowerShell for SharePoint Command Builder

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

Differences in Get-help: -full

Differences in Get-help: -detailed

Differences in Get-help: - examples

-WhatIf Evaluate what happens without side-effects

©2012 Microsoft Corporation. All rights reserved.

Adding SharePoint Snap-In to ISE

Checking out Windows PowerShell DEMO

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

SharePoint Basic Site Structure

Site Structure Creation CommandDescription New-SPManagedAccountRegisters a new managed account New-SPWebApplicationCreates a new web application New-SPContentDatabaseCreates a new content database for a web application New-SPManagedPathCreates a managed path New-SPSiteCreates a new site collection New-SPWebCreates a new web within a site collection

Permissions for Shell Admins for Backup and Restore Farm componentMember of Administrators group on the local computer Member of Farm Administrators SharePoint group Full Control on backup folder FarmYesNoYes Service applicationYesNoYes Content databaseYesNoYes Site collectionNoYes Site, list, document library YesNoYes

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

Service Application Setup/Configuration Cmdlet NameExample Get-SPServiceInstance $svc = (Get-SPServiceInstance | ? {$_.TypeName -eq "Managed Metadata Web Service"}) Start-SPServiceInstance if ($svc.Status –eq "Disabled") { $svc | Start-SPServiceInstance } while($svc.Status -ne "Online") { Write-Host "Waiting to provision"; sleep 5; } New-SP*ServiceApplication PS C:\> Get-Command New-SP*ServiceApplication New-SP*ServiceApplicationProxy PS C:\> Get-Command New-SP*ServiceApplicationProxy New-SPServiceApplicationProxyGroup Add-SPServiceApplicationProxyGroupMember New-SPServiceApplicationProxyGroup "Demo" $mms = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq "Managed Metadata Service Connection"} Add-SPServiceApplicationProxyGroupMember -Identity "Demo" - Member $mms

Connect-SPOService –Url –credential

PS C:\windows\system32> get-command -noun spo* | Group Noun Count Name Group SPOUser {Add-SPOUser, Get-SPOUser, Remove-SPOUser, S... 2 SPOService {Connect-SPOService, Disconnect-SPOService} 1 SPOAppErrors {Get-SPOAppErrors} 1 SPOAppInfo {Get-SPOAppInfo} 3 SPODeletedSite {Get-SPODeletedSite, Remove-SPODeletedSite,... 2 SPOExternalUser {Get-SPOExternalUser, Remove-SPOExternalUser} 7 SPOSite {Get-SPOSite, New-SPOSite, Remove-SPOSite, R... 4 SPOSiteGroup {Get-SPOSiteGroup, New-SPOSiteGroup, Remove SPOTenant {Get-SPOTenant, Set-SPOTenant} 1 SPOTenantLogEntry {Get-SPOTenantLogEntry} 1 SPOTenantLogLastAvaila... {Get-SPOTenantLogLastAvailableTimeInUtc} 1 SPOWebTemplate {Get-SPOWebTemplate} 1 SPOUpgradeEvaluationSite {Request-SPOUpgradeEvaluationSite}

Windows PowerShell for SharePoint Foundation us/library/ee662510(office.14).aspx us/library/ee662510(office.14).aspx Windows PowerShell Getting Started Guide us/library/aa973757(VS.85).aspx us/library/aa973757(VS.85).aspx Windows PowerShell Cheat Sheet STSADM to Windows PowerShell mapping Zach Rosenfield’s blog Additional PowerShell Resources