-
-
Save dot-Sean/a6e16b38298a9b64d064d4a1c053b0a3 to your computer and use it in GitHub Desktop.
IDRAC6 Virtual Console Launcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| set /P drachost="Host: " | |
| set /p dracuser="Username: " | |
| set "psCommand=powershell -Command "$pword = read-host 'Enter Password' -AsSecureString ; ^ | |
| $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^ | |
| [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)"" | |
| for /f "usebackq delims=" %%p in (`%psCommand%`) do set dracpwd=%%p | |
| .\jre\bin\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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment