I did the following to try to circumvent users from modifying the configuration:
Made the file a system and hidden file (works good)
Code: Select all
UltraVNC.ini" +s +h
The problem is after i do a silent install via (... with the service stoped and installed as a service)
Code: Select all
UltraVNC_1.1.9.6_32bit.exe /verysilent /norestart /loadinf="c:\UltraVNC.ini"
Code: Select all
echo "Y" | cacls "C:\Program Files\Uvnc bvba\UltraVNC\UltraVNC.ini" /e /g "DOMAINNAME\Domain Admins":F
icacls "C:\Program Files\Uvnc bvba\UltraVNC\UltraVNC.ini" /inheritance:r /grant:r ADMINACCOUNTNAME:(OI)(CI)F /T
Takeown /f "C:\Program Files\Uvnc bvba\UltraVNC\UltraVNC.ini"
icacls "C:\Program Files\Uvnc bvba\UltraVNC\UltraVNC.ini" /Grant ADMINACCOUNTNAME:F
icacls "C:\Program Files\Uvnc bvba\UltraVNC\UltraVNC.ini" /Grant DOMAINNAME\ADMINACCOUNTNAME:F
icacls "C:\Program Files\Uvnc bvba\UltraVNC\UltraVNC.ini" /Grant USERS:R
icacls "C:\Program Files\Uvnc bvba\UltraVNC\UltraVNC.ini" /REMOVE:g Administrators
Is there a way around this prompt?