none
Ultra Vnc GPO RRS feed

  • Pergunta

  • Oi Boa tarde,

    Preciso de uma ajuda referente a instalação, configuração  do ultravnc, via gpo.

    Vim no video do you tudo seguindo o link https://www.youtube.com/watch?v=YJvBm8Q6j8s

    segue abaixo o script.



    @echo off

    REM Nome do Servidor onde tem a instalação do ULTRAVNC
    set DeployServer=\\dominio.local\NETLOGON\pasta\ULTRAVNC\

     
    REM VERIFICA SE ULTRAVNC ESTA INSTALADO

    if exist "C:\Program Files\UltraVNC" GOTO SAIR

    if not exist "C:\Program Files\UltraVNC" (
    mkdir "C:\Program Files\UltraVNC"
    )

    REM *********************************************************************
    REM VERIFICO SE O SO É 32BITS OU 64 BITS
    IF NOT "%ProgramFiles(x86)%"=="" (goto X64) else (goto X86)

     
    :X64

    copy /Y "%DeployServer%SCHook.dll" "C:\Program Files\UltraVNC\SCHook.dll"
    copy /Y "%DeployServer%SCHook64.dll" "C:\Program Files\UltraVNC\SCHook64.dll"
    copy /Y "%DeployServer%acl.txt" "C:\Program Files\UltraVNC\acl.txt"


    start /wait %DeployServer%UltraVNC_1_2_12_X64_Setup.exe /verysilent /loadinf=%DeployServer%vncserver.inf /norestart 


    copy /Y "%DeployServer%ultravnc.ini" "C:\Program Files\UltraVNC\ultravnc.ini"
    "%ProgramFiles%\UltraVNC\MSLogonACL.exe" /i /o "C:\Program Files\UltraVNC\acl.txt"

    net stop uvnc_service
    net start uvnc_service
    rd /s /q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\UltraVNC\"
    exit

     
    :X86

    ccopy /Y "%DeployServer%SCHook.dll" "C:\Program Files\UltraVNC\SCHook.dll"
    copy /Y "%DeployServer%SCHook64.dll" "C:\Program Files\UltraVNC\SCHook64.dll"
    copy /Y "%DeployServer%acl.txt" "C:\Program Files\UltraVNC\acl.txt"


    start /wait %DeployServer%UltraVNC_1_2_12_X86_Setup.exe /verysilent /loadinf=%DeployServer%vncserver.inf /norestart

    copy /Y "%DeployServer%ultravnc.ini" "C:\Program Files\UltraVNC\ultravnc.ini"
    "%ProgramFiles%\UltraVNC\MSLogonACL.exe" /i /o "C:\Program Files\UltraVNC\acl.txt"

    net stop uvnc_service
    net start uvnc_service
    rd /s /q "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\UltraVNC\"
    exit 

    :SAIR
    exit 

    quinta-feira, 12 de novembro de 2020 16:13