Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learn PowerShell Core 6.0
Learn PowerShell Core 6.0

Learn PowerShell Core 6.0: Automate and control administrative tasks using DevOps principles

Arrow left icon
Profile Icon das Neves Profile Icon Jan-Hendrik Peters
Arrow right icon
$9.99 $39.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
eBook Jul 2018 552 pages 1st Edition
eBook
$9.99 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon das Neves Profile Icon Jan-Hendrik Peters
Arrow right icon
$9.99 $39.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
eBook Jul 2018 552 pages 1st Edition
eBook
$9.99 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Learn PowerShell Core 6.0

PowerShell ISE Versus VSCode

In the last chapter, you learned about different PowerShell versions and how to use them. But one of the most important things for creating fast, reusable, high quality code work with good tools. As you know from the previous chapter, one of the most popular tools is the integrated PowerShell ISE in Windows. It provides an easy UI and also some debugging possibilities. Unfortunately, it has not received many updates since it was initially released. This is why other tools were raised in the meantime. One of the most important ones is Visual Studio Code. This chapter will show the differences between the two tools and introduce VSCode. In Chapter 11, VSCode and PowerShell Release Pipelines, this is going to be continued and some advanced techniques with VSCode will be described.

These are the topics we'll be covering in this chapter...

Introduction to currently available tools

There are many tools available to write PowerShell code or even to create PowerShell-based GUIs. Many administrators just stick to the PowerShell Integrated Scripting Environment (ISE), but there are also a lot of other different tools available. Therefore, I want to give an overview with a small description of each tool and also make a recommendation. 

The following list is not an exhaustive list of tools but includes tools the authors have personal experience with. When choosing the proper tool for scripting, we can only recommend testing the tool in your day-to-day work properly before. Free and open source tools might, for example, be superior to paid tools or might be a better fit for your scripting style:

PowerShell Console

Free

The PowerShell Console is the most basic tool for executing PowerShell commands. Just open...

PowerShell ISE

The PowerShell ISE was introduced with PowerShell v3. Unfortunately, it has not evolved too much from past versions, which is why it is losing its importance and is now finally going to be replaced by Visual Studio Code. Though replacing might be the wrong verb in this context—the PowerShell ISE will continue to stick to the Windows PowerShell version on Windows systems. VSCode, in comparison, is free and easily downloadable on every device. The problem is that the PowerShell ISE is still being used by the largest number of people—even today. This is why I am still explaining it very briefly, but then will move on to VSCode and prioritize VSCode in the whole book. You will recognize by yourself that VSCode is the more powerful and flexible tool; it is also continuously getting new features.  

PowerShell ISE can be executed through PowerShell_ISE...

Visual Studio Code

As you have seen, the PowerShell ISE is quite a good tool, but still missing some features. Nevertheless, it comes with any Windows environment and is a helpful tool for creating valuable scripts and debugging them, if necessary. In comparison, we will now take an initial look at VSCode and how to set it up for the creation of PowerShell code. An explanation of and the usage of advanced techniques of VSCode will be covered throughout the rest of the book.

Introduction

Visual Studio Code (VSCode) is a lightweight open-source editor, which is free for private and commercial use. Technically, VSCode is built on the framework Electron. Electron is known as a toolset to deploy Node.js applications that are running...

ISE versus VSCode

As you have seen, the PowerShell ISE and VSCode are completely different tools with similar possibilities. The big benefits of VSCode over the PowerShell ISE are definitely the platform independence, the Git integration, and the customization possibilities. In fact, you can configure almost everything in VSCode and leverage the tool for your own or your company's needs. From the first chapter, you also know that Windows PowerShell will not continue to receive any major updates and so neither will the PowerShell ISE. From a long-term perspective, you should make the transition from the PowerShell ISE to VSCode or directly start with VSCode from scratch. VSCode is continuously evolving and gaining new features that also address DevOps and automation approaches. 

Summary

In this chapter, you received a very brief overview of the tools available for creating good PowerShell code. We took a dedicated look at the PowerShell ISE and VSCode and explained some of the basics of both of them. Most simple tasks can be achieved with both tools, but you have also learned about the advantages of VSCode. With this knowledge, you should be able to get your hands on the tools and set them up. As a long-term recommendation, VSCode should become your primary tool and therefore you should learn most of its capabilities to benefit from it. The additional resources, which are consolidated under Further reading, will help you to accomplish this task. In the next two chapters, we will cover the basics for coding with PowerShell. I would recommend that you continue to use VSCode for the examples and get used to working with it.

...

Questions

  1. What are very well known tools for primarily creating good PowerShell GUIs?
  2. Which tool is better - PowerShell ISE versus VSCode, and why?
  3. How do you get the PowerShell ISE?
  4. How do you get VSCode?
  5. What are the first steps after installing VSCode?
  6. What is IntelliSense?
  7. What is Git and why does it make sense to install it with VSCode?
  8. How can you execute code with the PowerShell ISE and VSCode?
  9. How can you debug with the PowerShell ISE and VSCode?

Further reading

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • • 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

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.

Who is this book 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.

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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 26, 2018
Length: 552 pages
Edition : 1st
Language : English
ISBN-13 : 9781788835473
Vendor :
Microsoft
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 26, 2018
Length: 552 pages
Edition : 1st
Language : English
ISBN-13 : 9781788835473
Vendor :
Microsoft
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 146.97
Learn PowerShell Core 6.0
$48.99
PowerShell Core for Linux Administrators Cookbook
$48.99
Mastering Windows PowerShell Scripting (Second Edition)
$48.99
Total $ 146.97 Stars icon
Banner background image

Table of Contents

20 Chapters
Current PowerShell Versions Chevron down icon Chevron up icon
PowerShell ISE Versus VSCode Chevron down icon Chevron up icon
Basic Coding Techniques Chevron down icon Chevron up icon
Advanced Coding Techniques Chevron down icon Chevron up icon
Writing Reusable Code Chevron down icon Chevron up icon
Working with Data Chevron down icon Chevron up icon
Understanding PowerShell Security Chevron down icon Chevron up icon
Just Enough Administration Chevron down icon Chevron up icon
DevOps with PowerShell Chevron down icon Chevron up icon
Creating Your Own PowerShell Repository Chevron down icon Chevron up icon
VSCode and PowerShell Release Pipelines Chevron down icon Chevron up icon
PowerShell Desired State Configuration Chevron down icon Chevron up icon
Working with Windows Chevron down icon Chevron up icon
Working with Azure Chevron down icon Chevron up icon
Connecting to Microsoft Online Services Chevron down icon Chevron up icon
Working with SCCM and SQL Server Chevron down icon Chevron up icon
PowerShell Deep Dives Chevron down icon Chevron up icon
PowerShell ISE Hotkeys Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(2 Ratings)
5 star 50%
4 star 0%
3 star 50%
2 star 0%
1 star 0%
Alex Aug 27, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent book to learn the "new' PowerShell. Strongly recommended to any IT professional that likes to automate and learn from people from the field with practical examples.
Amazon Verified review Amazon
livernyc Jul 15, 2020
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
I have been using PowerShell for awhile and would consider myself to have at least an intermediate skill set with classic windows based PowerShell. I was enjoying the book up to Chapter 4 and I could just not get over how poorly the topics and techniques were covered in this chapter. The title of the book is "Learn" PowerShell Core 6.0. This chapter was all over the place and not very easy to follow. I'm going to continue reading but if there are more chapters like chapter 4 in the rest of the book I would say you can pass on this one.(Update) I made it through all 500 pages so I figured I would come back and say a few Things. The journey you go on with this book is worth the ride. It is kinda all over the place but for a mid-tear primary Windows PowerShell user it was good to get some exposure to the topics. If you can make it though the whole book it might help you decide where you want to go next. What topic did you get really exited about. Maybe that can be your next book or class to continue your PowerShell journey. I gave another star and bumped it up to three. I still say this book is a good fit for current PowerShell users, not people that want to learn PowerShell.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.