应用平台 APPSTAGE-纳管Windows主机:步骤二:初始化主机

时间:2025-02-26 09:21:31

步骤二:初始化主机

  1. 使用Administrator管理员账号密码登录Windows主机。
  2. 使用管理员身份打开powershell,执行如下脚本:

    Set-ExecutionPolicy RemoteSigned -Force;
    winrm quickconfig -q -force;
    winrm set winrm/config/service/auth '@{Basic="true"}';
    winrm set winrm/config/service '@{AllowUnencrypted="true"}';
    New-NetFirewallRule -Name Ansible -DisplayName Ansible -Enabled True -Action Allow -Protocol TCP -LocalPort 5985 -Direction InBound

support.huaweicloud.com/usermanual-wiseeye/appstage_04_1327.html