A quick and dirty PowerShell function to get the PowerShell version of a remote machine.
For some reason it seems that remotely retrieving this info is WAY harder than it should be. You'd think there would just be a cmdlet for it.
- Copy the function into a PowerShell prompt.
- Run it: e.g.:
Get-PsVersion "computer-name"
- By mseng3. See my other projects here: https://github.com/mmseng/code-compendium.