PowerShell Core for Linux Administrators Cookbook


Book Description

Over 150 recipes to leverage Microsoft's open source automation framework and command line shell Key FeaturesWork effectively on Windows, Linux, and macOS with PowerShell’s object-oriented approach and capabilitiesHandle structured data seamlessly without the need for manual parsingEnhance your native Linux capabilities with PowerShell Core 6.1Book Description PowerShell Core, the open source, cross-platform that is based on the open source, cross-platform .NET Core, is not a shell that came out by accident; it was intentionally created to be versatile and easy to learn at the same time. PowerShell Core enables automation on systems ranging from the Raspberry Pi to the cloud. PowerShell Core for Linux Administrators Cookbook uses simple, real-world examples that teach you how to use PowerShell to effectively administer your environment. As you make your way through the book, you will cover interesting recipes on how PowerShell Core can be used to quickly automate complex, repetitive, and time-consuming tasks. In the concluding chapters, you will learn how to develop scripts to automate tasks that involve systems and enterprise management. By the end of this book, you will have learned about the automation capabilities of PowerShell Core, including remote management using OpenSSH, cross-platform enterprise management, working with Docker containers, and managing SQL databases. What you will learnLeverage the object model of the shell, which is based on .NET CoreAdminister computers locally as well as remotely using PowerShell over OpenSSHGet to grips with advanced concepts of PowerShell functionsUse PowerShell for administration on the cloudKnow the best practices pertaining to PowerShell scripts and functionsExploit the cross-platform capabilities of PowerShell to manage scheduled jobs, Docker containers and SQL DatabasesWho this book is for PowerShell Core for Linux Administrators Cookbook is for you if you are a system administrator who wants to learn to control and automate a Linux environment with PowerShell Core 6.1. Basic knowledge of PowerShell scripting is necessary. It is assumed that you already understand how an operating system is structured and how to use the command-line interface to work with the operating system.




Powershell Core 6.2 Cookbook


Book Description

Make use of hands-on recipes for many tasks that are typically encountered in both the on-premises as well as the cloud world. Key FeaturesA recipe-based guide to help you build effective administrative solutionsGain hands-on experience with the newly added features of PowerShell CoreManage critical business environments with professional scripting practicesBook Description This book will follow a recipe-based approach and start off with an introduction to the fundamentals of PowerShell, and explaining how to install and run it through simple examples. Next, you will learn how to use PowerShell to access and manipulate data and how to work with different streams as well. You will also explore the object model which will help with regard to PowerShell function deployment. Going forward, you will get familiar with the pipeline in its different use cases. The next set of chapters will deal with the different ways of accessing data in PowerShell. You will also learn to automate various tasks in Windows and Linux using PowerShell Core, as well as explore Windows Server. Later, you will be introduced to Remoting in PowerShell Core and Just Enough Administration concept. The last set of chapters will help you understand the management of a private and public cloud with PowerShell Core. You will also learn how to access web services and explore the high-performance scripting methods. By the end of this book, you will gain the skills to manage complex tasks effectively along with increasing the performance of your environment. What you will learnLeverage cross-platform interaction with systemsMake use of the PowerShell recipes for frequent tasksGet a better understanding of the inner workings of PowerShellUnderstand the compatibility of built-in Windows modules with PowerShell CoreLearn best practices associated with PowerShell scriptingAvoid common pitfalls and mistakesWho this book is for This book will be for windows administrators who want to enhance their PowerShell scripting skills to the next level. System administrators wanting to automate common to complex tasks with PowerShell scripts would benefit from this book. Prior understanding on PowerShell would be necessary.




PowerShell Advanced Cookbook


Book Description

Fully unleash your scripting powers and capabilities with PowerShell KEY FEATURES ● PowerShell administration fundamentals. ● Advanced scripting and automation. ● Enterprise and cloud administration. DESCRIPTION PowerShell is a powerful scripting language, automation framework and command-line shell developed by Microsoft that is built on the .NET framework. It is an essential tool because it allows system administrators and developers to automate and optimize complex administrative tasks across multiple systems efficiently. PowerShell's deep integration with Windows and other Microsoft products makes it an invaluable tool for administrating, managing and optimizing Windows environments. Designed as a cookbook, this book enables readers to expand and build upon their current PowerShell knowledge and skillset. Topics covered in detail include creating PowerShell unit tests using Pester, managing and administrating Azure and AWS cloud services, remote script execution, Active Directory management, PowerShell desired state configuration and more. Each chapter includes recipes that delves into the topics, accompanied by code examples and walkthroughs. After reading this book, readers would have gained the knowledge and skills that will enable them to build better and more advanced scripts and applications while also understanding key principles of automation and optimization. This will also aid the readers to streamline processes and enhance administrative tasks more efficiently using PowerShell. WHAT YOU WILL LEARN ● Develop advanced PowerShell functions, classes, and scripts with sophisticated flow control. ● Manage errors effectively, including custom error classes, in scripts and background jobs. ● Securely handle remote sessions using PowerShell remoting for enhanced management. ● Utilize Pester for unit testing and mocking dependencies, ensuring script reliability. ● Administer Active Directory objects and cloud services like Azure and AWS, including Microsoft 365 applications. ● Build GUI applications and Windows services from PowerShell scripts with SAPIEN PowerShell studio IDE. WHO THIS BOOK IS FOR This book is intended for developers and system administrators with a novice or intermediate understanding of PowerShell who are looking to advance their skills. TABLE OF CONTENTS 1. Introduction to Advanced PowerShell Concepts 2. Advanced PowerShell Functions 3. Flow Control and Looping 4. Error Handling 5. Scripting Techniques 6. Remote Script Execution: PowerShell Remote Management 7. Testing with Pester 8. Working with XML and JSON 9. Active Directory Management 10. Managing Azure with PowerShell 11. Managing AWS with PowerShell 12. Microsoft 365 Applications Management 13. Desired State Configuration 14. Managing Windows Components 15. SAPIEN PowerShell Studio IDE




Windows PowerShell Cookbook


Book Description

With more than 250 ready-to-use recipes, this solutions-oriented introduction to the Windows PowerShell scripting environment and language provides administrators with the tools to be productive immediately.




Learn PowerShell Core 6.0


Book Description

Enhance your skills in expert module development, deployment, security, DevOps, and cloud Key Features A step-by-step guide to get you started with PowerShell Core 6.0 Harness the capabilities of PowerShell Core 6.0 to perform simple to complex administration tasks Learn core administrative concepts such as scripting, pipelines, and DSC Book Description Beginning with an overview of the different versions of PowerShell, Learn PowerShell Core 6.0 introduces you to VSCode and then dives into helping you understand the basic techniques in PowerShell scripting. You will cover advanced coding techniques, learn how to write reusable code as well as store and load data with PowerShell. This book will help you understand PowerShell security and Just Enough Administration, enabling you to create your own PowerShell repository. The last set of chapters will guide you in setting up, configuring, and working with Release Pipelines in VSCode and VSTS, and help you understand PowerShell DSC. In addition to this, you will learn how to use PowerShell with Windows, Azure, Microsoft Online Services, SCCM, and SQL Server. The final chapter will provide you with some use cases and pro tips. By the end of this book, you will be able to create professional reusable code using security insight and knowledge of working with PowerShell Core 6.0 and its most important capabilities. What you will learn Get to grips with Powershell Core 6.0 Explore basic and advanced PowerShell scripting techniques Get to grips with Windows PowerShell Security Work with centralization and DevOps with PowerShell Implement PowerShell in your organization through real-life examples Learn to create GUIs and use DSC in production Who this book is for If you are a Windows administrator or a DevOps user who wants to leverage PowerShell to automate simple to complex tasks, then this book is for you. Whether you know nothing about PowerShell or just enough to get by, this guide will give you what you need to go to take your scripting to the next level. You’ll also find this book useful if you’re a PowerShell expert looking to expand your knowledge in areas such as PowerShell Security and DevOps.




Windows Server Automation with PowerShell Cookbook


Book Description

Develop a holistic understanding of Windows Server with over 100 PowerShell recipes Key FeaturesUpdated with new recipes on the .NET Framework, enterprise server security, and managing Windows Server with WMILearn PowerShell best practices to automate common tasks and manage AD, enterprise security, Azure, and .NET 5Discover new ways to optimize your PowerShell code by working through easy-to-follow recipesBook Description With a foreword from PowerShell creator Jeffrey Snover, this heavily updated edition is designed to help you learn how to use PowerShell 7.1 effectively and manage the core roles, features, and services of Windows Server in an enterprise setting. All scripts are compatible with both Window Server 2022 and 2019. This latest edition equips you with over 100 recipes you'll need in day-to-day work, covering a wide range of fundamental and more advanced use cases. We look at how to install and configure PowerShell 7.1, along with useful new features and optimizations, and how the PowerShell compatibility solution bridges the gap to older versions of PowerShell. Topics include using PowerShell to manage networking and DHCP in Windows Server, objects in Active Directory, Hyper-V, and Azure. Debugging is crucial, so the book shows you how to use some powerful tools to diagnose and resolve issues with Windows Server. What you will learnPerform key admin tasks on Windows ServerKeep your organization secure with JEA, group policies, logs, and Windows DefenderUse the .NET Framework for administrative scriptingManage data and storage on Windows, including disks, volumes, and filesystemsCreate and configure Hyper-V VMs, implementing storage replication and checkpointsSet up virtual machines, websites, and shared files on AzureReport system performance using built-in cmdlets and WMI to obtain single measurementsApply the right tools and modules to troubleshoot and debug Windows ServerWho this book is for This book is for systems administrators, software architects, developers, or engineers working with Windows Server seeking to automate tasks more effectively with PowerShell 7.1. Basic knowledge of PowerShell is expected.




Windows Server 2019 Automation with PowerShell Cookbook


Book Description

Automate Windows server tasks with the powerful features of the PowerShell Language Key FeaturesLeverage PowerShell to automate complex Windows server tasks Master new features such as DevOps, and containers, and speed up their performance using PowerShellImprove PowerShell's usability, and control and manage Windows-based environments by working through exciting recipesBook Description Windows Server 2019 represents the latest version of Microsoft’s flagship server operating system. It also comes with PowerShell Version 5.1 and has a number of additional features that IT pros find useful. The book helps the reader learn how to use PowerShell and manage core roles, features, and services of Windows Server 2019. You will begin with creating a PowerShell Administrative Environment that has updated versions of PowerShell and the Windows Management Framework, updated versions of the .NET Framework, and third-party modules. Next, you will learn to use PowerShell to set up and configure Windows Server 2019 networking and also managing objects in the AD environment. You will also learn to set up a host to utilize containers and how to deploy containers. You will also be implementing different mechanisms for achieving desired state configuration along with getting well versed with Azure infrastructure and how to setup Virtual Machines, web sites, and shared files on Azure. Finally, you will be using some powerful tools you can use to diagnose and resolve issues with Windows Server 2019. By the end of the book, you will learn a lot of trips and tricks to automate your windows environment with PowerShell What you will learnPerform key admin tasks on Windows Server 2019Employing best practices for writing PowerShell scripts and configuring Windows Server 2019Use the .NET Framework to achieve administrative scriptingSet up VMs, websites, and shared files on AzureReport system performance using built-in cmdlets and WMI to obtain single measurementsKnow the tools you can use to diagnose and resolve issues with Windows ServerWho this book is for If you are a systems administrator, engineer, or an architect working with Windows Server 2016 interested in upgrading to Windows Server 2019 and automating tasks with PowerShell, then this book is for you. A basic knowledge of PowerShell is expected.




Windows PowerShell Cookbook


Book Description

"The complete guide to scripting Microsoft's command shell"--Cover.




Microsoft Exchange Server 2016 PowerShell Cookbook


Book Description

Make the most of PowerShell's features to manage all aspects of your Exchange Server 2016 environment. About This Book Learn to integrate PowerShell with Exchange Server 2016 Write scripts and functions to run tasks automatically, and generate complex reports with PowerShell Use these effective recipes to learn all popular and important PowersShell scripts to manage tasks and avoid errors Who This Book Is For This book is for messaging professionals who want to build real-world scripts with Windows PowerShell and the Exchange Management Shell. You'll also find it indispensable if you're a network or systems administrator responsible for managing and maintaining Exchange Server 2016. What You Will Learn Master the new features and capabilities of PowerShell and Exchange Server 2016 Get to grips with the core PowerShell concepts Use simple PowerShell scripts and commands to get powerful results Generate detailed reports, send the output of commands by email , and schedule scripts to run automatically Import, export, and move mailboxes, and delete messages from mailboxes using the command line Configure transport server settings such as mail relay, tracking logs, transport rules, delivery reports, and more Manage mailbox and public folders Monitor the health of an Exchange environment through built-in cmdlets and other methods Integrate Exchange with Office Online Server, Skype for Business Server, and Exchange Online (Office 365) In Detail We start with a set of recipes on core PowerShell concepts. This will provide you with a foundation for the examples in the book. Next, you'll see how to implement some of the common exchange management shell tasks, so you can effectively write scripts with this latest release. You will then learn to manage Exchange recipients, automate recipient-related tasks in your environment, manage mailboxes, and understand distribution group management within the Exchange Management Shell. Moving on, we'll work through several scenarios where PowerShell scripting can be used to increase your efficiency when managing databases, which are the most critical resources in your Exchange environment. Towards the end, you'll discover how to achieve Exchange High Availability and how to secure your environment, monitor the health of Exchange, and integrate Exchange with Office Online Server, Skype for Business Server, and Exchange Online (Office 365). By the end of the book, you will be able to perform administrative tasks efficiently. Style and approach This practical guide is packed with handy recipes to help you perform common administration tasks, as well as complex tasks in Exchange Server, without any hassle.




Microsoft IIS 10.0 Cookbook


Book Description

Over 60 recipes to install, configure, and manage your IIS 10.0 About This Book Provide a secure, easy-to-manage extensible platform for hosting your websites Leverage IIS 10.0 in order to deploy web site in seconds Integrate Windows and Nano Server 2016 and automate it with PowerShell Recipes to Manage and monitor your IIS 10.0 Who This Book Is For If you are an administrator or web developer with a basic (or no) knowledge of Microsoft IIS and want to set up your own web server, then this is the book for you. What You Will Learn Integrate IIS 10.0 on Windows server 2016 Host multiple websites and Wildcard Host on IIS 10.0 Deploy and administrate IIS 10.0 on Nano Server. IIS administration with Powershell. Manage and troubleshoot IIS 10.0 In Detail This book will start with customizing your IIS 10 to various platforms/OS and tune it according to your business requirements. Moving on, we will focus on the functionalities of core fundamentals and perform practical scenarios in order to maximize the use of a reliable web server. Going further we will be covering topics like IIS 10 architecture, IIS modules,hosting web server platforms, virtual directories along with web site deployment, ports, enhanced security. We will also cover new features of IIS 10 like integration with Windows Server 2016 and Nano Server, HTTP/2, PowerShell 5 cmdlets etc . Towards the end, we will cover troubleshooting & diagnostic techniques of IIS 10. By the end of this book you will be well versed with maximizing the reliability of your webserver and will have immense knowledge in using IIS 10 effectively Style and approach A set of exciting recipes on using Microsoft IIS 10.0 effectively..