Windows PowerShell for .NET Developers - Second Edition
eBook - ePub

Windows PowerShell for .NET Developers - Second Edition

  1. 330 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Windows PowerShell for .NET Developers - Second Edition

Book details
Book preview
Table of contents
Citations

About This Book

Efficiently administer and maintain your development environment with Windows PowerShell

About This Book

  • Explore scripting and automation techniques with Windows PowerShell
  • Gain concrete knowledge of Windows PowerShell scripting to perform professional level scripting
  • Discover the benefits of the Configuration Management Platform with this step-by-step guide that includes real-world scripting examples

Who This Book Is For

If you are an IT professional or developer who has worked on the.Net platform and you want to learn automation using Windows PowerShell, then this book is for you. This self-start guide takes you from the basics and gradually moves to an intermediate level to show you how to perform professional scripting.

What You Will Learn

  • Understand the concepts of building PowerShell scripts and the basics of programming
  • Manage the LYNC, Exchange, and SharePoint platforms
  • Create a Pull server using a SMB file share and HTTP and HTTPS
  • Use.NET classes in Windows PowerShell and C# to manage Exchange Online
  • Use PowerShell in C# to manage Exchange Online and work with.NET classes in PowerShell
  • Automate LYNC clients, consuming Client Server Object Models to administrate SharePoint Online

In Detail

Windows PowerShell 5.0 for.NET Developers is your self-start guide to performing automation using Windows PowerShell. This book will help you to understand the PowerShell syntax and grammar and will also teach you techniques to remove the rough edges of manual deployments. Packed with PowerShell scripts and sample C# codes to automate tasks, it also includes real-world scenarios such as administrating office servers to help you save time and perform deployments swiftly and efficiently.

The book begins with the Windows PowerShell basics, explores the significant features of Windows Management Framework 5.0, covers the basic concepts of Desired State Configuration and the importance of idempotent deployments.

By the end of the book, you will have a good understanding of Windows PowerShell's features and will be able to automate your tasks and manage configuration effectively.

Style and approach

This is an easy-to-follow step-by-step guide with text-enabled screenshots. Each topic is explained with codes and examples. It also includes multiple approaches for a number of tasks to let you choose the best one for you depending on your scenario.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Windows PowerShell for .NET Developers - Second Edition by Chendrayan Venkatesan, Sherif Talaat in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Networking. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781785287435
Edition
2

Windows PowerShell for .NET Developers Second Edition


Table of Contents

Windows PowerShell for .NET Developers Second Edition
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Instant updates on new Packt books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Windows PowerShell
Scripting the cmdlet style
Introducing Windows PowerShell
Installing Windows Management Framework 5.0
The Windows PowerShell consoles
The Windows PowerShell console host
Setting up the console host using GUI
Setting up the console host using PowerShell
Exploring the Windows PowerShell ISE host using GUI
Benefits of an ISE
The PowerShell ISE script browser
Using an interactive shell
Windows PowerShell cmdlets
Getting help
Understanding aliases
Understanding expressions
Understanding objects
Understanding pipelines
Exporting a running process to a CSV file
Understanding filtering and formatting
PowerShell formatting
Exploring snippets in the PowerShell ISE
Getting started with PowerShell scripting
Summary
2. Unleashing Development Skills Using Windows PowerShell 5.0
Basics of WMI and CIM
Working with XML and COM
Exploring COM and Automation
Exploring .NET objects
Creating .NET objects
Extending .NET objects for Administrations and Development tasks
Extending the .NET Framework types
Building advanced scripts and modules
Exploring Windows PowerShell 5.0
The basics of Desired State Configuration
The Authoring phase
The Staging phase
The "Make it so" phase
Use case of classes in WMF 5.0
Constructors
Parsing structured objects using PowerShell
Exploring Package Management
Exploring PowerShellGet
Understanding PowerShell modules
Introduction to modules
Script modules
Binary modules
Manifest modules
Dynamic modules
Script debugging
Managing breakpoints
Line breakpoints
Variable breakpoints
Command breakpoints
Debugging scripts
Summary
3. Exploring Desired State Configuration
Prerequisites
Installing the WMF 5.0 April 2015 preview
Imperative versus declarative programming
Getting started with DSC
The Authoring phase
The Staging phase
The "Make it so" phase
Local Configuration Manager
Parameterizing the configuration script
Understanding MOF
Exploring Windows Remote Management and CIM
Windows PowerShell remoting
Exploring WSMan cmdlets
HTTP/HTTPS Listener
Exploring CIM commands
Exploring CIM methods
Querying the remote machines using CIM
Creating configuration scripts
Creating a configuration with MOF
Creating a Class-defined DSC resource
Types of deployment modes
The push mode
The pull mode
Creating a pull server using the SMB share
Creating the pull server using HTTP and HTTPS
Summary
4. PowerShell and Web Technologies
PowerShell Web Access
Installing PowerShell Web Access
Configuring PowerShell Web Access
Applying authorization rules
Management OData IIS Extensions
Creating the Management OData web service
Exploring web requests
Downloading files from the Internet
Reading a file from the Internet
Exploring web services
Using web services
Building web services
Exploring the REST API
Using the Azure REST API in PowerShell
Exploring JSON
Summary
5. Exploring Application Programming Interface
Exploring API using PowerShell
The EWS API for managing Exchange Online
Purging items in the mailbox folder
Deleting items from the mailbox folder
The Lync 2013 client-side API
Installation of LYNC SDK
Exploring client settings
Automating test calls
IM with contacts
Client-side object model –...

Table of contents

  1. Windows PowerShell for .NET Developers Second Edition