Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PowerShell 7.4.0
- A new PowerShell stable release is available: v7.4.1
- Upgrade now, or check out the release page at:
- https://aka.ms/PowerShell-Release?tag=v7.4.1
- Loading personal and system profiles took 501ms.
- PS C:\Users\User> trace-command -Expression { gd } -Name * -PSHost
- DEBUG: 2024-01-29 18:22:36.0870 CommandDiscovery Information: 0 : Looking up command: gd
- DEBUG: 2024-01-29 18:22:36.0888 CommandDiscovery Information: 0 : Alias found: GD Get-DirectoryItem
- DEBUG: 2024-01-29 18:22:36.0909 ParameterBinderController Information: 0 : WriteLine Argument count: 0
- DEBUG: 2024-01-29 18:22:36.0911 ParameterBinding Information: 0 : BIND NAMED cmd line args [Get-DirectoryItem]
- DEBUG: 2024-01-29 18:22:36.0914 ParameterBinding Information: 0 : BIND POSITIONAL cmd line args [Get-DirectoryItem]
- DEBUG: 2024-01-29 18:22:36.0916 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = BaseSet
- DEBUG: 2024-01-29 18:22:36.0918 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = BaseSet
- DEBUG: 2024-01-29 18:22:36.0920 ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [Get-DirectoryItem]
- DEBUG: 2024-01-29 18:22:36.0923 ParameterBinding Information: 0 : CALLING BeginProcessing
- DEBUG: 2024-01-29 18:22:36.0926 ParameterBinding Information: 0 : CALLING ProcessRecord
- DEBUG: 2024-01-29 18:22:36.0928 TypeConversion Information: 0 : Converting "" to "System.Object".
- DEBUG: 2024-01-29 18:22:36.0933 CommandDiscovery Information: 0 : Looking up command: ForEach-Object
- DEBUG: 2024-01-29 18:22:36.0936 CommandDiscovery Information: 0 : Cmdlet found: ForEach-Object Microsoft.PowerShell.Commands.ForEachObjectCommand
- DEBUG: 2024-01-29 18:22:36.0945 ParameterBinderController Information: 0 : WriteLine Argument count: 1
- DEBUG: 2024-01-29 18:22:36.0949 ParameterBinding Information: 0 : BIND NAMED cmd line args [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.0953 ParameterBinding Information: 0 : BIND POSITIONAL cmd line args [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.0957 ParameterBinding Information: 0 : BIND arg [ $_ ] to parameter [Process]
- 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
- DEBUG: 2024-01-29 18:22:36.0964 ParameterBinding Information: 0 : Creating array with element type [System.Management.Automation.ScriptBlock] and 1 elements
- DEBUG: 2024-01-29 18:22:36.0966 ParameterBinding Information: 0 : Argument type ScriptBlock is not IList, treating this as scalar
- DEBUG: 2024-01-29 18:22:36.0967 ParameterBinding Information: 0 : Adding scalar element of type ScriptBlock to array position 0
- DEBUG: 2024-01-29 18:22:36.0970 ParameterBinding Information: 0 : BIND arg [System.Management.Automation.ScriptBlock[]] to param [Process] SUCCESSFUL
- DEBUG: 2024-01-29 18:22:36.0972 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = ScriptBlockSet
- DEBUG: 2024-01-29 18:22:36.0974 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = ScriptBlockSet
- DEBUG: 2024-01-29 18:22:36.0975 ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.0977 ParameterBinding Information: 0 : CALLING BeginProcessing
- DEBUG: 2024-01-29 18:22:36.0979 ParameterBinding Information: 0 : BIND PIPELINE object to parameters: [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.0982 ParameterBinding Information: 0 : PIPELINE object TYPE = [System.Int32]
- DEBUG: 2024-01-29 18:22:36.0983 ParameterBinding Information: 0 : RESTORING pipeline parameter's original values
- DEBUG: 2024-01-29 18:22:36.0986 ParameterBinding Information: 0 : Parameter [InputObject] PIPELINE INPUT ValueFromPipeline NO COERCION
- DEBUG: 2024-01-29 18:22:36.0989 ParameterBinderController Information: 0 : WriteLine Adding PipelineParameter name=InputObject; value=1
- DEBUG: 2024-01-29 18:22:36.0992 ParameterBinding Information: 0 : BIND arg [1] to parameter [InputObject]
- DEBUG: 2024-01-29 18:22:36.0994 ParameterBinding Information: 0 : BIND arg [1] to param [InputObject] SUCCESSFUL
- DEBUG: 2024-01-29 18:22:36.0997 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = True
- DEBUG: 2024-01-29 18:22:36.0999 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = ScriptBlockSet
- DEBUG: 2024-01-29 18:22:36.1000 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1003 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1005 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1007 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = ScriptBlockSet
- DEBUG: 2024-01-29 18:22:36.1008 ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.1010 ParameterBinding Information: 0 : CALLING ProcessRecord
- DEBUG: 2024-01-29 18:22:36.1036 ParameterBinding Information: 0 : BIND PIPELINE object to parameters: [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.1042 ParameterBinding Information: 0 : PIPELINE object TYPE = [System.Int32]
- DEBUG: 2024-01-29 18:22:36.1045 ParameterBinding Information: 0 : RESTORING pipeline parameter's original values
- DEBUG: 2024-01-29 18:22:36.1047 ParameterBinding Information: 0 : Parameter [InputObject] PIPELINE INPUT ValueFromPipeline NO COERCION
- DEBUG: 2024-01-29 18:22:36.1049 ParameterBinderController Information: 0 : WriteLine Adding PipelineParameter name=InputObject; value=2
- DEBUG: 2024-01-29 18:22:36.1051 ParameterBinding Information: 0 : BIND arg [2] to parameter [InputObject]
- DEBUG: 2024-01-29 18:22:36.1053 ParameterBinding Information: 0 : BIND arg [2] to param [InputObject] SUCCESSFUL
- DEBUG: 2024-01-29 18:22:36.1054 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = True
- DEBUG: 2024-01-29 18:22:36.1056 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = ScriptBlockSet
- DEBUG: 2024-01-29 18:22:36.1057 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1058 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1060 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1061 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = ScriptBlockSet
- DEBUG: 2024-01-29 18:22:36.1063 ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.1064 ParameterBinding Information: 0 : CALLING ProcessRecord
- DEBUG: 2024-01-29 18:22:36.1067 ParameterBinding Information: 0 : BIND PIPELINE object to parameters: [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.1068 ParameterBinding Information: 0 : PIPELINE object TYPE = [System.Int32]
- DEBUG: 2024-01-29 18:22:36.1069 ParameterBinding Information: 0 : RESTORING pipeline parameter's original values
- DEBUG: 2024-01-29 18:22:36.1071 ParameterBinding Information: 0 : Parameter [InputObject] PIPELINE INPUT ValueFromPipeline NO COERCION
- DEBUG: 2024-01-29 18:22:36.1072 ParameterBinderController Information: 0 : WriteLine Adding PipelineParameter name=InputObject; value=3
- DEBUG: 2024-01-29 18:22:36.1074 ParameterBinding Information: 0 : BIND arg [3] to parameter [InputObject]
- DEBUG: 2024-01-29 18:22:36.1075 ParameterBinding Information: 0 : BIND arg [3] to param [InputObject] SUCCESSFUL
- DEBUG: 2024-01-29 18:22:36.1076 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = True
- DEBUG: 2024-01-29 18:22:36.1077 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = ScriptBlockSet
- DEBUG: 2024-01-29 18:22:36.1079 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1080 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1081 ParameterBinderController Information: 0 : WriteLine aParameterWasBound = False
- DEBUG: 2024-01-29 18:22:36.1082 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = ScriptBlockSet
- DEBUG: 2024-01-29 18:22:36.1084 ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [ForEach-Object]
- DEBUG: 2024-01-29 18:22:36.1086 ParameterBinding Information: 0 : CALLING ProcessRecord
- DEBUG: 2024-01-29 18:22:36.1087 ParameterBinding Information: 0 : CALLING EndProcessing
- DEBUG: 2024-01-29 18:22:36.1089 ParameterBinding Information: 0 : CALLING EndProcessing
- 1
- 2
- 3
- PS C:\Users\User> $PSVersionTable
- Name Value
- ---- -----
- PSVersion 7.4.0
- PSEdition Core
- GitCommitId 7.4.0
- OS Microsoft Windows 10.0.22621
- Platform Win32NT
- PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
- PSRemotingProtocolVersion 2.3
- SerializationVersion 1.1.0.1
- WSManStackVersion 3.0
- PS C:\Users\User> gc $PROFILE | select -last 8
- Import-Module "$ChocolateyProfile"
- }
- #Import-Module Prompt -DisableNameChecking
- #Import-Module PSUtils -DisableNameChecking
- #Import-Module CliUtils -DisableNameChecking
- Import-Module Get-DirectoryItem
- PS C:\Users\User> gcm Get-DirectoryItem | select -exp ScriptBlock
- [CmdletBinding(DefaultParameterSetName = 'BaseSet')]
- [Alias('Get-Dir', 'GD')]
- param (
- )
- process {
- 1, 2, 3 | ForEach-Object { $_ }
- }
- ################################################################################################################
- PowerShell 7.4.0
- A new PowerShell stable release is available: v7.4.1
- Upgrade now, or check out the release page at:
- https://aka.ms/PowerShell-Release?tag=v7.4.1
- Loading personal and system profiles took 508ms.
- PS C:\Users\User> trace-command -Expression { gd } -Name * -PSHost
- DEBUG: 2024-01-29 18:25:30.1032 CommandDiscovery Information: 0 : Looking up command: gd
- DEBUG: 2024-01-29 18:25:30.1048 CommandDiscovery Information: 0 : Alias found: GD Get-DirectoryItem
- DEBUG: 2024-01-29 18:25:30.1071 ParameterBinderController Information: 0 : WriteLine Argument count: 0
- DEBUG: 2024-01-29 18:25:30.1073 ParameterBinding Information: 0 : BIND NAMED cmd line args [Get-DirectoryItem]
- DEBUG: 2024-01-29 18:25:30.1075 ParameterBinding Information: 0 : BIND POSITIONAL cmd line args [Get-DirectoryItem]
- DEBUG: 2024-01-29 18:25:30.1076 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = BaseSet
- DEBUG: 2024-01-29 18:25:30.1078 ParameterBinderController Information: 0 : WriteLine CurrentParameterSetName = BaseSet
- DEBUG: 2024-01-29 18:25:30.1081 ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [Get-DirectoryItem]
- DEBUG: 2024-01-29 18:25:30.1083 ParameterBinding Information: 0 : CALLING BeginProcessing
- DEBUG: 2024-01-29 18:25:30.1086 ParameterBinding Information: 0 : CALLING ProcessRecord
- DEBUG: 2024-01-29 18:25:30.1089 TypeConversion Information: 0 : Converting "" to "System.Object".
- DEBUG: 2024-01-29 18:25:30.1239 ParameterBinding Information: 0 : CALLING EndProcessing
- 1
- 2
- 3
- PS C:\Users\User> gcm Get-DirectoryItem | select -exp ScriptBlock
- [CmdletBinding(DefaultParameterSetName = 'BaseSet')]
- [Alias('Get-Dir', 'GD')]
- param (
- )
- process {
- (1, 2, 3).foreach({$_ })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement