forked from jdhitsolutions/PSScriptTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGet-PowerShellEngine.yml
More file actions
92 lines (67 loc) · 2.2 KB
/
Copy pathGet-PowerShellEngine.yml
File metadata and controls
92 lines (67 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
examples:
- name: EXAMPLE 1
preCode: ''
code: PS C:\> Get-PowerShellEngine
postCode: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
- name: EXAMPLE 2
preCode: ''
code: >-
PS C:\> Get-PowerShellEngine -detail
Path : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
FileVersion : 10.0.15063.0 (WinBuild.160101.0800)
PSVersion : 5.1.15063.502
ProductVersion : 10.0.15063.0
Edition : Desktop
Host : Visual Studio Code Host
Culture : en-US
Platform :
postCode: Result from running in the Visual Studio Code integrated PowerShell terminal
- name: EXAMPLE 3
preCode: ''
code: >-
PS C:\> Get-PowerShellEngine -detail
Path : C:\Program Files\PowerShell\6\pwsh.exe
FileVersion : 6.1.0
PSVersion : 6.1.0
ProductVersion : 6.1.0
Edition : Core
Host : ConsoleHost
Culture : en-US
Platform : Win32NT
postCode: Result from running in a PowerShell 6 session on Windows 10
inputs: []
links:
- href: https://github.com/jdhitsolutions/PSScriptTools/blob/master/docs/Get-PowerShellEngine.md
text: 'Online Version:'
- href: ''
text: $PSVersionTable
- href: ''
text: $Host
- href: ''
text: Get-Process
module:
name: PSScriptTools
name: Get-PowerShellEngine
notes: 'Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/'
optionalParameters:
- name: Detail
aliases: []
defaultValue: False
description: Include additional information. Not all properties may have values depending on operating system and PowerShell version.
parameterValueGroup: []
pipelineInput: False
position: Named
type: SwitchParameter
outputs:
- type: '[string]'
description: ''
- type: '[PSCustomObject]'
description: ''
requiredParameters: []
remarks: >-
Use this command to find the path to the PowerShell executable, or engine that is running your current session. The path for PowerShell 6 is different than previous versions.
The default is to provide the path only. But you can also get detailed information
summary: Get the path to the current PowerShell engine.
syntaxes:
- parameters:
- Detail