< Back
New-PSCallTraceHook
Post
NAME New-PSCallTraceHook
SYNOPSIS
New-PSCallTraceHook hooks an existing PowerShell function in this session in order to properly generate callback
data.
SYNTAX
New-PSCallTraceHook [-Name] <String> [-Module <String>] [-DisableParamMirroring] [<CommonParameters>]
DESCRIPTION
New-PSCallTraceHook -Name Write-Host -Module Microsoft.PowerShell.Utility
PARAMETERS
-Name <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Module <String>
Required? false
Position? named
Default value PSCallTraceHook
Accept pipeline input? false
Accept wildcard characters? false
-DisableParamMirroring [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>. {
New-PSCallTraceHook -Name Write-Host -Module Microsoft.PowerShell.Utility
Write-Host "My String"
Get-PSCallTrace | ft
}
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=New-PSCallTraceMessage; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
New-PSCallTraceMessage [-MessageType] <string> [[-Message] <Object>] [[-Level] <int>]
[<CommonParameters>]
ModuleName : PSCallTrace
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : New-PSCallTraceMessage
Category : Function
Component :
Role :
Functionality :
SYNOPSIS
New-PSCallTraceHook hooks an existing PowerShell function in this session in order to properly generate callback
data.
SYNTAX
New-PSCallTraceHook [-Name] <String> [-Module <String>] [-DisableParamMirroring] [<CommonParameters>]
DESCRIPTION
New-PSCallTraceHook -Name Write-Host -Module Microsoft.PowerShell.Utility
PARAMETERS
-Name <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Module <String>
Required? false
Position? named
Default value PSCallTraceHook
Accept pipeline input? false
Accept wildcard characters? false
-DisableParamMirroring [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>. {
New-PSCallTraceHook -Name Write-Host -Module Microsoft.PowerShell.Utility
Write-Host "My String"
Get-PSCallTrace | ft
}
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=New-PSCallTraceMessage; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
New-PSCallTraceMessage [-MessageType] <string> [[-Message] <Object>] [[-Level] <int>]
[<CommonParameters>]
ModuleName : PSCallTrace
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : New-PSCallTraceMessage
Category : Function
Component :
Role :
Functionality :