Essential PowerShell

Essential PowerShell
Author: Holger Schwichtenberg
Publisher: Sams Publishing
Total Pages: 478
Release: 2008
Genre: Computers
ISBN: 9780672329661

A concise introduction to the most common commands and scenarios in Microsoft's power new scripting language and command line shell.

Essential PowerShell

Essential PowerShell
Author: Holger Schwichtenberg
Publisher: Pearson Education
Total Pages: 550
Release: 2008-06-19
Genre: Computers
ISBN: 0132715198

Use PowerShell to Streamline and Automate Your Most Time-Consuming Windows Administration Tasks With Windows PowerShell, Microsoft brings innovative console-based system administration and scripting to Windows clients and servers. PowerShell combines the best features of traditional UNIX shells with the immense power of the .NET Framework, offering a consistent and easy-to-use replacement for both the Windows command line and the Windows Script Host. In Essential PowerShell, noted expert Holger Schwichtenberg gives Windows sysadmins all the knowledge and sample scripts they need to successfully administer production systems with PowerShell. Schwichtenberg begins by introducing the innovative PowerShell architecture, along with crucial PowerShell concepts such as pipelining and navigation. Next, he introduces the PowerShell Script Language, shows the secure execution of command sequences as scripts, and demonstrates how to use PowerShell to access essential operating system interfaces such as COM, WMI, ADSI, and ADO.NET. After you’ve mastered the fundamentals, Schwichtenberg presents an extensive collection of PowerShell solutions for virtually every area of day-to-day administration. For each topic, he presents dozens of self-contained examples, all downloadable from a companion Web site. He covers both Microsoft’s standard PowerShell commandlets and the free commandlets available as PowerShell Community Extensions. He also presents a full chapter of tips, tricks, and troubleshooting solutions. Coverage includes Understanding PowerShell’s components and features Setting up your PowerShell scripting environment Creating and using commandlets Using object-oriented pipelining for filtering, sorting, grouping, comparisons, calculations, and more Mastering PowerShell’s uniform navigation model and using it with all types of data Programming command sequences with the PowerShell Script Language Making the most of the PowerShell console and third-party tools Managing processes, event logs, and registry entries Controlling networking, printing, and software installation Manipulating Active Directory and other enterprise services with PowerShell Using PowerShell to enforce stronger system and network security Storing data in files, documents, and databases Preface xv Part I: Getting Started with PowerShell 1: First Steps with Windows PowerShell 3 2: Commandlets 25 3: Pipelining 43 4: Advanced Pipelining 59 5: The PowerShell Navigation Model 81 6: The PowerShell Script Language 89 7: PowerShell Scripts 115 8: Using Class Libraries 129 9: PowerShell Tools 151 10: Tips, Tricks and Troubleshooting 171 Part II: Windows PowerShell in Action 11: File Systems 205 12: Documents 235 13: Registry and Software 253 14: Processes and Services 267 15: Computers and Hardware 281 16: Networking 295 17: Directory Services 313 18: User and Group Management in the Active Directory 335 19: Searching in the Active Directory 349 20: Additional Libraries for Active Directory Administration 361 21: Databases 373 22: Advanced Database Operations 389 23: Security Settings 401 24: Advanced Security Administration 413 PartIII: Appendices Appendix A: PowerShell Commandlet Reference 429 Appendix B: PowerShell 2.0 Preview 445 Appendix C: Bibliography 449 Index 453

Essential PowerShell for Office 365

Essential PowerShell for Office 365
Author: Vlad Catrinescu
Publisher: Apress
Total Pages: 244
Release: 2018-03-27
Genre: Computers
ISBN: 1484231295

Take your Office 365 skills to the next level. Master PowerShell for Office 365 to stay competitive in today’s world of highly sought after cloud management skills. With expert guidance, IT pros will learn how to leverage the muscle of PowerShell to automate many advanced administrative tasks not otherwise accessible in the Office 365 Admin Center. You will discover how to unlock configuration options and automate tasks in order to free up valuable time and resources. This book is your companion to administering Office 365 with PowerShell. You will learn time-saving techniques such as how to streamline administrative tasks, and how to manage users, licenses, and Office 365 services. Expert and MVP Vlad Catrinescu introduces each chapter with an overview and basic fundamentals, such as how to connect to your required service in Office 365, so that you have a solid foundation for success. Benefit from learning the theory behind PowerShell for Office 365 and put your knowledge to practice with numerous hands-on code examples. What You’ll Learn Manage users in bulk Export data such as user lists and groups Create and manage Office 365 groups Manage Exchange online distribution lists, mailboxes, and contacts Configure Skype for Business settings Perform compliance searches directly from PowerShell Who This Book Is For Any IT pro who needs to manage Office 365 or one of its services such as Exchange, SharePoint, or Skype for Business. Readers should have a basic knowledge of PowerShell and the Office 365 service they want to manage.

PowerShell for Sysadmins

PowerShell for Sysadmins
Author: Adam Bertram
Publisher: No Starch Press
Total Pages: 321
Release: 2020-02-04
Genre: Computers
ISBN: 1593279183

Learn to use PowerShell, Microsoft's scripting language, to automate real-world tasks that IT professionals and system administrators deal with every day. Save Time. Automate. PowerShell® is both a scripting language and an administrative shell that lets you control and automate nearly every aspect of IT. In PowerShell for Sysadmins, five-time Microsoft® MVP "Adam the Automator" Bertram shows you how to use PowerShell to manage and automate your desktop and server environments so that you can head out for an early lunch. You'll learn how to: Combine commands, control flow, handle errors, write scripts, run scripts remotely, and test scripts with the PowerShell testing framework, Pester Parse structured data like XML and JSON, work with common domains (like Active Directory, Azure, and Amazon Web Services), and create a real-world server inventory script Design and build a PowerShell module to demonstrate PowerShell isn't just about ad-hoc scripts Use PowerShell to create a hands-off, completely automated Windows deployment Build an entire Active Directory forest from nothing but a Hyper-V host and a few ISO files Create endless Web and SQL servers with just a few lines of code! Real-world examples throughout help bridge the gap between theory and actual system, and the author's anecdotes keep things lively. Stop with the expensive software and fancy consultants. Learn how to manage your own environment with PowerShell for Sysadmins and make everyone happy. Covers Windows PowerShell v5.1

PowerShell Deep Dives

PowerShell Deep Dives
Author: Oisin Grehan
Publisher: Simon and Schuster
Total Pages: 693
Release: 2013-07-25
Genre: Computers
ISBN: 1638353034

Summary Here's your chance to learn from the best in the business. PowerShell Deep Dives is a trove of essential techniques, practical guidance, and the expert insights you earn only through years of experience. Editors Jeffery Hicks, Richard Siddaway, Oisin Grehan, and Aleksandar Nikolic hand-picked the 28 chapters in the book's four parts: Administration, Scripting, Development, and Platforms. About the Technology PowerShell has permanently changed Windows administration. This powerful scripting and automation tool allows you to control virtually every aspect of Windows and most Microsoft servers like IIS and SQL Server. Here's your chance to learn from the best in the business. About this Book PowerShell Deep Dives is a trove of essential techniques and practical guidance. It is rich with insights from experts who won them through years of experience. The book's 28 chapters, grouped in four parts (Administration, Scripting, Development, and Platforms), were hand-picked by four section editors: Jeffery Hicks, Richard Siddaway, Oisin Grehan, and Aleksandar Nikolic. Whether you're just getting started with PowerShell or you already use it daily, you'll find yourself returning to this book over and over. What's Inside Managing systems through a keyhole The Ten Commandments of PowerShell scripting Scalable scripting for large datasets Adding automatic remoting Provisioning web servers and websites automatically to IIS 8 And 23 more fantastic chapters Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the AuthorsEditors Jeffery Hicks, Richard Siddaway, Oisin Grehan, and Aleksandar Nikolic are joined by PowerShell experts Chris Bellee, Bartek Bielawski, Robert C. Cain, Jim Christopher, Adam Driscoll, Josh Gavant, Jason Helmick, Don Jones, Ashley McGlone, Jonathan Medd, Ben Miller, James O'Neill, Arnaud Petitjean, Vadims Podans, Karl Prosser, Boe Prox, Matthew Reynolds, Mike Robbins, Donabel Santos, Will Steele, Trevor Sullivan, and Jeff Wouters. Table of Contents PART 1 POWERSHELL ADMINISTRATION Diagnosing and troubleshooting PowerShell remoting CIM sessions 22 Collecting and analyzing performance counter data TCP port communications with PowerShell Managing systems through a keyhole Using PowerShell to audit user logon events Managing and administering a certification authoritydatabase with PowerShell Using PowerShell to reduce Active Directory token bloat PART 2 POWERSHELL SCRIPTING The 10 PowerShell scripting commandments Avoiding the pipeline A template for handling and reporting errors Tips and tricks for creating complex or advancedHTML reports with PowerShell Using and "abusing" dynamic parameters PowerShell type formatting Scalable scripting for large data sets: pipelineand database techniques Building your own WMI-based cmdlets Turning command-line tools into PowerShell tools PART 3 POWERSHELL FOR DEVELOPERS Using Source Control Software with PowerShell Inline .NET code PowerShell and XML: better together Adding automatic remoting to advanced functionsand cmdlets Taming software builds (and other complicated processes)with psake PART 4 POWERSHELL PLATFORMS PowerShell and the SQL Server provider Creating flexible subscriptions in SSRS Inventory database table statistics using PowerShellSQL Server Management Objects WSUS and PowerShell Provisioning IIS web servers and sites with PowerShell Active Directory Group Management application

PowerShell for Office 365

PowerShell for Office 365
Author: Martin Machado
Publisher: Packt Publishing Ltd
Total Pages: 215
Release: 2017-07-26
Genre: Computers
ISBN: 1787127893

Learn the art of leveraging PowerShell to automate Office 365 repetitive tasks About 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 For The 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 PowerShell In Detail 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 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 approach This 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.

Windows PowerShell 3.0 First Steps

Windows PowerShell 3.0 First Steps
Author: Ed Wilson
Publisher: Pearson Education
Total Pages: 377
Release: 2013-07-15
Genre: Computers
ISBN: 0735680965

Get started with this powerful Windows administration tool Automate Windows administration tasks with ease by learning the fundamentals of Windows PowerShell 3.0. Led by a Windows PowerShell expert, you’ll learn must-know concepts and techniques through easy-to-follow explanations, examples, and exercises. Once you complete this practical introduction, you can go deeper into the Windows PowerShell command line interface and scripting language with Windows PowerShell 3.0 Step by Step. Discover how to: Create effective Windows PowerShell commands with one line of code Apply Windows PowerShell commands across several Windows platforms Identify missing hotfixes and service packs with a single command Sort, group, and filter data using the Windows PowerShell pipeline Create users, groups, and organizational units in Active Directory Add computers to a domain or workgroup with a single line of code Run Windows PowerShell commands on multiple remote computers Unleash the power of scripting with Windows Management Instrumentation (WMI)

Getting Started with PowerShell

Getting Started with PowerShell
Author: Michael Shepard
Publisher: Packt Publishing Ltd
Total Pages: 180
Release: 2015-08-27
Genre: Computers
ISBN: 1785284908

Learn the fundamentals of PowerShell to build reusable scripts and functions to automate administrative tasks with Windows About This Book Harness the capabilities of the PowerShell system to get started quickly with server automation Learn to package commands into a reusable script and add control structures and parameters to make them flexible Get to grips with cmdlets that allow you to perform administration tasks efficiently Who This Book Is For This book is intended for Windows administrators or DevOps users who need to use PowerShell to automate tasks. Whether you know nothing about PowerShell or know just enough to get by, this guide will give you what you need to go to take your scripting to the next level. What You Will Learn Learn to verify your installed version of PowerShell, upgrade it, and start a PowerShell session using the ISE Discover PowerShell commands and cmdlets and understand PowerShell formatting Use the PowerShell help system to understand what particular cmdlets do Utilise the pipeline to perform typical data manipulation Package your code in scripts, functions, and modules Solve common problems using basic file input/output functions Find system information with WMI and CIM Automate IIS functionality and manage it using the WebAdministration module In Detail Windows PowerShell is a task-based command-line shell and scripting language designed specifically for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows. PowerShell is great for batch importing or deleting large sets of user accounts and will let you collect a massive amount of detailed system information in bulk via WMI (Windows Management Instrumentation). Getting Started with PowerShell is designed to help you get up and running with PowerShell, taking you from the basics of installation, to writing scripts and web server automation. This book, as an introduction to the central topics of PowerShell, covers finding and understanding PowerShell commands and packaging code for reusability, right through to a practical example of automating IIS. It also includes topics such as installation and setup, creating scripts, automating tasks, and using Powershell to access data stores, registry, and file systems. You will explore the PowerShell environment and discover how to use cmdlets, functions, and scripts to automate Windows systems. Along the way, you will learn to perform data manipulation and solve common problems using basic file input/output functions. By the end of this book, you will be familiar with PowerShell and be able to utilize the lessons learned from the book to automate your servers. Style and approach A practical learning guide, complete with plenty of activities, examples and screenshots.

Learn PowerShell Scripting in a Month of Lunches

Learn PowerShell Scripting in a Month of Lunches
Author: Don Jones
Publisher: Manning
Total Pages: 0
Release: 2017-11-25
Genre: Computers
ISBN: 9781617295096

Summary Discover how scripting is different from command-line PowerShell, as you explore concrete hands-on examples in this handy guide. The book includes and expands on many of the techniques presented in Learn PowerShell Toolmaking in a Month of Lunches. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Automate it! With Microsoft's PowerShell language, you can write scripts to control nearly every aspect of Windows. Just master a few straightforward scripting skills, and you'll be able to eliminate repetitive manual tasks, create custom reusable tools, and build effective pipelines and workflows. Once you start scripting in PowerShell, you'll be amazed at how many opportunities you'll find to save time and effort. About the Book Learn PowerShell Scripting in a Month of Lunches teaches you how to expand your command-line PowerShell skills into effective scripts and tools. In 27 bite-size lessons, you'll discover instantly useful techniques for writing efficient code, finding and squashing bugs, organizing your scripts into libraries, and much more. Advanced scripters will even learn to access the .NET Framework, store data long term, and create nice user interfaces. What's Inside Designing functions and scripts Effective pipeline usage Dealing with errors and bugs Professional-grade scripting practices About the Reader Written for devs and IT pros comfortable with PowerShell and Windows. About the Authors Don Jones is a PowerShell MVP, speaker, and trainer who has written dozens of books on information technology topics. Jeffery Hicks is a PowerShell MVP and an independent consultant, trainer, and author. Don and Jeff coauthored Manning's Learn Windows PowerShell in a Month of Lunches, Learn PowerShell Toolmaking in a Month of Lunches, and PowerShell in Depth. Table of Contents PART 1 - INTRODUCTION TO SCRIPTING Before you begin Setting up your scripting environment WWPD: what would PowerShell do? Review: parameter binding and the PowerShell pipeline Scripting language crash course The many forms of scripting (and which to use) Scripts and security PART 2 - BUILDING A POWERSHELL SCRIPT Always design first Avoiding bugs: start with a command Building a basic function and script module Going advanced with your function Objects: the best kind of output Using all the pipelines Simple help: making a comment Dealing with errors Filling out a manifest PART 3 - GROWN-UP SCRIPTING Changing your brain when it comes to scripting Professional-grade scripting An introduction to source control with git Pestering your script Signing your script Publishing your script PART 4 - ADVANCED TECHNIQUES Squashing bugs Making script output prettier Wrapping up the .NET Framework Storing data-not in Excel! Never the end

Windows Powershell Pocket Reference

Windows Powershell Pocket Reference
Author: Lee Holmes
Publisher: "O'Reilly Media, Inc."
Total Pages: 178
Release: 2008-05-27
Genre: Computers
ISBN: 0596551843

This portable reference to Windows PowerShell summarizes both the command shell and scripting language, and provides a concise reference to the major tasks that make PowerShell so successful. It's an ideal on-the-job tool for Windows administrators who don't have time to plow through huge books or search online. Written by Microsoft PowerShell team member Lee Holmes, and excerpted from his Windows PowerShell Cookbook, Windows PowerShell Pocket Reference offers up-to-date coverage of PowerShell's 1.0 release. You'll find information on .NET classes and legacy management tools that you need to manage your system, along with chapters on how to write scripts, manage errors, format output, and much more. Beginning with a whirlwind tour of Windows PowerShell, this convenient guide covers: PowerShell language and environment Regular expression reference PowerShell automatic variables Standard PowerShell verbs Selected .NET classes and their uses WMI reference Selected COM objects and their uses .NET string formatting .NET datetime formatting An authoritative source of information about PowerShell since its earliest betas, Lee Holmes' vast experience lets him incorporate both the "how" and the "why" into the book's discussions. His relationship with the PowerShell and administration community -- through newsgroups, mailing lists, and his informative blog Lee Holmes -- gives him insight into problems faced by administrators and PowerShell users alike. If you're ready to learn this powerful tool without having to break stride in your routine, this is the book you want.