- Удаленный рабочий стол: разрешение доступа к компьютеру Remote Desktop — Allow access to your PC
- Как включить удаленный рабочий стол How to enable Remote Desktop
- Windows 10 Fall Creator Update (1709) или более поздняя версия Windows 10 Fall Creator Update (1709) or later
- Windows 7 и ранняя версия Windows 10 Windows 7 and early version of Windows 10
- Все версии Windows (устаревший метод) All versions of Windows (Legacy method)
- Следует ли включать удаленный рабочий стол? Should I enable Remote Desktop?
- Почему следует разрешать подключения только с проверкой подлинности на уровне сети? Why allow connections only with Network Level Authentication?
- How do I restart a service on a remote machine in Windows? [closed]
- 8 Answers 8
- Simplest way to restart service on a remote computer
- 11 Answers 11
- 5 Ways to Remotely Start and Stop Services over the Network
- Finding Windows Service Names
Удаленный рабочий стол: разрешение доступа к компьютеру Remote Desktop — Allow access to your PC
Применяется к: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2 Applies to: Windows 10, Windows 8.1, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2
Можно использовать Удаленный рабочий стол, чтобы подключиться к компьютеру с удаленного устройства и управлять им с помощью клиента удаленного рабочего стола (Майкрософт) (доступен для Windows, iOS, macOS и Android). You can use Remote Desktop to connect to and control your PC from a remote device by using a Microsoft Remote Desktop client (available for Windows, iOS, macOS and Android). Если разрешить удаленные подключения к своему компьютеру, то вы сможете подключиться к нему с помощью другого устройства и получить доступ ко всем своим приложениям, файлам и сетевым ресурсам, как если бы вы сидели за своим столом. When you allow remote connections to your PC, you can use another device to connect to your PC and have access to all of your apps, files, and network resources as if you were sitting at your desk.
Удаленный рабочий стол можно использовать для подключения к Windows 10 Pro и Windows 10 Корпоративная, Windows 8.1, Windows 8 Корпоративная и Windows 8 Pro, Windows 7 Pro, Windows 7 Корпоративная и Windows 7 Максимальная, а также для подключения к версиям выше Windows Server 2008. You can use Remote Desktop to connect to Windows 10 Pro and Enterprise, Windows 8.1 and 8 Enterprise and Pro, Windows 7 Professional, Enterprise, and Ultimate, and Windows Server versions newer than Windows Server 2008. Подключиться к компьютерам под управлением выпуска «Домашняя» (например, Windows 10 Домашняя) нельзя. You can’t connect to computers running a Home edition (like Windows 10 Home).
Для подключения к удаленному компьютеру он должен быть включен и подключен к сети, на нем должен быть включен удаленный рабочий стол, а у вас должен быть сетевой доступ к этому удаленному компьютеру (для этого может и использоваться Интернет) и разрешение на подключение. To connect to a remote PC, that computer must be turned on, it must have a network connection, Remote Desktop must be enabled, you must have network access to the remote computer (this could be through the Internet), and you must have permission to connect. Чтобы иметь разрешение на подключение, необходимо находиться в списке пользователей. For permission to connect, you must be on the list of users. Прежде чем начать подключение, рекомендуется найти имя компьютера, к которому вы подключаетесь, и убедиться, что в его брандмауэре разрешены подключения к удаленному рабочему столу. Before you start a connection, it’s a good idea to look up the name of the computer you’re connecting to and to make sure Remote Desktop connections are allowed through its firewall.
Как включить удаленный рабочий стол How to enable Remote Desktop
Самый простой способ разрешить доступ к компьютеру с удаленного устройства — использовать параметры удаленного рабочего стола в разделе «Параметры». The simplest way to allow access to your PC from a remote device is using the Remote Desktop options under Settings. Так как эта функциональная возможность была добавлена в Windows 10 Fall Creators Update (1709), также доступно отдельное скачиваемое приложение для более ранних версий Windows, которое обеспечивает аналогичные функции. Since this functionality was added in the Windows 10 Fall Creators update (1709), a separate downloadable app is also available that provides similar functionality for earlier versions of Windows. Можно также использовать старый способ включения удаленного рабочего стола, однако этот метод обеспечивает меньше функциональных возможностей и возможностей проверки. You can also use the legacy way of enabling Remote Desktop, however this method provides less functionality and validation.
Windows 10 Fall Creator Update (1709) или более поздняя версия Windows 10 Fall Creator Update (1709) or later
Можно настроить компьютер для удаленного доступа с помощью нескольких простых действий. You can configure your PC for remote access with a few easy steps.
- На устройстве, с которого вы собираетесь подключиться, откройте меню Пуск и щелкните значок Параметры. On the device you want to connect to, select Start and then click the Settings icon on the left.
- Выберите группу Система возле элемента Удаленный рабочий стол. Select the System group followed by the Remote Desktop item.
- Включите удаленный рабочий стол с помощью ползунка. Use the slider to enable Remote Desktop.
- Также рекомендуется оставить компьютер в режиме бодрствования и доступным для обнаружения, чтобы упростить подключение. It is also recommended to keep the PC awake and discoverable to facilitate connections. Щелкните Показать параметры для включения. Click Show settings to enable.
- При необходимости добавьте пользователей, которые могут удаленно подключиться, щелкнув Select users that can remotely access this PC (Выбрать пользователей, которые могут удаленно подключаться к этому компьютеру). As needed, add users who can connect remotely by clicking Select users that can remotely access this PC.
- Члены группы «Администраторы» получают доступ автоматически. Members of the Administrators group automatically have access.
- Запишите имя этого компьютера, указанное в разделе How to connect to this PC (Как подключаться к этому компьютеру). Make note of the name of this PC under How to connect to this PC. Оно потребуется для настройки клиентов. You’ll need this to configure the clients.
Windows 7 и ранняя версия Windows 10 Windows 7 and early version of Windows 10
Чтобы настроить компьютер для удаленного доступа, скачайте и запустите Microsoft Remote Desktop Assistant. To configure your PC for remote access, download and run the Microsoft Remote Desktop Assistant. Этот помощник обновляет параметры системы, чтобы включить удаленный доступ, обеспечивает бодрствование компьютера для подключения и проверяет, разрешает ли брандмауэр подключения к удаленному рабочему столу. This assistant updates your system settings to enable remote access, ensures your computer is awake for connections, and checks that your firewall allows Remote Desktop connections.
Все версии Windows (устаревший метод) All versions of Windows (Legacy method)
Чтобы включить удаленный рабочий стол с помощью устаревших свойств системы, следуйте инструкциям по подключению к другому компьютеру с помощью удаленного рабочего стола. To enable Remote Desktop using the legacy system properties, follow the instructions to Connect to another computer using Remote Desktop Connection.
Следует ли включать удаленный рабочий стол? Should I enable Remote Desktop?
Если вы будете использовать свой компьютер, только когда непосредственно сидите за ним, вам не нужно включать удаленный рабочий стол. If you only want to access your PC when you are physically using it, you don’t need to enable Remote Desktop. Включение удаленного рабочего стола открывает порт на компьютере, видимый в локальной сети. Enabling Remote Desktop opens a port on your PC that is visible to your local network. Удаленный рабочий стол следует включать только в доверенных сетях, например, в домашней сети. You should only enable Remote Desktop in trusted networks, such as your home. Кроме того, не стоит включать удаленный рабочий стол на любом компьютере, доступ к которому строго контролируется. You also don’t want to enable Remote Desktop on any PC where access is tightly controlled.
Имейте в виду, что включив доступ к удаленному рабочему столу, вы предоставляете остальным пользователям в группе «Администраторы» и другим выбранным вами пользователям возможность удаленного доступа к их учетным записям на компьютере. Be aware that when you enable access to Remote Desktop, you are granting anyone in the Administrators group, as well as any additional users you select, the ability to remotely access their accounts on the computer.
Следует убедиться, что для каждой учетной записи, которая имеет доступ к вашему компьютеру, настроен надежный пароль. You should ensure that every account that has access to your PC is configured with a strong password.
Почему следует разрешать подключения только с проверкой подлинности на уровне сети? Why allow connections only with Network Level Authentication?
Если вы хотите ограничить доступ к компьютеру, разрешите доступ только с проверкой подлинности на уровне сети (NLA). If you want to restrict who can access your PC, choose to allow access only with Network Level Authentication (NLA). При включении этого параметра пользователи должны пройти аутентификацию в сети, чтобы подключиться к компьютеру. When you enable this option, users have to authenticate themselves to the network before they can connect to your PC. Разрешение подключений только с компьютеров с удаленным рабочим столом с NLA является более безопасным методом проверки подлинности, который поможет защитить компьютер от злоумышленников и вредоносных программ. Allowing connections only from computers running Remote Desktop with NLA is a more secure authentication method that can help protect your computer from malicious users and software. Чтобы узнать больше о NLA и удаленном рабочем столе, ознакомьтесь с разделом Configure Network Level Authentication for Remote Desktop Services Connections (Настройка NLA для подключения к удаленному рабочему столу). To learn more about NLA and Remote Desktop, check out Configure NLA for RDS Connections.
Если вы подключаетесь удаленно к компьютеру в своей домашней сети, не находясь в этой сети, не выбирайте этот параметр. If you’re remotely connecting to a PC on your home network from outside of that network, don’t select this option.
How do I restart a service on a remote machine in Windows? [closed]
Want to improve this question? Update the question so it’s on-topic for Stack Overflow.
Closed 7 years ago .
Sometimes while debugging, I need to restart a service on a remote machine. Currently, I’m doing this via Remote Desktop. How can it be done from the command line on my local machine?
8 Answers 8
You can use the services console, clicking on the left hand side and then selecting the «Connect to another computer» option in the Action menu.
If you wish to use the command line only, you can use
You can use mmc:
- Start / Run. Type «mmc».
- File / Add/Remove Snap-in. Click «Add. «
- Find «Services» and click «Add»
- Select «Another computer:» and type the host name / IP address of the remote machine. Click Finish, Close, etc.
At that point you will be able to manage services as if they were on your local machine.
You can use System Internals PSEXEC command to remotely execute a net stop yourservice, then net start yourservice
Using command line, you can do this:
I would suggest you to have a look at RSHD
You do not need to bother for a client, Windows has it by default.
Well, if you have Visual Studio (I know it’s in 2005, not sure about earlier versions though), you can add the remote machine to your «Server Explorer» tag. At that point, you’ll have access to the SERVICES that are running, or can be ran, from that machine (as well as event logs, and queues, and a couple other interesting things).
One way would be to enable telnet server on the machin you want to control services on (add/remove windows components)
Open dos prompt
Type telnet yourmachineip/name
Log on
type net start &serviceName* e.g. w3svc
This will start IIS or you can use net stop to stop a service.
Depending on your setup you need to look at a way of securing the telnet connection as I think its unencrypted.
Several good solutions here. If you’re still on Win2K and can’t install anything on the remote computer, this also works:
Open the Computer Management Console (right click My Computer, choose Manage; open from Administrative Tools in the Start Menu; or open from the MMC using the snap-in).
Right click on your computer name and choose «Connect to Remote Computer»
Put in the computer name and credentials and you have full access to many admin functions including the services control panel.
Simplest way to restart service on a remote computer
What’s the easiest programmatic way to restart a service on a remote Windows system? Language or method doesn’t matter as long as it doesn’t require human interaction.
11 Answers 11
As of Windows XP, you can use sc.exe to interact with local and remote services. Schedule a task to run a batch file similar to this:
Make sure the task runs under a user account privileged on the target server.
psservice.exe from the Sysinternals PSTools would also be doing the job:
DESCRIPTION: SC is a command line program used for communicating with the NT Service Controller and services. USAGE: sc [command] [service name] .
EXAMPLE: sc start MyService
If it doesn’t require human interaction which means there will be no UI that invokes this operation and I assume it would restart at some set interval? If you have access to machine, you could just set a scheduled task to execute a batch file using good old NET STOP and NET START
or if you want to get a little more sophisticated, you could try Powershell
There will be so many instances where the service will go in to «stop pending».The Operating system will complain that it was «Not able to stop the service xyz.» In case you want to make absolutely sure the service is restarted you should kill the process instead. You can do that by doing the following in a bat file
To find out which process is associated with your service, go to task manager—> Services tab—>Right Click on your Service—> Go to process.
Note that this should be a work around until you figure out why your service had to be restarted in the first place. You should look for memory leaks, infinite loops and other such conditions for your service to have become unresponsive.
5 Ways to Remotely Start and Stop Services over the Network
Computers in the home are obviously very common these days and it’s not unusual to find more than one Windows PC or laptop in a household. Perhaps the parents have the desktop PC and the kids use a laptop or you have desktop machines networked together in your office for work. With the increase in computers at your disposal comes an increase in looking after them when they developed a problem, need tweaking or don’t work as efficiently as they should.
One of the ways to work on another computer without physically being in front of it is of course via networking. Besides the obvious of being able to read and execute files on a remote computer or transferring files between computers, you can also perform more advanced maintenance tasks such as starting or stopping remote processes and even controlling Windows Services to be started, stopped or completely disabled.
Here we’ll show you some ways to view the status of Windows Services on a remote computer in addition to having the ability to start and stop them without leaving your own computer.
This program hasn’t been updated since 2009 but YAPM is one of few tools that can actually let you manage remote services from the comfort of a GUI. We have talked about the program before because of the remote process handling abilities, but it’s equally at home controlling services.
YAPM allows you to view the services and their details on the remote machine. It offers control of starting, stopping, or changing the startup type. There are two ways to remotely connect to another computer; either via the easier WMI interface, or launching a YAPM server process on the remote machine (this option doesn’t seem to work too well these days).
For ease of use, we’ll show the WMI option. Run YAPM and click the round Options button near the top left of the window, select “Change connection type” from the menu. This will bring up the connections window, click “Remote via WMI” followed by Disconnect, and then enter the remote computer name or IP address along with the remote admin’s username and password. Finally, click Connect and then Hide window.
In the main window, select the Services tab and after a few moments you should see all the services on the remote computer (refresh if not). Now you can view and control the remote services as if they’re on your own machine with buttons or context menu options to start, stop, set to autostart, on-demand startup (manual), or disable from starting. YAPM requires .NET 3.5 for Windows 10 users, a portable version is also available.
2. Application Access Server (A-A-S)
A-A-S is an old tool that actually boasts several powerful features. Sadly, it can be tricky to use and the official documentation isn’t very helpful. With the ability to launch Windows applications and enable/disable services remotely over the internet as well as a local network, A-A-S has good potential uses. A possible drawback is it needs to be configured and run entirely on the remote computer.
To get up and running quickly you don’t need to configure that much. First, run the program and click on Configure > User, highlight user admin in the list, and click change. Replace the password and optionally the username, click OK. You can also change the port from the default of 6262 to something like 80 which will get around firewall port restrictions. Press Start to launch the web server.
Now go to a computer on the network you wish to connect from and open a web browser. Enter the IP address of the computer with A-A-S on it in the address bar and append the port number (no need if you use port 80), so it would look something like:
You will then be prompted for the username and password of the user edited above. In the web interface, click the Services option on the left. The window will display the services on the remote computer along with their current status. Do note that A-A-S can’t tell the difference between a disabled service or just a stopped service. For this reason, when you press to Start a remote service it might not actually start because it’s startup state is set to Disabled.
Services with Manual or Automatic startup types will accept Start/Stop requests but Pause will likely fail. A-A-S offers extra security measures such as Silent or Stealth port options. Silent requires a keyword appended to the IP address and port while Stealthed uses a separate AAS_Login.exe tool. Services can also be started and stopped using command line tools like Net or SC, this can be done in the Application configuration window.
3. Controlling Remote Services via Command Prompt
The Windows built in SC command is basically a console based version of the Services MMC snap in. It does have a problem because there is no ability to log on as another user on the remote computer. Thankfully, combining SC with the NET USE command, we can connect to the remote computer and then perform service tasks. Bring up an admin Command Prompt (Start > type cmd > Ctrl+Shift+Enter) and then type the following:
Net Use \\computername password /User:username
The NET USE command first creates a connection to the remote computer with the credentials of one of its administrators. Then you can use the SC command to query the status of a service and start/stop or change its startup type. A few examples are:
Query whether the service is running or stopped:
SC \\computername Query servicename
Query the service startup type, path, display name, dependencies, and etc:
Start or stop a service:
SC \\computername Start|Stop servicename
Change the service startup type:
SC \\computername Config servicename start= Auto|Demand|Disabled
Note: The single space after “start=” is important and must not be omitted!
The above screenshot queries the Windows Update Service on the remote machine, starts it, and then queries it again to check the service has started. More information on how to use the SC command can be found at Microsoft Technet or third party sites like SS64.Com.
If you wish to terminate the connection with the remote computer, either reboot the computer or run “Net Use \\computername /Delete”.
4. Sysinternals PsService (part of PsTools)
The Microsoft owned developer Sysinternals has a set of command line utilities for local and remote administration called PsTools. One of the included tools is PsService and it’s specifically made to handle remote services. The advantage this tool has over SC is the option to supply the user name and password of a user on the remote machine, so the NET command isn’t needed. The syntax is:
Psservice \\computername -u username -p password command options
As PsService supplies user credentials as arguments, you don’t need to include the Net Use command. The basic commands are broadly the same as the Windows SC utility such as query, config, start, stop, and etc. Here are a few examples for handling the Windows Search Service:
Query the service:
Psservice \\computername -u admin -p pass Query wsearch
Query the startup configuration of the service:
Psservice \\computername -u admin -p pass Config wsearch
Start or stop the service:
Psservice \\computername -u admin -p pass Start|Stop wsearch
Set the startup type of the service:
Psservice \\computername -u admin -p pass Setconfig wsearch Auto|Disabled|Demand
The above image stops the Windows Search Service and then disables it. To completely disable a service, make sure to stop it before setting its startup type. The full list of syntax and arguments can be found in the included help document or on the SysInternals website.
5. Services/Computer Management Console
This method might be the easiest to use because it doesn’t rely on third party tools or the command line and is built into Windows. However, it can also be a bit of a pain on some systems and there’s a chance you will get errors or connection problems.
a) Press the Windows key and type “services” to open the Control Panel Services applet. Alternatively, type Services.msc into the Win+R Run dialog. Go to the Action menu > “Connect to another computer”.
b) Click Browse and enter the name of the remote computer in the object name box. Press OK and you will be prompted for the username and password of an account on the remote computer.
If you can’t remember the remote computer’s name, click Browse > Advanced > Find now. This will show a list of computers in the local workgroup where you can find the PC you want to connect with. Click OK to get back to the main window.
c) The Services window should now have the remote computer’s name in the console tree instead of Local. From there, all you have to do is expand “Services and Applications” and go to Services.
The remote Services Control Panel applet works with services in the exact same way as if you was controlling services on the local machine.
Finding Windows Service Names
Windows has more than one name for each service; the Service name and its Display Name. For example, “Windows Update” is the display name for the Windows Update Service, Wuauserv is the service name.
The easiest way to use these tools is with the shorter service name, you can find names for services on your own computer if you’re not sure, open Task Manager and go to the Services tab, the Name column gives the name you need to use.