📜 ⬆️ ⬇️

How to fix a “broken” VDS server on Windows



Our contest "Admin 80 level" has ended. The task of the participants was to fix the "broken" VDS server. Congratulations to our winners. The main prize goes to Saratov, Mikhail Goch. The winner coped with the task in less than 2 hours, an excellent result.
All contestants who do not win prizes will receive a 10% discount for using VDS servers from RUVDS for life. You will be sent a personal notice to the e-mail specified during registration in the competition.

We spread the solution.
')
So, let's begin!
We try to connect to the server in the standard way via RDP-client. Does not exceed. Perhaps this is one of the ideas of the competition?
Connect through emergency mode in your account. Connect!

We notice that the administrator's avatar is not loaded, so, most likely, non-gui mode is used.
Enter your credentials. Before us is a dark screen. Usually, in non-gui mode, cmd.exe is immediately opened, but at the moment the utility is for some reason not running.
Probably, the current user does not have permission to run it or the executable file itself is missing.

Send the command ctrl + alt + del by clicking on the button and open the Task manager. We need to somehow run the command line interpreter.
File> New Task ... just suitable for this purpose. We try to give the necessary rights for the cmd.exe file, for this we execute the command:
cacls "c: \ windows \ system32 \ cmd.exe" / G Administrator: R (use cacls, since launching icacls under the current user is prohibited)

Now we try to run cmd.exe through the New task ... It turned out!
Next, we need to install the system components that are required to run the operating system in GUI mode.
We carry out:
cacls "C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \ powershell.exe" / G Administrator: R

Then run powershell and execute the command:
Add-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra

We are waiting for the installation to complete, rebooting. Now we are in the usual GUI mode, so much more convenient!
We notice that the rule allowing incoming connections to port 3389 is disabled. This is what prevented us from connecting to our server via RDP. Turn on and connect through RDP.
Install the IIS Manager and open it.

Go to the Application Pools section and see that the ruvds contest pool is disabled. Turn on ...
Next, go to the root directory of the site and open the file web.config.

It contains the following:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <security> <requestFiltering> <verbs allowUnlisted="true"> <add verb="GET" allowed="false" /> </verbs> </requestFiltering> </security> <staticContent> <remove fileExtension=".png" /> </staticContent> <defaultDocument enabled="false" /> </system.webServer> </configuration> <add verb="GET" allowed="false" /> <!--        http GET- --> <remove fileExtension=".png" /> <!--        *.png --> <defaultDocument enabled="false" /> <!-- -       --> 

We conclude that we should get rid of this file as soon as possible.
Delete ...

It seems that everything is ready ... We try to open the address YOUR_VPS_IP . Unable to establish connection. It looks like you need to look into the firewall settings.
We find the rule World Wide Web Services (HTTP Traffic-In) and notice that for the public profile, this rule does not apply.
Activate the rule.

We try to load the page - the download has started, but it happens very slowly ... Perhaps it is worth looking into the site settings.
Go to the Limits settings for our site.
Note the check mark near Limit bandwidth usage and the value 1024. With such settings, fast loading of the page is impossible. We remove ...

Trying to load the page ...


You are the owner of a free VPS for a year!

The list of winners, since we did not ask for names, we indicate only the initial characters of the e-mail:
  1. place: mgot
  2. Place: a.svyat
  3. place: nightw
  4. place: wolf_k


Hope it was exciting. See you again!
Write in the comments what you didn’t like or what you would like to change next time. Thank.

Source: https://habr.com/ru/post/281663/


All Articles