Muutke küpsiste eelistusi

E-raamat: PowerShell for Beginners: Learn PowerShell 7 Through Hands-On Mini Games

  • Formaat: EPUB+DRM
  • Ilmumisaeg: 11-Jun-2021
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484270646
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 61,74 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: EPUB+DRM
  • Ilmumisaeg: 11-Jun-2021
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484270646
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Learn the basic tools and commands to write scripts in PowerShell 7. This hands-on guide is designed to get you up and running on PowerShell quickly - introducing interactive menus, reading and writing files, and creating code that talks over the network to other scripts, with mini games to facilitate learning. 





PowerShell for Beginners starts with an introduction to PowerShell and its components. It further discusses the various tools and commands required for writing scripts in PowerShell 7, with learning reinforced by writing mini games. You will learn how to use variables and conditional statements for writing scripts followed by loops and arrays. You will then work with functions and classes in PowerShell. Moving forward, you will go through the PowerShell Console, customizing the title and text colors. Along the way you will see how to read a key press and make sound in PowerShell. The final sections cover game engine layout, how to build a title screen, and implementing the game design using code flow, title screens, levels, and much more.





After reading the book you will be able to begin working with PowerShell 7 scripts and understand how to use its tools and commands effectively.

What You Will Learn









Use Microsoft Visual Studio Code to develop scripts

Understand variables, loops and conditional statements in PowerShell Work with scripts to develop a game

Discover and use ASCII art generators Comprehend game objects and code Create client-server scripts that communicate over a network





Read and write to files





Capture input from the keyboard





Make PowerShell speak words to help the visually impaired





Create text-based adventure games























Who This Book Is For Software developers who want to start working with PowerShell scripts.
About the Author xi
About the Technical Reviewer xiii
Introduction xv
Chapter 1 Introduction
1(6)
Terminology
1(1)
Variables
2(1)
Cmdlets
2(1)
Scripts
2(1)
Functions
3(1)
Classes
3(1)
Modules
3(1)
Objects
3(1)
Pipeline
4(1)
.Net Framework
4(1)
History
4(1)
The Future
5(1)
Required Tools
5(1)
Let's Get Started!
6(1)
Chapter 2 Beginners' Guide to PowerShell and Visual Studio Code
7(26)
PowerShell 7
7(1)
Install PowerShell 7
7(4)
Get Help Running Cmdlets
11(3)
How to Run Scripts
14(2)
Visual Studio Code
16(1)
Install Visual Studio Code
16(2)
Open a New Project Folder
18(2)
Creating a New Script File
20(1)
PowerShell Visual Studio Code Extension
21(1)
Saving Scripts
22(1)
Running Scripts
22(9)
Adding Comments to Your Code
31(1)
Conclusion
32(1)
Chapter 3 Variables
33(8)
What Are Variables?
35(1)
Variable Types
35(1)
Defining Variables
36(1)
Updating Variables
37(1)
Accessing Variables
38(1)
Variable Scope
39(1)
Global Variables
39(1)
Conclusion
40(1)
Chapter 4 Conditional Statements
41(16)
If Statements
46(5)
Comparison Operators
51(2)
Switch Statement
53(2)
Conclusion
55(2)
Chapter 5 Loops
57(8)
For Loops
58(2)
While Loops
60(1)
Do While Loops
61(1)
Foreach Loops
62(1)
ForEach-Object Loops
63(1)
Conclusion
64(1)
Chapter 6 Arrays
65(10)
Initializing an Array
67(2)
Array Properties and Methods
69(1)
Accessing Values in an Array
70(2)
Removing Values from an Array
72(2)
Conclusion
74(1)
Chapter 7 Functions
75(8)
Creating a Function
75(2)
Passing Parameters
77(1)
Returning Objects
78(3)
Conclusion
81(2)
Chapter 8 Classes
83(10)
Creating Your First Class
84(1)
Properties
85(1)
Constructors
86(1)
Methods
86(2)
Passing Parameters
88(2)
Returning Objects
90(1)
Conclusion
91(2)
Chapter 9 Customizing the Console
93(4)
Customizing the Title and Text Colors
93(2)
Resizing the Console
95(1)
Conclusion
96(1)
Chapter 10 User Input
97(4)
Reading a Key Press
97(2)
Read a Line of Text
99(1)
Conclusion
100(1)
Chapter 11 Dragon Slayer
101(20)
Code Design
101(2)
Defining the Functions
103(3)
Creating the Title Screen
106(2)
Script Variables
108(1)
Let's Put It All Together
108(11)
Conclusion
119(2)
Chapter 12 Getting Colorful
121(6)
Changing Font color
121(1)
Changing Background Color
122(2)
Changing the Default Console Colors
124(2)
Conclusion
126(1)
Chapter 13 ASCII Table
127(6)
Displaying Shapes and Symbols
127(2)
Output an ASCII Table in HTML
129(2)
Building a Menu Box
131(1)
Conclusion
132(1)
Chapter 14 Cursor Control
133(10)
Moving the Cursor
133(3)
Moving a Character Around the Screen
136(1)
Keeping Within the Boundaries
136(1)
Reducing the Flicker
137(1)
Bring It All Together
138(3)
Conclusion
141(2)
Chapter 15 Background Processing
143(8)
Starting a Job
143(2)
Managing a Specific Job and Passing Multiple Parameters
145(1)
Receiving the Results of a Job
146(2)
Stopping Jobs
148(1)
Removing Jobs
149(1)
Conclusion
150(1)
Chapter 16 Networking
151(8)
Basic Networking Introduction
151(1)
Creating a Basic Server App
152(1)
Creating the Listener
152(1)
Reading New Messages
153(1)
Creating a Basic Client App
154(1)
Creating the TCP Client
154(1)
Sending Messages
155(1)
Putting It All Together
155(2)
Conclusion
157(2)
Chapter 17 Working with Files
159(8)
Checking If a File Exists
159(2)
Reading Files
161(1)
Writing to Files
162(1)
Add-Content
163(2)
Set-Content
165(1)
Conclusion
165(2)
Chapter 18 Sound
167(4)
Beep, Beep
167(1)
Playing wav Files
168(1)
Making PowerShell Speak
168(2)
Conclusion
170(1)
Chapter 19 Game Engine
171(16)
Game Engine Layout
171(1)
The Setup Phase
172(1)
The Title Screen
172(1)
The Game Loop
172(1)
The Game Over Screen
173(1)
The Setup Phase
173(1)
Set Up the Display to the Required Size
173(1)
Load a Game Configuration File
174(3)
Load a Title Screen from a Text File
177(2)
Load Each Object and Character from Text Files
179(3)
Solving the Screen Flicker Problem
182(1)
The Game Loop
183(3)
Conclusion
186(1)
Chapter 20 Creating Game Artwork
187(6)
Building a Title Screen
187(1)
ASCII Art Generators
188(1)
ASCII Text
189(1)
ASCII Images
190(2)
Conclusion
192(1)
Chapter 21 PowerBomber
193(34)
Game Design
193(1)
Code Flow
193(3)
Setup
196(2)
Title Screen
198(1)
Levels
199(4)
Game Objects
203(7)
Code
210(17)
Conclusion 227(2)
Index 229
Ian Waters works for Southern IT Networks Ltd as the technical director. He works with Managed Service Providers (MSPs) striving to provide the best possible IT support services to businesses in the south east of England. Ian has an overall experience of 15 years in IT where he has been working on Windows Server, Exchange, Active Directory, Microsoft 365, PowerShell, and many more. He is a frequent blogger and posts articles related to Microsofts new technologies on Slash Admin.