Saturday, July 26, 2014

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

 

3 comments:

  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 ?

    ReplyDelete
  2. Pls refer: http://msexchange.me/2014/02/09/enable-powershell-re-moting-for-sharepoint-2010/
    This is for sharepoint but would be good for enabling remoting.

    ReplyDelete
  3. […] and had been planning observe whether or not psremoting enabled response. according this: http://msexchange.me/2014/07/26/how-to-detect-whether-powershell-remoting-is-enabled/ […]

    ReplyDelete