Hello, welcome to the Microsoft community.
According to your feedback, when you slightly shake your computer, the network disconnects and the previously set network information is lost.
You can try a clean boot to eliminate the impact of third-party software on your computer.
Here's how:
- Press Windows+R, enter msconfig.
- Open System Configuration, select the General tab, and choose Selective startup.
- Uncheck the box for Load startup items.
- Go to the Services tab, click on Hide all Microsoft services in the lower-left corner, then click Disable all.
- Click OK and restart your computer. (Be sure to select Hide all Microsoft services first, then click Disable all, otherwise it may cause unforeseen problems such as being unable to enter the system.)
- Check if the problem still occurs.
Note: A clean boot starts Windows with a minimal set of drivers and startup programs so you can determine if background programs are interfering with your game or program and help you find the cause of the problem. It will help you get back on track.
In addition, you can try creating a new account.
- Select "Start" > "Settings" > "Accounts," then select "Family & other users." (In some versions of Windows, you will see "Other users.")
- Next to "Add someone else to this PC," select "Add an account."
- Choose "I don't have this person's sign-in information," then on the next page, select "Add a user without a Microsoft account."
- Enter a username, password, and password hint, or choose security questions, then select "Next."
If these two methods don't work, you can try repairing the system.
- Search for CMD, find Command Prompt, and choose to run as administrator.
- Enter the following commands one by one, be sure to execute the next command only after the previous one is completed:
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /RestoreHealth
SFC /Scannow
- After the scan is complete, you can check the scan information to see if any issues were detected and fixed.
If the above methods don't solve your problem, it may be a hardware issue, perhaps with the network card.
Have you updated your drivers, including motherboard and graphics card drivers?
If not, please update them.
I hope the above information is helpful to you. Feel free to contact us if you have any questions.
Kirito|Microsoft Community Support Officer