This is the code repository for PowerShell for Office 365, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
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 or 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 Skype Online, 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.
All of the code is organized into folders. For example, Chapter06.
The code will look like the following:
function Get-DailyProductSalesQuery{
$module = Get-Module SalesDashboardModule;
$filePath = $module.FileList | Where { $_ -like '*DailyProductSalesQuery*'}
$sql = [System.IO.File]::ReadAllText($filePath).Trim();
Write-Debug "Sql: $($sql)";
return $sql;
}
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.