Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know if powershell is installed on remote workstation?

How to know if powershell is installed on remote workstation; we need to do the inventory of all the powershell enabled workstations so that we can plan a change for deploying; is there a way to remotely know if powershell is installed and what version?

like image 887
Darktux Avatar asked Jan 25 '13 16:01

Darktux


People also ask

How can I tell what version of PowerShell is installed on a remote computer?

The $PSVersionTable command, when run remotely, will accurately report the version of PowerShell running on the remote computer. Using $PSVersionTable remotely works wonderfully!

How do I know if PowerShell is installed?

You can verify that Windows PowerShell version installed by completing the following check: Click Start, click All Programs, click Accessories, click Windows PowerShell, and then click Windows PowerShell.

How do I find where PowerShell is installed?

Powershell can be found by right clicking on the start button & it should show it the list, from there you can right click on it & choose properties to find where it is stored on your system. Or click on the search icon in the taskbar & enter powershell which will also find the program.

How do I know if PowerShell is installed Windows 10?

How to check the version of PowerShell. To find which version of PowerShell you have installed, start a PowerShell console (or the ISE) and type $PSVersionTable and press ENTER . Look for the PSVersion value.


1 Answers

check if file exist ?

$path= "\\remote\C$\windows\System32\WindowsPowerShell\v1.0\powershell.exe"
if(test-path $path){(ls $path).VersionInfo}
like image 115
Loïc MICHEL Avatar answered Oct 20 '22 03:10

Loïc MICHEL