Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PowerShell for Office 365

You're reading from   PowerShell for Office 365 Automate Office 365 administrative tasks

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher Packt
ISBN-13 9781787127999
Length 222 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Prashant G Bhoyar Prashant G Bhoyar
Author Profile Icon Prashant G Bhoyar
Prashant G Bhoyar
Martin Machado Martin Machado
Author Profile Icon Martin Machado
Martin Machado
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. PowerShell Fundamentals FREE CHAPTER 2. Managing Office 365 with PowerShell 3. Azure AD and Licensing Management 4. Managing SharePoint Online Using PowerShell 5. Managing Exchange Online Using PowerShell 6. Script Automation 7. Patterns and Practices PowerShell 8. OneDrive for Business 9. PowerShell Core

User impersonation


As seen in the previous section, some activities can be executed only by the account being targeted. In the preceding example, not even a global administrator can create an inbox rule that uses text messaging (more on security on the next section). However, we have the option of user impersonation. At the time of writing this, user impersonation can be used only through EWS.

EWS pre-dates PowerShell and Office 365 and can be used for system integration and application development, hence its implementation of user impersonation. Fortunately, once we get familiar with the API, using EWS can be leveraged in our PowerShell scripts.

Installing Exchange Web Services

EWS can be downloaded from the Microsoft website (https://www.microsoft.com/en-us/download/details.aspx?id=42951); the project is open source and is available on GitHub (https://github.com/OfficeDev/ews-managed-api). The installation is straightforward and will copy the files to Program Files\Microsoft\Exchange\Web...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime