Description
Book SynopsisCreate complex scripts in PowerShell and learn how to connect them to cloud services like Azure and Azure AD. This book will help you learn PowerShell by providing small cheat snippets that you can combine to write efficient and effective scripts.
PowerShell Fast Track starts with the basics of PowerShell before moving on to discuss functions like date and logs, along with concepts such as inputs for your scripts. Author Vikas Sukhija then walks you through interactive input and Snapins modules, where you will learn GUI button prompts and how to import sessions. He''ll then show you how to report errors through email and log errors to a text file. Reporting CSV (Comma Separate Value) is discussed next, followed by a demonstration of miscellaneous functions, including how to connect your PowerShell scripts with Azure, SharePoint, Teams and other services. As you progress further, you''ll see how PowerShell provides powerful features for automation that can be leveraged f
Table of Contents
Chapter 1. PowerShell Basics
Variables & Printing If Else/ switch Conditional / Logical Operators Loops For –Loop While –Loop Functions
Chapter 2. Date & logs
Define Logs First day & Last day of Month Midnight Create Folders based on Date Recycle Logs Progress bar
Chapter 3. Input to your scripts
Import CSV Import from text file Input from Array
Chapter 4. Interactive Input
Read-host Parameters GUI Button Prompt
Chapter 5. Adding Snap ins/ Modules
PowerShell Snapins Modules Import Session Example:
Chapter 6. Sending Email
Chapter 7. Error Reporting
Reporting Error thru Email Logging Everything including Error Logging error to Text file
Chapter 8. Reporting CSV
Report HTML Reporting
Chapter 9. Miscellaneous Keywords
Split Replace Select-String Compare-Object
Chapter 10. Product Examples (Daily Use)
Microsoft Exchange Clean Database so that mailboxes appear in disconnected state Find Disconnected Mailboxes Clustered Mailbox Status (2007) Extract Message accept from Active Sync Stats Message Tracking Search mailbox / Delete Messages Exchange Quota Report Set Quota Active Directory Export Group members Set values for Ad attributes Export Active Directory attributes Add members to the group from text file Remove members to the group from text file Office 365 Exchange Online Mailbox Report Exchange Online Message Tracking Searching Unified Log
11. Appendix