© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
I. WatersPowerShell for Beginnershttps://doi.org/10.1007/978-1-4842-7064-6_16

16. Networking

Ian Waters1  
(1)
Bexhill, UK
 

Even in PowerShell scripts, we have some pretty awesome network functionality especially since we can leverage the .Net framework and all of its helper objects. We can write scripts to open ports, connect to them, and send and receive messages. Writing a multiplayer game in PowerShell would certainly prove your knowledge and make all of your colleagues jealous of your ninja skills. In this chapter, we are going to start by writing a very simple server script that will open a port and listen for new connections and pick up new messages it ...

Get PowerShell for Beginners: Learn PowerShell 7 Through Hands-On Mini Games now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.