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?
The $PSVersionTable command, when run remotely, will accurately report the version of PowerShell running on the remote computer. Using $PSVersionTable remotely works wonderfully!
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.
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 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.
check if file exist ?
$path= "\\remote\C$\windows\System32\WindowsPowerShell\v1.0\powershell.exe"
if(test-path $path){(ls $path).VersionInfo}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With