Note to myself - Powershell Path and version script

Published in Technology
December 06, 2017
1 min read
Note to myself - Powershell Path and version script

JUST PUTTING IT OUT HERE, ALWAYS SKIPS MY MIND HOW TO FIND POWERSHELL VERSION. SPECIALLY BEFORE RUNNING SITECORE POWERSHELL SCRIPTS.

Script to find powershell version

$PSVersionTable.PSVersion

Windows powershell
Windows powershell

Good command to check if path contains for powershell

$Env:Path.split(";")| ? {$_ -like "*mongo*"}

powershell if Path contains
powershell if Path contains