Learn the art of leveraging PowerShell to automate Office 365 repetitive tasks
About This Book
- Master the fundamentals of PowerShell to automate Office 365 tasks.
- Easily administer scenarios such as user management, reporting, cloud services, and many more.
- A fast-paced guide that leverages PowerShell commands to increase your productivity.
Who This Book Is For
The book is aimed at sys admins who are administering office 365 tasks and looking forward to automate the manual tasks. They have no knowledge about PowerShell however basic understanding of PowerShell would be advantageous.
What You Will Learn
- Understand the benefits of scripting and automation and get started using Powershell with Office 365
- Explore various PowerShell packages and permissions required to manage Office 365 through PowerShell
- Create, manage, and remove Office 365 accounts and licenses using PowerShell and the Azure AD
- Learn about using powershell on other platforms and how to use Office 365 APIs through remoting
- Work with Exchange Online and SharePoint Online using PowerShell
- Automate your tasks and build easy-to-read reports using PowerShell
While most common administrative tasks are available via the Office 365 admin center, many IT professionals are unaware of the real power that is available to them below the surface. This book aims to educate readers on how learning PowerShell for Office 365 can simplify repetitive and complex administrative tasks, and enable greater control than is available on the surface.
The book starts by teaching readers how to access Office 365 through PowerShell and then explains the PowerShell fundamentals required for automating Office 365 tasks.
You will then walk through common administrative cmdlets to manage accounts, licensing, and other scenarios such as automating the importing of multiple users,assigning licenses in Office 365, distribution groups, passwords, and so on.
Using practical examples, you will learn to enhance your current functionality by working with Exchange Online, and SharePoint Online using PowerShell. Finally, the book will help you effectively manage complex and repetitive tasks (such as license and account management) and build productive reports.
By the end of the book, you will have automated major repetitive tasks in Office 365 using PowerShell.
Style and approach
This step by step guide focuses on teaching the fundamentals of working with PowerShell for Office 365. It covers practical usage examples such as managing user accounts, licensing, and administering common Office 365 services. You will be able to leverage the processes laid out in the book so that you can move forward and explore other less common administrative tasks or functions.
Table of Contents
- Why do we need to learn PowerShell for Office 365?
- PowerShell is a cmdlet based language with verb-noun syntax
- How to pass parameters to cmdlets and storing results as a variable
- How to get help with PowerShell
- How PowerShell is an object-oriented language and how to work with objects
- Using the if and where statements
- Using the for and while loops
- Creating your first script
Managing Office 365 with PowerShell
- Admin roles for Office 365
- Installing and working with the Office 365 admin tools
- Creating the first user account in PowerShell
- Azure AD and Licensing Management
Managing SharePoint Online Using PowerShell
- A brief overview of the SharePoint APIs
- Setting up your environment
SharePoint Online scripting
- Scenario 1 - getting to know the API
- Scenario 2 - site collection information
- Scenario 3 - site collection maintenance
- Scenario 4 - personal sites
- Scenario 5 - sharing and external access
- Scenario 6 - CSOM scripting using PowerShell
- Scenario 7 - the REST API in PowerShell
Managing Exchange Online Using PowerShell
- Connecting to Exchange Online
- Working with Exchange accounts
- User impersonation
- Role-based access control
- PowerShell modules
- Code signing
- Active Directory Certificate Services
Patterns and Practices PowerShell
- Why do we need to learn PnP PowerShell?
- Installing and working with PnP PowerShell cmdlets
- Using Windows Credential Manager with PnP PowerShell
- OneDrive for Business
- PowerShell Core
- Title: PowerShell for Office 365
- Release date: July 2017
- Publisher(s): Packt Publishing
- ISBN: 9781787127999