Powershell in Depth

Author: Don Jones,Jeffery Hicks,Richard Siddaway

Publisher: Manning Publications

ISBN: 9781617292187

Category: Computers

Page: 744

View: 7502

Summary PowerShell in Depth, Second Edition is the go-to reference for administrators working with Windows PowerShell. Every major technique, technology, and tactic is carefully explained and demonstrated, providing a hands-on guide to almost everything an admin would do in the shell. Written by three experienced authors and PowerShell MVPs, this is the PowerShell book you'll keep next to your monitor—not on your bookshelf! Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Book A Windows admin using PowerShell every day may not have the time to search the net every time he or she hits a snag. Wouldn't it be great to have a team of seasoned PowerShell experts ready to answer even the toughest questions? That's what you get with this book. PowerShell in Depth, Second Edition is the go-to reference for administrators working with Windows PowerShell. Every major technique, technology, and tactic is carefully explained and demonstrated, providing a hands-on guide to almost everything an admin would do in the shell. Written by PowerShell MVPs Don Jones, Jeffrey Hicks, and Richard Siddaway, each valuable technique was developed and thoroughly tested, so you'll be able to consistently write production-quality, maintainable scripts while saving hours of time and effort. This book assumes you know the basics of PowerShell. What's Inside Automating tasks Packaging and deploying scripts Introduction to Desired State Configuration PowerShell security Covers PowerShell version 3 and later About the Authors Don Jones, Jeffery Hicks, and Richard Siddaway are Microsoft MVPs, trainers, and administrators. Collectively, they've authored nearly three dozen books on PowerShell and Windows administration. Table of Contents PART 1 POWERSHELL FUNDAMENTALS Introduction PowerShell hosts Using the PowerShell help system The basics of PowerShell syntax Working with PSSnapins and modules Operators Working with objects The PowerShell pipeline Formatting PART 2 POWERSHELL MANAGEMENT PowerShell Remoting Background jobs and scheduling Working with credentials Regular expressions Working with HTML and XML data PSDrives and PSProviders Variables, arrays, hash tables, and script blocks PowerShell security Advanced PowerShell syntax PART 3 POWERSHELL SCRIPTING AND AUTOMATION PowerShell's scripting language Basic scripts and functions Creating objects for output Scope PowerShell workflows Advanced syntax for scripts and functions Script modules and manifest modules Custom formatting views Custom type extensions Data language and internationalization Writing help Error handling techniques Debugging tools and techniques Functions that work like cmdlets Tips and tricks for creating reports PART 4 ADVANCED POWERSHELL Working with the Component Object Model (COM) Working with .NET Framework objects Accessing databases Proxy functions Building a GUI WMI and CIM Working with the web Desired State Configuration
Release

Learn PowerShell Scripting in a Month of Lunches

Author: Don Jones,Jeffery Hicks

Publisher: Manning Publications

ISBN: 9781617295096

Category: Command languages (Computer science)

Page: 352

View: 9975

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
Release

Pro PowerShell Desired State Configuration

An In-Depth Guide to Windows PowerShell DSC

Author: Ravikanth Chaganti

Publisher: Apress

ISBN: 1484234839

Category: Computers

Page: 577

View: 7475

Use Windows PowerShell Desired State Configuration (DSC) to configure your infrastructure on-premises and in the cloud. In an environment where changes and deployments are happening all the time, DSC makes the necessary adjustments to the system so you don’t have to. Pro PowerShell Desired State Configuration shows you how. PowerShell Desired State Configuration (DSC) is a powerful configuration management platform that makes it easier than ever to perform configuration management of your infrastructure, whether on-premises or in the cloud. With Pro PowerShell Desired State Configuration, Ravikanth Chaganti revises and significantly expands his previous edition, bringing you a complete in-depth reference for applying this evolving technology in your day-to-day work. What’s new in this edition? Get up-to-date, in-depth guidance on DSC in the data center Understand the central role that DSC plays in DevOps today Integrate DSC into build and release management tools Learn to think and act like a developer when automating your configuration management, creating a testable, robust process that you can use again and again Find out why and how DSC has an important role to play in public and private cloud deployments Apply DSC in the cloud with Microsoft Azure or Amazon Web Services or Google Cloud Platform Who This Book Is For IT administrators, developers and DevOps engineers working in Windows-based data center environments. With a little prior PowerShell scripting experience, this book can be used as an in-depth reference to creating, customizing, and extending DSC in Windows. IT administrators with limited scripting experience will also find this book a useful overview of what DSC offers and how to use DSC resources to automate configuration management and deployment.
Release

Microsoft Hyper-V PowerShell Automation

Author: Vinith Menon

Publisher: Packt Publishing Ltd

ISBN: 1784392200

Category: Computers

Page: 124

View: 2034

This book is great for administrators who are new to automating Hyper-V administration tasks using PowerShell. If you are familiar with the PowerShell command line and have some experience with the Windows Server, this book is perfect for you.
Release

Microsoft Windows 7 in Depth

Author: Robert Cowart,Brian Knittel

Publisher: Pearson Education

ISBN: 0789741997

Category: Computers

Page: 1117

View: 5892

Provides a collection of solutions, techniques, and shortcuts to get the most out of Microsoft Windows 7, covering such topics as managing files, printing, gadgets, networking, Windows Media Center, Internet Explorer 8, and Windows Live Mail.
Release

Windows PowerShell 5 und PowerShell Core 6

Das Praxisbuch

Author: Holger Schwichtenberg

Publisher: Carl Hanser Verlag GmbH Co KG

ISBN: 3446456422

Category: Computers

Page: 1231

View: 8850

Das Windows PowerShell-Praxisbuch für Einsteiger und Profis Administratoren bietet diese aktualisierte und erweiterte Neuauflage eine kompakte Darstellung der vielfältigen Einsatzmöglichkeiten der PowerShell sowie ergänzender Commandlet- und Klassenbibliotheken. Sie enthält über 2.000 Code-Beispiele und beschreibt 640 Commandlets für die kommandozeilenbasierte Administration und das Scripting in Windows, Linux und MacOS. Profitieren Sie vom Know-how des .NET- und Scripting-Experten Dr. Holger Schwichtenberg In Teil 1 und 2 des Buches erhalten Sie eine strukturierte Einführung in die Konzepte der PowerShell und lernen dann in Teil 3, wie Sie PowerShell in zahlreichen Anwendungsgebieten praktisch einsetzen. Fortgeschrittene Administratoren erfahren schließlich in Teil 4, wie Sie die PowerShell erweitern können, u. a. durch die Entwicklung eigener Commandlets. - Diese 2. Auflage behandelt Windows PowerShell 5 und PowerShell Core 6, kann aber auch für die Vorgängerversionen verwendet werden; die Unterschiede sind im Buch beschrieben. Zusätzlich aufgenommen wurden die Themen Docker-Verwaltung mit PowerShell, PowerShell mit Windows Nano Server. - Berücksichtigt werden alle Windows-Versionen ab Windows XP bzw. Windows Server 2003 einschließlich der neuesten Versionen Windows 10 und Windows Server 2016 - Codebeispiele, PowerShell-Kurzreferenz, Feedbackmöglichkeiten und Forum finden Sie auf der Website zum Buch.
Release

Linux-Administrations-Handbuch

Author: Evi Nemeth,Garth Snyder,Trent Hein

Publisher: Pearson Deutschland GmbH

ISBN: 9783827328229

Category:

Page: 1272

View: 7738

Release

Windows PowerShell 2 For Dummies

Author: Steve Seguis

Publisher: John Wiley & Sons

ISBN: 0470535784

Category: Computers

Page: 416

View: 9547

Prepare for the future of Microsoft automation with this no-nonsense guide Windows PowerShell 2 is the scripting language that enables automation within the Windows operating system. Packed with powerful new features, this latest version is complex, and Windows PowerShell 2 For Dummies is the perfect guide to help system administrators get up to speed. Written by a Microsoft MVP with direct access to the program managers and developers, this book covers every new feature of Windows PowerShell 2 in a friendly, easy-to-follow format. Windows PowerShell 2 is the updated scripting language that enables system administrators to automate Windows operating systems System administrators with limited scripting experience will find this book helps them learn the fundamentals of Windows PowerShell 2 quickly and easily Translates the jargon and complex syntax of Windows PowerShell 2 Covers script debugging improvements, the ability to invoke commands remotely, and the new user interface Uses real-world applications to clarify the theory, fundamentals, and techniques of the scripting language Written by a Microsoft MVP with direct access to the developers of Windows PowerShell 2 Windows PowerShell 2 For Dummies makes this tool easily accessible to administrators of every experience level.
Release

Learn PowerShell Toolmaking in a Month of Lunches

Author: Don Jones,Jeffery Hicks

Publisher: Manning Publications

ISBN: 9781617291166

Category: Computers

Page: 289

View: 8260

Presents a guide on how to use Windows PowerShell to build administrative tools.
Release

PowerShell 5

Windows-Automation für Einsteiger und Profis

Author: Tobias Weltner

Publisher: O'Reilly

ISBN: 3960100345

Category: Computers

Page: 1158

View: 6248

In diesem Standardwerk zu PowerShell finden Einsteiger und Profis fundiertes Hintergrundwissen kombiniert mit praxisnahen und sofort einsetzbaren Codebeispielen. Der klare Aufbau und das umfassende Themenspektrum des Buchs vermitteln, wie die vielfältigen Funktionen der PowerShell zusammenhängen und aufeinander aufbauen. Einsteiger finden sofort Zugang zur PowerShell. Autodidaktisch erworbene Vorkenntnisse werden komplettiert und vertieft. Profis entdecken unzählige wertvolle Hinweise, Praxistipps und "Best Practices" für professionelles und sicheres Skripten. Aus dem Inhalt: ■ Schnelleinstieg: PowerShell-Grundlagen und rasche Erfolge mit interaktiven Kommandos ■ PowerShell-Skripte, Sicherheitseinstellungen und digitale Signaturen ■ Durchdachter Einsatz der objektorientierten Pipeline ■ Textoperationen, Parsing und Reguläre Ausdrücke ■ Mit Objekten und Typen direkt auf das .NET Framework zugreifen ■ Wiederkehrende Aufgaben als eigene Befehle in Modulen verfügbar machen ■ Mit PowerShellGet Module und Skripte zentral verwalten ■ Prozessübergreifendes Debugging, Fehlerbehandlung und Logging ■ Abgesicherte Fernzugriffe und Sicherheitsstrategien (JEA) ■ Hintergrundjobs, Multithreading und Performancesteigerung ■ Workflows und Desired State Configuration (DSC) ■ Benutzeroberflächen mit WPF gestalten ■ Professionelles Test-Driven Development (TDD) mit Pester
Release

Gruppenrichtlinien in Windows Server und Windows 10

Ein praktischer Leitfaden für die Windows-Verwaltung

Author: Holger Voges,Martin Dausch

Publisher: Carl Hanser Verlag GmbH Co KG

ISBN: 3446456058

Category: Computers

Page: 617

View: 2838

Der kompakte Leitfaden für die praktische Arbeit mit Windows Server-Gruppenrichtlinien Die 4. Auflage dieses Buches ist Grundlagen-, Praxis- und Nachschlagewerk in einem. Berücksichtigt werden sowohl die Gruppenrichtlinien-Einstellungen in Windows Server 2019 und Windows 10 als auch die Windows Server-Versionen 2016, 2012 und 2008 R2. Stark erweitert wurde das Kapitel mit den praktischen Beispielen. Gruppenrichtlinien-Know-how für Einsteiger und Profis - Einsteiger führt das Buch von der Basisverwaltung von Gruppenrichtlinien bis hin zur Entwicklung eigener Vorlagen durch alle wichtigen Themen. - Profis finden in diesem Buch Informationen zur Planung von Gruppenrichtlinien, zur Verwaltung (PowerShell 5.1 und AGMP), zur Erweiterung (per Fremdhersteller-Tools) sowie zur Automatisierung mit PowerShell 5.1 und Desired State Configuration. Eine Fülle von Beispielen aus der administrativen Praxis zeigt Ihnen, wo Sie welche Einstellungen vornehmen können, wie sich diese auswirken und wie Sie in Ihrer täglichen Arbeit dadurch Zeit sparen können. Zahlreiche Tipps und Hinweise helfen Ihnen bei der Fehlersuche und Problembehebung und warnen Sie vor typischen Fallen.
Release

Windows PowerShell Best Practices

Author: Ed Wilson

Publisher: Pearson Education

ISBN: 0735676607

Category: Computers

Page: 800

View: 8459

Expert recommendations, pragmatically applied. Automate system administration using Windows PowerShell best practices—and optimize your operational efficiency. With this practical guide, Windows PowerShell expert and instructor Ed Wilson delivers field-tested tips, real-world examples, and candid advice culled from administrators across a range of business and technical scenarios. If you’re an IT professional with Windows PowerShell experience, this book is ideal. Discover how to: Use Windows PowerShell to automate Active Directory tasks Explore available WMI classes and methods with CIM cmdlets Identify and track scripting opportunities to avoid duplication Use functions to encapsulate business logic and reuse code Design your script’s best input method and output destination Test scripts by checking their syntax and performance Choose the most suitable method for running remote commands Manage software services with Desired State Configuration
Release

PowerShell Troubleshooting Guide

Author: Michael Shepard

Publisher: Packt Publishing Ltd

ISBN: 1782173587

Category: Computers

Page: 206

View: 5004

The techniques in this book apply to beginners who have just started to learn PowerShell, as well as advanced scripters who have a good grasp of the language.
Release

Learning PowerShell

Author: Jonathan Hassell

Publisher: Walter de Gruyter GmbH & Co KG

ISBN: 1501506617

Category: Business & Economics

Page: 215

View: 947

Learning PowerShell is a custom-built, handcrafted, painstakingly curated book designed to get you from total PowerShell newbie to confident PowerShell user in as little as four weeks. This book assumes no prior knowledge, perfect for non-developers and GUI addicts who recognize that PowerShell is the future but need a good bit of handholding to achieve mastery. It is also a simple guide for the hundreds of thousands of PowerShell users who have not attained the level of PowerShell knowledge that they really need. With Learning PowerShell at your side, you will see that you don't have to be a developer to use PowerShell and you don't need to be a scripting wizard to derive value from integrating PowerShell into your daily administrative activities. The book is a learning resource that covers every topic worth discussing for a PowerShell beginner, with a depth of explanation unparalleled by any book currently on the market. With this book, you don't have to have a lot of time to learn the language and you can begin applying what you master almost immediately. Even skeptics of PowerShell, and command lines in general, will come away with a renewed sense of respect for the language and ideas on how to put it to use.
Release

Essential PowerShell

Author: Holger Schwichtenberg

Publisher: Pearson Education

ISBN: 9780132715195

Category: Computers

Page: 504

View: 4967

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
Release

Active Directory with PowerShell

Author: Uma Yellapragada

Publisher: Packt Publishing Ltd

ISBN: 1782176004

Category: Computers

Page: 230

View: 9464

If you are looking to automate repetitive tasks in Active Directory management using the PowerShell module, then this book is for you. Any experience in PowerShell would be an added advantage.
Release

Learn Active Directory Management in a Month of Lunches

Author: Richard Siddaway

Publisher: Manning Publications

ISBN: 9781617291197

Category: Computers

Page: 376

View: 3471

Summary Learn Active Directory Management in a Month of Lunches is a practical, hands-on tutorial designed for IT pros new to Active Directory. It skips the theory and concentrates on the day-to-day administration tasks you need to know to keep your network running smoothly. Just set aside an hour a day for a month—lunchtime would be perfect—and you'll be comfortable and productive with Active Directory before you know it. About the Book At the heart of your Windows network is Active Directory, the control center for administration, security, and other core management functions. If you're new to Active Directory administration—or if you find yourself unexpectedly thrust into that role—you'll need to get up to speed fast. Learn Active Directory Management in a Month of Lunches is a hands-on tutorial designed for IT pros new to Active Directory. Without assuming previous administration experience, the book starts by walking you through the most important day-to-day system management tasks. You'll learn how to administer AD both from the GUI tools built into Windows and by using PowerShell at the command line. Along the way, you'll touch on best practices for managing user access, setting group policies, automating backups, and more. This book assumes no prior experience with Active Directory or Windows administration. Examples are based in Windows Server 2012 Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. What's Inside ADM tasks you'll need every day GUI and command line techniques Content tested by new administrators Well-illustrated, clearly explained examples About the Author Richard Siddaway is an experienced all-around Windows administrator with two decades of experience. He's the author of PowerShell in Practice andPowerShell and WMI, and coauthor of PowerShell in Depth. Table of Contents PART 1 MANAGING ACTIVE DIRECTORY DATA Before you begin Creating user accounts Managing user accounts Managing groups Troubleshooting users and groups Managing computer accounts Managing organizational units PART 2 MANAGING GROUP POLICY Creating Group Policies Managing Group Policies Fine-grained password policies PART 3 MANAGING THE ACTIVE DIRECTORY SERVICE Creating domain controllers Managing domain controllers Protecting AD data Security: Default groups and delegation Managing DNS Managing sites and subnets AD replication Managing AD trusts PART 4 MAINTENANCE AND TROUBLESHOOTING Troubleshooting your AD Maintaining and monitoring Active Directory Future work and final exam Into the cloud
Release

Windows PowerShell 2.0 Best Practices

Author: Ed Wilson,Windows PowerShell Teams at Microsoft

Publisher: Pearson Education

ISBN: 0735646104

Category: Computers

Page: 752

View: 658

Apply best practices for automating system administration with Windows PowerShell 2.0 and optimize your operational efficiency and results. This guide captures the field-tested tips, real-world lessons, and candid advice of practitioners across the range of business and technical scenarios and across the scripting life cycle. Discover how to: Take advantage of new features and cmdlets in Windows PowerShell 2.0 Plan scripting usage scenarios and define standards Deploy Windows PowerShell 2.0 to desktops and servers Configure scripting environments Optimize remote scripting capabilities Work with Active Directory and WMI Design functions and modules Optimize input and output Handle errors Document scripts Test and troubleshoot scripts Avoid scripting pitfalls The companion CD includes a fully searchable eBook and sample scripts. For customers who purchase an ebook version of this title, instructions for downloading the CD files can be found in the ebook.
Release

CMD Your Computer: An In-Depth Guide to Command Prompt, Batch Programming and Powershell

Author: Cask J. Thomson

Publisher: Independently Published

ISBN: 9781719982535

Category: Computers

Page: 466

View: 5757

A complete history of command-line interfaces and the effect that commands have had on the modern computer as we know it with every Microsoft Command Prompt, PowerShell and Run command ever listed - with a large overview of purposes, example uses and tutorials on programming simple and advanced batch files. It doesn
Release