Thank you everyone for the reply.
While i was doing the research on this i realized that it not possible to retrieve the password, but found a way for HP machines to find out if BIOS password is set or not. Below is the VB script, hope this may be helpful for the needy. If this script return 0 then pwd not set and if 1 then pwd is set.
Const wbemFlagReturnImmediately = 16 Const wbemFlagForwardOnly = 32 lFlags = wbemFlagReturnImmediately + wbemFlagForwardOnly strService = "winmgmts:{impersonationlevel=impersonate}//" strComputer = "." strNamespace = "/root/HP/InstrumentedBIOS" strQuery = "select * from HP_BIOSSetting" Set objWMIService = GetObject(strService & strComputer & _ strNamespace) Set colItems = objWMIService.ExecQuery(strQuery,,lFlags) Counter = 1 For Each objItem In colItems if objItem.Name="Setup Password" then WScript.Echo objItem.Name & _" = " & objItem.IsSet End If Next