FIXED: Failed to set static IP in Windows Core Server: Cannot convert value '2147942405' to type 'System.Int32

Pontus Ydström 0 Reputation points
2024-11-20T08:33:44.1+00:00

Corefail

I am trying to set an Static IP to my Windows Core Server but i am recieving an error: "Failed to set network adapter address. Cannot convert value "2147942405" to type "System.Int32". Error: "Value was either too large or too small for an Int32."

I am running the server in VMWare Workstation.

None of my classmates have recieved this error.

Any suggestions for solving this issue?

I have tried the following solutions unsuccessfully:

  • Restart the server
  • Run the commands several times
  • The following command "netsh int ip reset"
  • Set the IP using CMD but i need to run it as administrator and dont know how to do that.

I expected:

  • To be able to set an static IP, subnet mask and an gateway successfully.
  • My results are shown in the picture above or below.
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,481 questions
Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
259 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li 10,810 Reputation points
    2024-11-22T18:51:39.1333333+00:00

    Hello,

    You may not have sufficient permissions to do that.

    Press CTRL+ALT+DELETE, click Start Task Manager, click More Details, click File, click Run, and then type cmd /admin.

    Now, you're running CMD as administrator.

    Retry the previous steps to set the static IP address. If the problem persists, run the "netsh int ip" command to set static IP address.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.