Administer Windows Remote Server in PowerShell with PSSession


In this tutorial, we will see how to remotely administer a Windows server in PowerShell (Powershell remoting) with PSSession.

PSSession is the prefix of several Powershell commands that allow connection and management of it.

All the commands in this tutorial are to be done with a PowerShell command prompt


On the server where you want to connect, remote management must be enabled.

Remote administration

Connect to a server

With the current user:

By specifying the user:

Once logged into the console, the name of the server in square brackets appears first.

Now all the DOS and PowerShell commands will be executed on the remote server.

Example: View installed roles and features.


To disconnect from the server, enter the following command:

Lists of commands * -PSSession

From a command prompt enter:

Show help:



Check the WinRM service

Enable remote management in PowerShell

View WinRM configuration

Allow administration from any remote host

This command is useful for non-domain hosts because even if Remote Management is enabled, no hosts are allowed to connect.

Related Posts

Create an Active Directory environment in PowerShell

Table Of ContentsIntroductionPrerequisitesInstalling the AD DS roleCreating the Active Directory domaincomplements Introduction In this tutorial, we will see how to create an Active Directory environm

Install and use the Admin Center on Windows 10

Presentation In this tutorial, we will see how to install the Admin Center on a computer running Windows 10. The Admin Center is the new name of the Honolulu Project that allows the administration of

Active Directory: Joining a Computer to a Domain at the Command Line

Introduction The Active Directory domain join of a computer can be done using either the GUI or using command line and PowerShell. In this tutorial, I will explain how to join a computer to a domain u