< Back

Add-CommandNotFoundAction

Sun Jan 19, 2020 5:32 pm

NAME Add-CommandNotFoundAction



SYNOPSIS

Add a command not found action to the list of actions.





SYNTAX

Add-CommandNotFoundAction -CommandName <String> -ComputerName <String> -VaultTargetName <String>

[<CommonParameters>]



Add-CommandNotFoundAction -CommandName <String> -ComputerName <String> [-Credential <PSCredential>]

[<CommonParameters>]



Add-CommandNotFoundAction -CommandName <String> -ScriptBlock <ScriptBlock> [<CommonParameters>]



Add-CommandNotFoundAction -CommandName <String> -Hostname <String> -Username <String> [<CommonParameters>]





DESCRIPTION





PARAMETERS

-CommandName <String>

Name of the command.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ComputerName <String>

For the remoting command, set the computer name of the target system.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

For the remoting command, set the credentials.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-VaultTargetName <String>

For the remoting command, but only a pointer to the credential vault.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ScriptBlock <ScriptBlock>

Define a script block to execute for the command.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Hostname <String>

To invoke an ssh session, the target hostname.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Username <String>

To invoke an ssh session, the username to use.



Required? true

Position? named

Default value

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





RELATED LINKS