Linked e-resources
Details
Table of Contents
Intro
Table of Contents
About the Author
About the Technical Reviewer
Introduction
Chapter 1: PowerShell Basics
Variables and Printing
If/Else Switch
Conditional/Logical Operators
Logical Operators
Loops
For Loop and While Loop
For Loop
While Loop
Functions
Summary
Chapter 2: Date and Logs
Date Manipulation
Creating Folders Based on a Date
Ready-Made Date and Log Functions
Summary
Chapter 3: Input to Your Scripts
Import-CSV
Importing from a Text File
Input from an Array
Summary
Chapter 4: Interactive Input
Read-host
Parameters
GUI Button
Prompt (Yes or No)
Summary
Chapter 5: Adding Snapins/ Modules
PowerShell Snapins
Modules
Cheat Module (vsadmin)
Encrypting a Password (vsadmin)
Summary
Chapter 6: Sending Email
Formatting a Message Body
Sending HTML
Summary
Chapter 7: Error Reporting
Reporting Errors Through Email
Logging Everything Including Errors
Logging Errors to a Text File
Summary
Chapter 8: Reporting
CSV Report
Excel Reporting
HTML Reporting
Summary
Chapter 9: Miscellaneous Keywords
Split
Replace
Select-String
Compare-Object
Summary
Chapter 10: Gluing It All Together
Product Examples (Daily Use)
Microsoft Exchange
Clean Database So That Mailboxes Appear in a Disconnected State
Find Disconnected Mailboxes
Extract Message Accept From
Active Sync Stats
Message Tracking
Search Mailbox/Delete Messages
Exchange Quota Report
Set Quota
Active Directory
Exporting Group Members
Setting Values for AD Attributes
Exporting Active Directory Attributes
Adding Members to the Group from a Text File
Removing Members of the Group From a Text File
Office 365
Exchange Online Mailbox Report
Exchange Online Message Tracking
Searching a Unified Log
Azure AD
Adding Users to an Azure AD Group From a Text File of UPN
Removing Users in an Azure AD Group from a Text File of UPN
Checking If a User Is Already a Member of a Group
Adding Administrators to a Role
Checking for Azure AD User Provisioning Errors
Text/CSV File Operations
Regex
Summary
Index
Table of Contents
About the Author
About the Technical Reviewer
Introduction
Chapter 1: PowerShell Basics
Variables and Printing
If/Else Switch
Conditional/Logical Operators
Logical Operators
Loops
For Loop and While Loop
For Loop
While Loop
Functions
Summary
Chapter 2: Date and Logs
Date Manipulation
Creating Folders Based on a Date
Ready-Made Date and Log Functions
Summary
Chapter 3: Input to Your Scripts
Import-CSV
Importing from a Text File
Input from an Array
Summary
Chapter 4: Interactive Input
Read-host
Parameters
GUI Button
Prompt (Yes or No)
Summary
Chapter 5: Adding Snapins/ Modules
PowerShell Snapins
Modules
Cheat Module (vsadmin)
Encrypting a Password (vsadmin)
Summary
Chapter 6: Sending Email
Formatting a Message Body
Sending HTML
Summary
Chapter 7: Error Reporting
Reporting Errors Through Email
Logging Everything Including Errors
Logging Errors to a Text File
Summary
Chapter 8: Reporting
CSV Report
Excel Reporting
HTML Reporting
Summary
Chapter 9: Miscellaneous Keywords
Split
Replace
Select-String
Compare-Object
Summary
Chapter 10: Gluing It All Together
Product Examples (Daily Use)
Microsoft Exchange
Clean Database So That Mailboxes Appear in a Disconnected State
Find Disconnected Mailboxes
Extract Message Accept From
Active Sync Stats
Message Tracking
Search Mailbox/Delete Messages
Exchange Quota Report
Set Quota
Active Directory
Exporting Group Members
Setting Values for AD Attributes
Exporting Active Directory Attributes
Adding Members to the Group from a Text File
Removing Members of the Group From a Text File
Office 365
Exchange Online Mailbox Report
Exchange Online Message Tracking
Searching a Unified Log
Azure AD
Adding Users to an Azure AD Group From a Text File of UPN
Removing Users in an Azure AD Group from a Text File of UPN
Checking If a User Is Already a Member of a Group
Adding Administrators to a Role
Checking for Azure AD User Provisioning Errors
Text/CSV File Operations
Regex
Summary
Index