iDRAC6_JKVM/Windows/connect_idrac_kvm.bat
2020-03-16 14:21:38 -05:00

13 lines
648 B
Batchfile

@echo off
set /P drachost="Host: "
set /p dracuser="Username: "
set /p dracpwd="Password: "
ECHO Grabbing avctKVM.jar from host...
powershell.exe -Command "[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} ; $WebClient = New-Object System.Net.WebClient ; $WebClient.DownloadFile('https://%drachost%/software/avctKVM.jar','.\avctKVM.jar')"
ECHO Executing JKVM Client...
java -cp avctKVM.jar -Djava.library.path=.\lib com.avocent.idrac.kvm.Main ip=%drachost% kmport=5900 vport=5900 user=%dracuser% passwd=%dracpwd% apcp=1 version=2 vmprivilege=true "helpurl=https://%drachost%:443/help/contents.html"
del avctKVM.jar