powershell for the hybrid admin
TRANSCRIPT
![Page 1: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/1.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/2.jpg)
• 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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/3.jpg)
• 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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/4.jpg)
Changes in the
Admin World
![Page 5: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/5.jpg)
Evolution of the Admin
![Page 6: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/6.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/7.jpg)
What is hybrid?
![Page 8: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/8.jpg)
Is everything really going to the cloud?
![Page 9: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/9.jpg)
What should go where?
![Page 10: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/10.jpg)
PowerShell
Background
![Page 11: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/11.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/12.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/13.jpg)
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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/14.jpg)
Leveraging
PowerShell Profiles
![Page 15: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/15.jpg)
• 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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/16.jpg)
Demo Time!
![Page 17: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/17.jpg)
• 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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/18.jpg)
Script Dependencies
![Page 19: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/19.jpg)
Path forward
![Page 20: PowerShell for the Hybrid Admin](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/20.jpg)
• 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](https://reader030.vdocument.in/reader030/viewer/2022032616/55a92fd01a28ab3a578b48e2/html5/thumbnails/21.jpg)
• 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