
- 222 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
PowerShell for Office 365
About this book
Learn the art of leveraging PowerShell to automate Office 365 repetitive tasksAbout 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 ForThe 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 PowerShellIn DetailWhile 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 approachThis 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.
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
Script Automation
- PowerShell modules
- Certificates and code signing
- Credential management
- Tracing and script automation
PowerShell modules
- Package functionality for distribution and reuse
- Provides documentation infrastructure
- Can have private and public functions

Module manifest
New-ModuleManifest -Path SalesDashboardModule.psd1 -Author Martin
-CompanyName Packt -Copyright 2017

# Module manifest for module 'SalesDashboardModule'
@{ # Script module or binary module file associated with this manifest.
RootModule = 'SalesDashboardModule'
# Version number of this module.
ModuleVersion = '1.0.0.1'
# Functions to export from this module
FunctionsToExport = @('Get-DailyProductSalesQuery','Get-DailyProductSalesTotals')
# List of all files packaged with this module
FileList = @("DailyProductSalesQuery.sql")
# Modules to import as nested modules of the module specified in RootModule
NestedModules = @('SqlFunctions.psm1', 'SPOFunctions.psm1')
... }
PS C:> Remove-Module SalesDashboardModule -ErrorAction Ignore
PS C:> $module = Get-Module SalesDashboardModule
PS C:> if($module -eq $null) {
Import-Module -Name C:\temp\SalesDashboardModule -Verbose
$module = Get-Module SalesDashboardModule
}
VERBOSE: Loading module from path 'C:\temp\SalesDashboardModule\SalesDashboardModule.psd1'.
VERBOSE: Loading module from path 'C:\temp\SalesDashboardModule\SqlFunctions.psm1'.
VERBOSE: Loading module from path 'C:\temp\SalesDashboard\ModuleSPOFunctions.psm1'.
...
VERBOSE: Loading module from path 'C:\temp\SalesDashboard\ModuleSalesDashboardModule.psm1'.
VERBOSE: Exporting function 'Get-DailyProductSalesQuery'.
VERBOSE: Exporting function 'Get-DailyProductSalesTotals'.
...
VERBOSE: Exporting function 'Start-DbSync'.
VERBOSE: Importing function 'Get-DailyProductSalesQuery'.
VERBOSE: Importing function 'Get-DailyProductSalesTotals'.
PS C:> $module.Version
Major Minor Build Revision
----- ----- ----- --------
1 0 0 4
PS C:> $module.FileList
C:\temp\SalesDashboard\ModuleDailyProductSalesQuery.sql
PS C:> $module.ExportedFunctions.Keys
Get-DailyProductSalesQuery
Get-DailyProductSalesTotals
...
Script modules
Table of contents
- Title Page
- Copyright
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- PowerShell Fundamentals
- Managing Office 365 with PowerShell
- Azure AD and Licensing Management
- Managing SharePoint Online Using PowerShell
- Managing Exchange Online Using PowerShell
- Script Automation
- Patterns and Practices PowerShell
- OneDrive for Business
- PowerShell Core
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app