This error code indicates that the "route add" command failed. This is likely due to an incorrect or missing argument.
Users typically search for a solution by asking about:
- error: windows route add command failed [adaptive]: returned error code 1
- windows route add command failed [adaptive]: returned error code 1
1. Check the syntax of the command
To check the syntax of the command in order to fix an error, first open the Command Prompt window. Next, type the command and press Enter. If the command syntax is correct, the command will execute without errors. If the syntax of the command is incorrect, the command will fail. In this case, the command returned an error code of 1.
2. Make sure that the route destination is reachable
Assuming you are using Routeviewer, open it and in the left-hand pane select the route you want to check. In the right-hand pane, select "Details" and then "Route Status." If the route is not reachable, the status will be "Not reachable." In this case, you will need to fix the route.
3. Use the -p option to specify a persistent route
-p argument is used to specify a persistent route. -route command is used to create the persistent route. -returned error code is 1 which indicates that the route creation failed.
4. Use the -metric option to specify a metric for the route
To specify a metric for a route, use the -metric option with the route command. The route command returns an error if the metric cannot be calculated. The following command fixes an error with a route calculated using the default route metric. windows route add -metric 1 The route command calculates the metric for the route using the default route metric. The -metric option specifies the metric for the route.
5. Use the -if option to specify the interface for the route
To use the -if option with the route add command, first you must identify the interface that the route will use. To do this, you can use the route list command: route list This command will display a list of all the routes that are currently active on your computer. Next, you need to specify the route's interface. To do this, you use the -if option: route add -if interface_name The -if option takes two arguments: the interface name and the route's destination. In this example, we are using the -if option to add a route that will use the network interface named "Ethernet 1". Finally, you must provide the route's destination. In this example, we are specifying the route's destination as the computer's default route. Please note that the -if option only works with the route add command. It cannot be used with the route change command.