The password is now auto generated, AES256 encrypted and stored under /jboss/bin/wfa.conf.
You can however grab it on the fly with this function
function Get-WFAUserPassword () { $InstallDir = (Get-ItemProperty -Path HKLM:\Software\NetApp\WFA -Name WFAInstallDir).WFAInstallDir $string = Get-Content $InstallDir\jboss\bin\wfa.conf | Where-Object { $_.Contains("WFAUSER") } $mysplit = $string.split(":") $var = $mysplit[1] cd $InstallDir\bin\supportfiles\ $string = echo $var | .\openssl.exe enc -aes-256-cbc -a -d -salt -pass pass:netapp return $string }
No comments :
Post a Comment