ReplaceCommandAction Method
Replaces an old command action with the given new one. The command action for the command of the given one is removed from the commander and the given new command action is inserted in its place.
Parameters
- newCommandAction
- The new command action to insert in the commander.
Return Value
True if an old command action was found for the command of the new one and it was replaced successfully.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)