PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 9 – Session configurations and creating custom configurations

• 5 min read

In part2 of this series on PowerShell remoting we quickly looked at various cmdlets that form part of overall remoting infrastructure. The list there included cmdlets related to PS Session configuration. Now that we have gone through the basics of remoting, it is time for us to dig in to these additional cmdlets and explore what they really do.

So, in this part, we will look at all the PS session configurtion cmdlets, discuss how to create custom PS Session configurations and the need for it. Let us dive in to this now.

Read more
PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 8 – remoting scenarios and troubleshooting

• 3 min read
Read more
PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 7 – saving remote session to disk

• 2 min read

In part 6 of the remoting series we looked at how we can use Import-PSSession cmdlet to execute remote commands as if they were local. This is nice but this will last only while the session ($s in the example) is alive. The moment we kill the session — using Rem0ve-PSSession, remoting session will also get killed. In this part of the series, we will look at how we can save a remoting session to disk so that we don’t even have to explicitly create a session.

Read more
PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 6 – implicit remoting sessions

• 5 min read
Read more
PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 5 – interactive remoting sessions

• 4 min read

In this part of the remoting series, I will talk about using Enter-PSSession and Exit-PSSession cmdlets to perform interactive remoting.

Why do you need interactive remoting?

To understand the advantages of interactive remoting in PowerShell 2.0, let us first look at some gotchas with Invoke-Command. Take an example of a remote system where SharePoint 2010 is installed. SharePoint 2010 provides native PowerShell cmdlets and these cmdlets can be accesses only if you load Microsoft.SharePoint.PowerShell PS snap-in. So, to do this using Invoke-Command

Read more
PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 4 – Execute commands or scripts on a remote computer using Invoke-Command

• 5 min read

In this part of PowerShell remoting series, I will discuss how to run commands or scripts on remote computer(s). Within remoting, there are couple of ways to run commands or scripts on a remote machine. This includes Invoke-Command cmdlet and interactive remoting sessions. These two methods deserve a separate post for each and hence I will discuss the Invoke-Command method in today’s post.

Once you have enabled remoting on all your computers, you can use Invoke-Command cmdlet to run commands and scripts on local computer or on remote computer(s). There are many possible variations of this cmdlet. I will cover most of them here.

Read more
PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 3 – Enable remoting

• 3 min read

In this part of the series of articles on PowerShell 2.0 remoting, we will look at how to enable remoting in different scenarios. This post assumes that you are running a supported operating system and you have installed all necesary pre-requisite software.

So, how do you enable remoting?

Remoting in PowerShell 2.0 can be enabled by just running the following cmdlet

Enable-PSRemoting

Note: You have to run this at a elevated PowerShell prompt. Also, all your active networks should be set to “Home” or “Work” network location. Setting firewall exceptions for remoting will fail if the network location is set to “Public”.

Read more
PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 2 – Overview of remoting cmdlets

• 6 min read

In part 1 of this series I gave a quick introduction to PowerShell 2.0 remoting. Before we look at how to enable or configure a computer for remoting, let us take a quick look at PowerShell 2.0 remoting cmdlets. Here is a complete list of cmdlets with a brief overview.

This list will also include cmdlets that are not directly used within remoting but help configure various aspects of remoting. The knowledge of these cmdlets such as WSMan, etc in this list is not mandatory for basic usage of PowerShell remoting. In this post, I will only discuss what each of these cmdlets are capable of and list any gotchas. A detailed usage of these cmdlets will be discussed later in the series.

Read more
PowerShell Remoting 📚 PowerShell Remoting

PowerShell 2.0 remoting guide: Part 1 – The basics

• 4 min read

I am starting a series of articles on remoting feature of PowerShell 2.0. This is one of the best features of PowerShell 2.0 and my favorite feature for sure. The number of very cool things one can achieve using this feature is just un-imaginable. I have started digging deep in to this feature as I start writing a network file browser powerpack as a part of hands-on. I hope it is worth sharing what I learn by writing about it here. So, this is the first in that series of posts. In this post, we will look at absolute basics to start using PowerShell remoting.

Read more