8RUNNING SCRIPTS REMOTELY

Images

If you’re the sole IT person in a small organization, chances are you have several servers to manage. If you have a script you need to run, you could log in to each server, open up the PowerShell console, and run your script there. But you can save a lot of time if you run one script that performs a particular task on each server. In this chapter, you’ll learn how to run commands remotely using PowerShell remoting.

PowerShell remoting is a feature that allows a user to remotely run commands in a session on one or many computers at once. A session, or more specifically, a PSSession, is a PowerShell remoting term that refers ...

Get PowerShell for Sysadmins 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.