How to detect whether powershell remoting is enabled

Hi Readers,

Today I am sharing a TIP that can be used to detect if Powershell remoting is enabled on machine or not.

Just log on to the machine for which you want to Test this & enter below commands

Enter-PSSession -ComputerName localhost

If machine is not enabled for powershell remoting below is the output:

ps1

 

If machine is enabled for powershell remoting below is the output:

ps2

 

Regards

Sukhija Vikas

http://msexchange.me

 

Advertisements

3 thoughts on “How to detect whether powershell remoting is enabled

  1. Hi,
    This may be a very simple question. but being a beginner, I would like to have and idea.
    In my enviroment, I am running a powershell script which pulls the report from the servers which are all in the same subnet but server which are all in a different subnet are not reporting. I checked PSRemoting is not enabled on both the subnet servers. can you pls guide. do i need to enable psremoting on both the subnet servers ?

  2. Pingback: Enter-PsSession returns unexpected error - HTML CODE

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s