PowerShell for the Hybrid Admin

21
PowerShell for the Hybrid Admin : Managing Your On - Prem , O365, and Azure Worlds Jason Himmelstein, MVP Senior Technical Director, SharePoint @ sharepointlhorn

Transcript of PowerShell for the Hybrid Admin

Page 1: PowerShell for the Hybrid Admin

PowerShell for the Hybrid Admin:Managing Your On-Prem, O365, and Azure Worlds

Jason Himmelstein, MVP

Senior Technical Director, SharePoint

@sharepointlhorn

Page 2: PowerShell for the Hybrid Admin

• Senior Technical Director, SharePoint

• SharePoint Server MVP

• Microsoft vTSP

• Blog: www.sharepointlonghorn.com

• Twitter: @sharepointlhorn

• LinkedIn: www.linkedin.com/in/jasonhimmelstein

• SlideShare: http://www.slideshare.net/jasonhimmelstein

• Email: [email protected]

• Author of Developing Business Intelligence Apps for

SharePoint– http://bit.ly/SharePointBI

Page 3: PowerShell for the Hybrid Admin

• Changes in the Admin World

• PowerShell Background

• Leveraging PowerShell Profiles

• Repeatable processes through PowerShell

– Azure

– Office 365

– SharePoint Online

Agenda

Page 4: PowerShell for the Hybrid Admin

Changes in the

Admin World

Page 5: PowerShell for the Hybrid Admin

Evolution of the Admin

Page 6: PowerShell for the Hybrid Admin

Changes in the Admin World

• It’s not a rack, stack, & admin boxes world anymore

• “click, click, finish” days are in our past

• Hybrid is the new black

Page 7: PowerShell for the Hybrid Admin

What is hybrid?

Page 8: PowerShell for the Hybrid Admin

Is everything really going to the cloud?

Page 9: PowerShell for the Hybrid Admin

What should go where?

Page 10: PowerShell for the Hybrid Admin

PowerShell

Background

Page 11: PowerShell for the Hybrid Admin

What is it?

• It isn't:– Fire and forget– A packaged executable – Developer-centric– Too hard for an ITPro

• It is:– Command line environment– Microsoft technology holistic– A swiss army knife with a chain saw– The future of ITPro's world

Page 12: PowerShell for the Hybrid Admin

What is it?

• Windows PowerShell is Microsoft's task automation framework, consisting of a command-

line shell and associated scripting language built on .NET Framework. PowerShell provides full

access to COM and WMI, enabling administrators to perform administrative tasks on both local

and remote Windows systems.

– Definition from Wikipedia

• What is it really

– PowerShell is an object-based, not text-based, command-line interface for Microsoft

Technologies

• What does that mean:

– Results in PowerShell can be acted upon, not just read from

Page 13: PowerShell for the Hybrid Admin

The Why

• Why did Microsoft create PowerShell & move more to a PowerShell world

than a GUI world?

• What is it used for:

– Deployment

– Configuration

– Management

– Administration

– Development

Page 14: PowerShell for the Hybrid Admin

Leveraging

PowerShell Profiles

Page 15: PowerShell for the Hybrid Admin

• Configured per user

• Used to repeatedly set environmental variables

– File path

– Pre-load snapins & modules

– Pre-load scripts to be used downstream

PowerShell Profiles

Page 16: PowerShell for the Hybrid Admin

Demo Time!

Page 17: PowerShell for the Hybrid Admin

• PowerShell Profiles

• Dot sourcing

• New-psprofiles.ps1

• Azure VM interactions

• Office 365 management

• Script pre-loads

• Manage SharePoint Online

– Cmdlets

– CSOM

What did we just do?

Page 18: PowerShell for the Hybrid Admin

Script Dependencies

Page 19: PowerShell for the Hybrid Admin

Path forward

Page 20: PowerShell for the Hybrid Admin

• http://www.github.com/jasonhimmelstein/powershell

• ITUnity

– http://www.itunity.com

• Chris O’Brien “Using CSOM in PowerShell scripts with Office 365”

– http://www.sharepointnutsandbolts.com/2013/12/Using-CSOM-in-

PowerShell-scripts-with-Office365.html

• http://dev.office.com/

• https://github.com/OfficeDev/PnP

• https://github.com/OfficeDev/PnP/tree/master/Samples

Resources

Page 21: PowerShell for the Hybrid Admin

• Senior Technical Director, SharePoint

• SharePoint Server MVP

• Microsoft vTSP

• Blog: www.sharepointlonghorn.com

• Twitter: @sharepointlhorn

• LinkedIn: www.linkedin.com/in/jasonhimmelstein

• SlideShare: http://www.slideshare.net/jasonhimmelstein

• Email: [email protected]

• Author of Developing Business Intelligence Apps for

SharePoint– http://bit.ly/SharePointBI