Starting the desktop with the command line

The command line is a useful, practical tool that allows you to run applications from under DOS. It is good to use it at failures, system setup. Runs through the "Start", you can find it there in the folder of standard programs. And also opens through the "Run", if you type in the string cmd.

How to start the desktop using the command line.

Help this utility is very useful when you do not load the desktop. Usually the cause of this problem is malware that has tweaked the registry. The following explains how to start the desktop via the command line, connect remotely from another device.

The explorer.exe file is responsible for the launch process. Sometimes, when a failure occurs due to power surges, a power outage, or other reasons, the interface is broken, then the next time you turn it on, a malfunction occurs.

In fact, the desktop itself is a folder, initiated by the very process explorer.exe. So, in order to return to the normal state, you just need to start the real process, not changed by viruses. If the folder, the path to its address is damaged, explorer.exe does not function correctly.

It is convenient to restore the working capacity, to resume the normal flow of processes via the command line.

Run command line

Run the program should certainly with administrator rights. This is done by pressing Win + W, enter “command line” in the search field. Then click RMB on the utility icon that appeared during the search, go through the words "Run as administrator".

And you can also go along the “Start” - “All Programs” - “System Tools” path, there you can also click RMB on the utility icon, then launch it from the administrator.

Launch Desktop, Restore

We register explorer.exe in the console. The process starts, at the end you will see the desktop along with the icons.

If Windows is still loading only up to a black screen, it means that the explorer.exe file is damaged, changed, or deleted by a virus altogether - we are taking steps to restore it.

You need to start the computer in safe mode, then turn on the rstrui.exe process. A recovery utility will begin to function, allowing you to select a rollback point, returning the device to the state that was on the date that this point was created.

IMPORTANT. This will restore its functionality by returning a state such as at the time prior to changing explorer.exe.

Remote Access Connection

Through the console, you can also connect to the desktop remote access. This is done so that you can manage the system through another medium, another device, since the source computer does not boot. This is done like this:

Allow the connection by writing in the console:

reg add "HKLM \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server" / v fDenyTSConnections / t REG_DWORD / d 0 / f

Start the net start Termservice service.

Configure the firewall settings:

netsh advfirewall firewall add rule name = "allow RemoteDesktop" dir = in protocol = TCP localport = 3389 action = allow

Run from remote device

If it was required to launch a desktop via remote access, using the command line located on the remote device, perform the following actions. Download, install the program PsTools.

REFERENCE. PsTools - a set of tools that allows you to perform system administration. It is a set of programs that can be installed together or separately. The full list includes utilities that allow you to remotely open files, execute processes, display information, upload records from the event log, change the values ​​of set passwords on accounts, shut down, restart a remote computer, suspend processes running on it and other functions.

Run a command prompt, go to the PsTools directory. Write the command line launch on the remote device:

exe \\ computer_computer_computer_name -u domain \ user -p password cmd

Allow me to connect to the remote table, for which you register:

reg add "HKLM \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server" / v fDenyTSConnections / t REG_DWORD / d 0 / f

Carefully enter the commands, then you can save time, money, connecting remotely to the device, performing the necessary actions on it or returning your device to a working state. In general, as you can see, these functions are useful, and even an inexperienced user can master them.