Benutzer-Werkzeuge

Webseiten-Werkzeuge


powershell:powershellversion

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
powershell:powershellversion [2016/02/18 17:43] – angelegt ronnypowershell:powershellversion [2016/04/02 00:49] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
 ====== Powershell-Version ermitteln ====== ====== Powershell-Version ermitteln ======
  
 +>>How can I determine what version of PowerShell is installed on a computer, and indeed if it is installed at all?
 +>>
 >Use $PSVersionTable.PSVersion to determine the engine version. If the variable does not exist, it is safe to assume the engine is version 1.0. >Use $PSVersionTable.PSVersion to determine the engine version. If the variable does not exist, it is safe to assume the engine is version 1.0.
 +>
 >Note that $Host.Version and (Get-Host).Version are not reliable - they reflect the version of the host only, not the engine. PowerGUI, >PowerShellPLUS, etc. are all hosting applications, and they will set the host's version to reflect their product version, which is entirely correct. >Note that $Host.Version and (Get-Host).Version are not reliable - they reflect the version of the host only, not the engine. PowerGUI, >PowerShellPLUS, etc. are all hosting applications, and they will set the host's version to reflect their product version, which is entirely correct.
 +>
 ><code> ><code>
 PS C:\> $PSVersionTable.PSVersion PS C:\> $PSVersionTable.PSVersion
Zeile 12: Zeile 14:
 4      0      -1     -1 4      0      -1     -1
 </code> </code>
 +
 +Quelle: [[http://stackoverflow.com/questions/1825585/determine-installed-powershell-version]]
 +
 +{{tag>[Powershell Version]}}
powershell/powershellversion.txt · Zuletzt geändert: 2016/04/02 00:49 von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki