Table of contents : Cover Copyright Credits About the Authors About the Reviewer www.PacktPub.com Customer Feedback Table of Contents Preface Chapter 1: PowerShell Fundamentals 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 Parameters How to get help with PowerShell What is a module? What is a pipe? 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. How to change the license for existing usersFormatting data to be used for bulk account management How to reset account passwords How to update user account details Summary Chapter 4: Managing SharePoint Online Using PowerShell A brief overview of the SharePoint APIs The SharePoint web services API The SharePoint server-side API and PowerShell API The client-side object model The REST API The SharePoint Online API Setting up your environment PowerShell execution policy SharePoint Online Management Shell Security requirements SharePoint Online scripting. Scenario 1 -- getting to know the APIScenario 2 -- site collection information Scenario 3 -- site collection maintenance Testing site health Scenario 4 -- personal sites Scenario 5 -- sharing and external access Guest access Scenario 6 -- CSOM scripting using PowerShell Environment setup Connecting to SharePoint Online via CSOM CSOM queries Scenario 7 -- the REST API in PowerShell Summary Chapter 5: Managing Exchange Online Using PowerShell Connecting to Exchange Online Exploring the API Working with Exchange accounts Creating new mailboxes Scenario 1 -- a new user mailbox. Scenario 2 -- an unlicensed existing userScenario 3 -- a licensed user without the Exchange service Scenario 4 -- MailUser User photos Email forwarding Out-of-office reply Inbox rules User impersonation Installing Exchange Web Services Role-based access control Management roles Role groups Management role assignment RBAC scenario -- creating a custom administrator First requirement -- limiting access to PowerShell commands Second requirement -- limiting access to a group of users Summary Chapter 6: Script Automation PowerShell modules Module manifest Script modules Cmdlets.