-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprofile.types.ps1xml
More file actions
42 lines (41 loc) · 1.57 KB
/
profile.types.ps1xml
File metadata and controls
42 lines (41 loc) · 1.57 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
<Types>
<Type>
<Name>UtilityProfile.InstalledSoftware</Name>
<Members>
<AliasProperty>
<Name>Version</Name>
<ReferencedMemberName>DisplayVersion</ReferencedMemberName>
</AliasProperty>
</Members>
</Type>
<Type>
<Name>System.Management.Automation.PSMethod</Name>
<Members>
<ScriptProperty>
<Name>ReflectionInfo</Name>
<GetScriptBlock>
$adapterData = $this.GetType().GetField('adapterData', 60).GetValue($this)
$methodInformationStructures = $adapterData.
GetType().
GetField('methodInformationStructures', 60).
GetValue($adapterData)
foreach ($structure in $methodInformationStructures) {
$structure.GetType().GetField('method', 60).GetValue($structure)
}
</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
<Type>
<Name>System.Management.Automation.PSProperty</Name>
<Members>
<ScriptProperty>
<Name>ReflectionInfo</Name>
<GetScriptBlock>
$adapterData = $this.GetType().GetField('adapterData', 60).GetValue($this)
return $adapterData.GetType().GetField('member', 60).GetValue($adapterData)
</GetScriptBlock>
</ScriptProperty>
</Members>
</Type>
</Types>