How to check Powershell version

_bhishek
Tera Guru

Hi All,

 

As i have received communication ,From Orlando release minimum powershell version required is greater than 2.0 .Could you please  tell me how could i check the powershell version which we are using for our mid servers .Also how could it impact if we are not using powershell.Do we need to install ,if we are not using it .

Please help .

Thanks .

9 REPLIES 9

Sebastian R_
Kilo Sage

Open a powershell command line and use the following snippet.

$PSVersionTable.PSVersion

If you don´t use powershell and none of your ServiceNow Integrations (e.g. Discovery) uses Powershell you should be safe.

Hi Sebastian,

Thanks for your response .

I have gave suggested command in mid server (Command prompt>>Rus as admin>Start Powershell>>$PSVersionTable.PSVersion).

I am getting below information.

Major   Minor   Build   Revision
----- ----- ----- --------
4         0          -1       -1

 

How could i confirm ,I am using powershell for mid servers or not .What is the use of the powershells in Discovery .

Thanks.

 

 

adilrathore
ServiceNow Employee
ServiceNow Employee

You need to check if the  mid.use_powershell MID Server parameter to set to true.

 

Here is the documentation which explains how the MID Servers are set up for Powershell use:

https://docs.servicenow.com/bundle/newyork-it-operations-management/page/product/discovery/task/t_Se...

Hi,

Your MID is running PowerShell 4.0 engine version, so you're good here. ServiceNow Discovery uses PowerShell to discover Windows computers.

Regards