Advertisement
blaisem

kokotarudaishogun

Jan 29th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PowerShell 7.4.0
  2.  
  3.    A new PowerShell stable release is available: v7.4.1
  4.    Upgrade now, or check out the release page at:
  5.      https://aka.ms/PowerShell-Release?tag=v7.4.1
  6.  
  7. Loading personal and system profiles took 501ms.
  8. PS C:\Users\User> trace-command -Expression { gd } -Name * -PSHost
  9. DEBUG: 2024-01-29 18:22:36.0870 CommandDiscovery Information: 0 : Looking up command: gd
  10. DEBUG: 2024-01-29 18:22:36.0888 CommandDiscovery Information: 0 : Alias found: GD  Get-DirectoryItem
  11. DEBUG: 2024-01-29 18:22:36.0909 ParameterBinderController Information: 0 :  WriteLine   Argument count: 0
  12. DEBUG: 2024-01-29 18:22:36.0911 ParameterBinding Information: 0 : BIND NAMED cmd line args [Get-DirectoryItem]
  13. DEBUG: 2024-01-29 18:22:36.0914 ParameterBinding Information: 0 : BIND POSITIONAL cmd line args [Get-DirectoryItem]
  14. DEBUG: 2024-01-29 18:22:36.0916 ParameterBinderController Information: 0 :  WriteLine   CurrentParameterSetName = BaseSet
  15. DEBUG: 2024-01-29 18:22:36.0918 ParameterBinderController Information: 0 :  WriteLine   CurrentParameterSetName = BaseSet
  16. DEBUG: 2024-01-29 18:22:36.0920 ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [Get-DirectoryItem]
  17. DEBUG: 2024-01-29 18:22:36.0923 ParameterBinding Information: 0 : CALLING BeginProcessing
  18. DEBUG: 2024-01-29 18:22:36.0926 ParameterBinding Information: 0 : CALLING ProcessRecord
  19. DEBUG: 2024-01-29 18:22:36.0928 TypeConversion Information: 0 :     Converting "" to "System.Object".
  20. DEBUG: 2024-01-29 18:22:36.0933 CommandDiscovery Information: 0 :     Looking up command: ForEach-Object
  21. DEBUG: 2024-01-29 18:22:36.0936 CommandDiscovery Information: 0 :     Cmdlet found: ForEach-Object  Microsoft.PowerShell.Commands.ForEachObjectCommand
  22. DEBUG: 2024-01-29 18:22:36.0945 ParameterBinderController Information: 0 :  WriteLine       Argument count: 1
  23. DEBUG: 2024-01-29 18:22:36.0949 ParameterBinding Information: 0 :     BIND NAMED cmd line args [ForEach-Object]
  24. DEBUG: 2024-01-29 18:22:36.0953 ParameterBinding Information: 0 :     BIND POSITIONAL cmd line args [ForEach-Object]
  25. DEBUG: 2024-01-29 18:22:36.0957 ParameterBinding Information: 0 :         BIND arg [ $_ ] to parameter [Process]
  26. DEBUG: 2024-01-29 18:22:36.0962 ParameterBinding Information: 0 :             Binding collection parameter Process: argument type [ScriptBlock], parameter type [System.Management.Automation.ScriptBlock[]], collection type Array, element type [System.Management.Automation.ScriptBlock], no coerceElementType
  27. DEBUG: 2024-01-29 18:22:36.0964 ParameterBinding Information: 0 :             Creating array with element type [System.Management.Automation.ScriptBlock] and 1 elements
  28. DEBUG: 2024-01-29 18:22:36.0966 ParameterBinding Information: 0 :             Argument type ScriptBlock is not IList, treating this as scalar
  29. DEBUG: 2024-01-29 18:22:36.0967 ParameterBinding Information: 0 :             Adding scalar element of type ScriptBlock to array position 0
  30. DEBUG: 2024-01-29 18:22:36.0970 ParameterBinding Information: 0 :             BIND arg [System.Management.Automation.ScriptBlock[]] to param [Process] SUCCESSFUL
  31. DEBUG: 2024-01-29 18:22:36.0972 ParameterBinderController Information: 0 :  WriteLine       CurrentParameterSetName = ScriptBlockSet
  32. DEBUG: 2024-01-29 18:22:36.0974 ParameterBinderController Information: 0 :  WriteLine       CurrentParameterSetName = ScriptBlockSet
  33. DEBUG: 2024-01-29 18:22:36.0975 ParameterBinding Information: 0 :     MANDATORY PARAMETER CHECK on cmdlet [ForEach-Object]
  34. DEBUG: 2024-01-29 18:22:36.0977 ParameterBinding Information: 0 :     CALLING BeginProcessing
  35. DEBUG: 2024-01-29 18:22:36.0979 ParameterBinding Information: 0 :     BIND PIPELINE object to parameters: [ForEach-Object]
  36. DEBUG: 2024-01-29 18:22:36.0982 ParameterBinding Information: 0 :         PIPELINE object TYPE = [System.Int32]
  37. DEBUG: 2024-01-29 18:22:36.0983 ParameterBinding Information: 0 :         RESTORING pipeline parameter's original values
  38. DEBUG: 2024-01-29 18:22:36.0986 ParameterBinding Information: 0 :         Parameter [InputObject] PIPELINE INPUT ValueFromPipeline NO COERCION
  39. DEBUG: 2024-01-29 18:22:36.0989 ParameterBinderController Information: 0 :  WriteLine           Adding PipelineParameter name=InputObject; value=1
  40. DEBUG: 2024-01-29 18:22:36.0992 ParameterBinding Information: 0 :         BIND arg [1] to parameter [InputObject]
  41. DEBUG: 2024-01-29 18:22:36.0994 ParameterBinding Information: 0 :             BIND arg [1] to param [InputObject] SUCCESSFUL
  42. DEBUG: 2024-01-29 18:22:36.0997 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = True
  43. DEBUG: 2024-01-29 18:22:36.0999 ParameterBinderController Information: 0 :  WriteLine           CurrentParameterSetName = ScriptBlockSet
  44. DEBUG: 2024-01-29 18:22:36.1000 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  45. DEBUG: 2024-01-29 18:22:36.1003 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  46. DEBUG: 2024-01-29 18:22:36.1005 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  47. DEBUG: 2024-01-29 18:22:36.1007 ParameterBinderController Information: 0 :  WriteLine           CurrentParameterSetName = ScriptBlockSet
  48. DEBUG: 2024-01-29 18:22:36.1008 ParameterBinding Information: 0 :     MANDATORY PARAMETER CHECK on cmdlet [ForEach-Object]
  49. DEBUG: 2024-01-29 18:22:36.1010 ParameterBinding Information: 0 :     CALLING ProcessRecord
  50. DEBUG: 2024-01-29 18:22:36.1036 ParameterBinding Information: 0 :     BIND PIPELINE object to parameters: [ForEach-Object]
  51. DEBUG: 2024-01-29 18:22:36.1042 ParameterBinding Information: 0 :         PIPELINE object TYPE = [System.Int32]
  52. DEBUG: 2024-01-29 18:22:36.1045 ParameterBinding Information: 0 :         RESTORING pipeline parameter's original values
  53. DEBUG: 2024-01-29 18:22:36.1047 ParameterBinding Information: 0 :         Parameter [InputObject] PIPELINE INPUT ValueFromPipeline NO COERCION
  54. DEBUG: 2024-01-29 18:22:36.1049 ParameterBinderController Information: 0 :  WriteLine           Adding PipelineParameter name=InputObject; value=2
  55. DEBUG: 2024-01-29 18:22:36.1051 ParameterBinding Information: 0 :         BIND arg [2] to parameter [InputObject]
  56. DEBUG: 2024-01-29 18:22:36.1053 ParameterBinding Information: 0 :             BIND arg [2] to param [InputObject] SUCCESSFUL
  57. DEBUG: 2024-01-29 18:22:36.1054 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = True
  58. DEBUG: 2024-01-29 18:22:36.1056 ParameterBinderController Information: 0 :  WriteLine           CurrentParameterSetName = ScriptBlockSet
  59. DEBUG: 2024-01-29 18:22:36.1057 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  60. DEBUG: 2024-01-29 18:22:36.1058 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  61. DEBUG: 2024-01-29 18:22:36.1060 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  62. DEBUG: 2024-01-29 18:22:36.1061 ParameterBinderController Information: 0 :  WriteLine           CurrentParameterSetName = ScriptBlockSet
  63. DEBUG: 2024-01-29 18:22:36.1063 ParameterBinding Information: 0 :     MANDATORY PARAMETER CHECK on cmdlet [ForEach-Object]
  64. DEBUG: 2024-01-29 18:22:36.1064 ParameterBinding Information: 0 :     CALLING ProcessRecord
  65. DEBUG: 2024-01-29 18:22:36.1067 ParameterBinding Information: 0 :     BIND PIPELINE object to parameters: [ForEach-Object]
  66. DEBUG: 2024-01-29 18:22:36.1068 ParameterBinding Information: 0 :         PIPELINE object TYPE = [System.Int32]
  67. DEBUG: 2024-01-29 18:22:36.1069 ParameterBinding Information: 0 :         RESTORING pipeline parameter's original values
  68. DEBUG: 2024-01-29 18:22:36.1071 ParameterBinding Information: 0 :         Parameter [InputObject] PIPELINE INPUT ValueFromPipeline NO COERCION
  69. DEBUG: 2024-01-29 18:22:36.1072 ParameterBinderController Information: 0 :  WriteLine           Adding PipelineParameter name=InputObject; value=3
  70. DEBUG: 2024-01-29 18:22:36.1074 ParameterBinding Information: 0 :         BIND arg [3] to parameter [InputObject]
  71. DEBUG: 2024-01-29 18:22:36.1075 ParameterBinding Information: 0 :             BIND arg [3] to param [InputObject] SUCCESSFUL
  72. DEBUG: 2024-01-29 18:22:36.1076 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = True
  73. DEBUG: 2024-01-29 18:22:36.1077 ParameterBinderController Information: 0 :  WriteLine           CurrentParameterSetName = ScriptBlockSet
  74. DEBUG: 2024-01-29 18:22:36.1079 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  75. DEBUG: 2024-01-29 18:22:36.1080 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  76. DEBUG: 2024-01-29 18:22:36.1081 ParameterBinderController Information: 0 :  WriteLine           aParameterWasBound = False
  77. DEBUG: 2024-01-29 18:22:36.1082 ParameterBinderController Information: 0 :  WriteLine           CurrentParameterSetName = ScriptBlockSet
  78. DEBUG: 2024-01-29 18:22:36.1084 ParameterBinding Information: 0 :     MANDATORY PARAMETER CHECK on cmdlet [ForEach-Object]
  79. DEBUG: 2024-01-29 18:22:36.1086 ParameterBinding Information: 0 :     CALLING ProcessRecord
  80. DEBUG: 2024-01-29 18:22:36.1087 ParameterBinding Information: 0 :     CALLING EndProcessing
  81. DEBUG: 2024-01-29 18:22:36.1089 ParameterBinding Information: 0 : CALLING EndProcessing
  82. 1
  83. 2
  84. 3
  85. PS C:\Users\User> $PSVersionTable
  86.  
  87. Name                           Value
  88. ----                           -----
  89. PSVersion                      7.4.0
  90. PSEdition                      Core
  91. GitCommitId                    7.4.0
  92. OS                             Microsoft Windows 10.0.22621
  93. Platform                       Win32NT
  94. PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
  95. PSRemotingProtocolVersion      2.3
  96. SerializationVersion           1.1.0.1
  97. WSManStackVersion              3.0
  98.  
  99. PS C:\Users\User> gc $PROFILE | select -last 8
  100.  Import-Module "$ChocolateyProfile"
  101. }
  102.  
  103. #Import-Module Prompt -DisableNameChecking
  104. #Import-Module PSUtils -DisableNameChecking
  105. #Import-Module CliUtils -DisableNameChecking
  106. Import-Module Get-DirectoryItem
  107.  
  108. PS C:\Users\User> gcm Get-DirectoryItem | select -exp ScriptBlock
  109.  
  110.    [CmdletBinding(DefaultParameterSetName = 'BaseSet')]
  111.    [Alias('Get-Dir', 'GD')]
  112.    param (
  113.    )
  114.  
  115.  
  116.  
  117.    process {
  118.  
  119.        1, 2, 3 | ForEach-Object { $_ }
  120.    }
  121.  
  122. ################################################################################################################
  123. PowerShell 7.4.0
  124.  
  125.   A new PowerShell stable release is available: v7.4.1
  126.   Upgrade now, or check out the release page at:
  127.     https://aka.ms/PowerShell-Release?tag=v7.4.1
  128.  
  129. Loading personal and system profiles took 508ms.
  130. PS C:\Users\User> trace-command -Expression { gd } -Name * -PSHost
  131. DEBUG: 2024-01-29 18:25:30.1032 CommandDiscovery Information: 0 : Looking up command: gd
  132. DEBUG: 2024-01-29 18:25:30.1048 CommandDiscovery Information: 0 : Alias found: GD  Get-DirectoryItem
  133. DEBUG: 2024-01-29 18:25:30.1071 ParameterBinderController Information: 0 :  WriteLine   Argument count: 0
  134. DEBUG: 2024-01-29 18:25:30.1073 ParameterBinding Information: 0 : BIND NAMED cmd line args [Get-DirectoryItem]
  135. DEBUG: 2024-01-29 18:25:30.1075 ParameterBinding Information: 0 : BIND POSITIONAL cmd line args [Get-DirectoryItem]
  136. DEBUG: 2024-01-29 18:25:30.1076 ParameterBinderController Information: 0 :  WriteLine   CurrentParameterSetName = BaseSet
  137. DEBUG: 2024-01-29 18:25:30.1078 ParameterBinderController Information: 0 :  WriteLine   CurrentParameterSetName = BaseSet
  138. DEBUG: 2024-01-29 18:25:30.1081 ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [Get-DirectoryItem]
  139. DEBUG: 2024-01-29 18:25:30.1083 ParameterBinding Information: 0 : CALLING BeginProcessing
  140. DEBUG: 2024-01-29 18:25:30.1086 ParameterBinding Information: 0 : CALLING ProcessRecord
  141. DEBUG: 2024-01-29 18:25:30.1089 TypeConversion Information: 0 :     Converting "" to "System.Object".
  142. DEBUG: 2024-01-29 18:25:30.1239 ParameterBinding Information: 0 : CALLING EndProcessing
  143. 1
  144. 2
  145. 3
  146. PS C:\Users\User> gcm Get-DirectoryItem | select -exp ScriptBlock
  147.  
  148.    [CmdletBinding(DefaultParameterSetName = 'BaseSet')]
  149.    [Alias('Get-Dir', 'GD')]
  150.    param (
  151.    )
  152.  
  153.  
  154.  
  155.    process {
  156.  
  157.        (1, 2, 3).foreach({$_ })
  158.    }
  159.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement