PowerShell for the Hybrid Admin

Post on 17-Jul-2015

268 views 5 download

Tags:

Transcript of 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

• 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: jase@sharepointlonghorn.com

• Author of Developing Business Intelligence Apps for

SharePoint– http://bit.ly/SharePointBI

• Changes in the Admin World

• PowerShell Background

• Leveraging PowerShell Profiles

• Repeatable processes through PowerShell

– Azure

– Office 365

– SharePoint Online

Agenda

Changes in the

Admin World

Evolution of the 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

What is hybrid?

Is everything really going to the cloud?

What should go where?

PowerShell

Background

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

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

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

Leveraging

PowerShell Profiles

• Configured per user

• Used to repeatedly set environmental variables

– File path

– Pre-load snapins & modules

– Pre-load scripts to be used downstream

PowerShell Profiles

Demo Time!

• 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?

Script Dependencies

Path forward

• 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

• 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: jase@sharepointlonghorn.com

• Author of Developing Business Intelligence Apps for

SharePoint– http://bit.ly/SharePointBI