From the course: PowerShell 7 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Practical PowerShell remoting

Practical PowerShell remoting - PowerShell Tutorial

From the course: PowerShell 7 Essential Training

Start my 1-month free trial

Practical PowerShell remoting

- [Instructor] Now, the great thing about PowerShell is that it allows us to combine all of the different types of commandlets and scripts and operators together to create a PowerShell script. Now, what we're going to do is look at how we would put all these things together to create something that might be quite useful. So first off, let's go into visual studio code and I'm going to create a new file. And I'm going to call this one, remote.ps1. Now of course, we looked at remote PowerShell a while back, but obviously what we haven't really done is looked at how we can use that effectively, rather than just running simple queries against it. So what I'm going to do is from the exercise file, I'm just going to copy and paste the contents of the remote file here and then, we'll actually walk through what's going to happen. Now, the first thing you can see is I've set the location to a specific folder because that's where I want…

Contents