Задача: настроить Hyper-V сервер, у которого отключен RDP.
Подключаемся к PowerShell удаленного Hyper-V сервера.
Подключаемся к PowerShell удаленного Hyper-V сервера.
enter-pssession ComputerNameДалее мне поможет скрипт:
REM Copyright 2007, 2008 Charlie Russel and Sharon Crawford. All rights reserved. REM Use netsh to enable remote management through the firewall for REM all profiles. This is the minimum to allow using remote MMCs to work REM from other computers on the network. netsh advfirewall set allprofiles settings remotemanagement enable REM allow remote administration group netsh advfirewall firewall set rule group="Remote Administration" new enable=yes REM Allow remote desktop through firewall netsh advfirewall firewall set rule group="Remote Desktop" new enable=yes REM Enable Remote Desktop for Administration, and allow REM downlevel clients to connect cscript %windir%\system32\scregedit.wsf /AR 0 cscript %windir%\system32\scregedit.wsf /CS 0 REM Now, run the WinRM configuration script. -q is for quiet. winrm quickconfig -qЗавершаю сессию:
> exit-pssession
Комментариев нет:
Отправить комментарий