iDRAC6_JKVM/connect_idrac_kvm.bat
Kyle Hagerty ad35c4895e Windows
2020-03-16 18:39:36 +00:00

12 lines
629 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')"
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