This shows you the differences between two versions of the page.
userspace:dellbios [2015/09/14 11:50] tobias [Dell Bios Settings v2] |
userspace:dellbios [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== DellBios ====== | ||
- | |||
- | Tested with opsi 4.0.4.5\\ | ||
- | requiredWinstVersion >= 4.11.3.6\\ | ||
- | |||
- | You need the Dell CCTK\\ | ||
- | Files can be downloaded at http:// | ||
- | |||
- | Tree:\\ | ||
- | < | ||
- | DATA_CLIENT | ||
- | ├ setup.ins | ||
- | └ bin | ||
- | ├ cctk.exe | ||
- | ├ mxml1.dll | ||
- | ├ pci.ids | ||
- | └ HAPI | ||
- | ├ dcdbas32.cat | ||
- | . | ||
- | . | ||
- | . | ||
- | └ omsacntl.exe | ||
- | OPSI | ||
- | └ control | ||
- | |||
- | </ | ||
- | |||
- | ===== Abstract ===== | ||
- | \\ | ||
- | This package can read and set some Dell BIOS Values\\ | ||
- | \\ | ||
- | Supported Values:\\ | ||
- | \\ | ||
- | Password\\ | ||
- | wake on LAN\\ | ||
- | control wlan radio\\ | ||
- | control wwan radio\\ | ||
- | num lock\\ | ||
- | \\ | ||
- | Simple installation of this package makes an audit of\\ | ||
- | currently set BIOS Values and reports the state back\\ | ||
- | into the opsi package properties (it also reports if this\\ | ||
- | BIOS property is available on the specific computer hardware)\\ | ||
- | \\ | ||
- | To set BIOS values the _set_bios property must be true.\\ | ||
- | \\ | ||
- | To set the bios password use the password new property\\ | ||
- | if the password is set correctly this value gets cleared\\ | ||
- | and the new password is automatically entered into the\\ | ||
- | password property field.\\ | ||
- | \\ | ||
- | if the Value in the password field is wrong (or the BIOS\\ | ||
- | password is set but not properly configured in the\\ | ||
- | opsi Package) -–password required–- or -–password wrong–-\\ | ||
- | will be reported in this field.\\ | ||
- | \\ | ||
- | ===== Install Information ===== | ||
- | \\ | ||
- | Install the Dell CCTK on a development Computer and copy the\\ | ||
- | %Programfiles%\Dell\CCTK\x86 or %Programfiles%\Dell\CCTK\x64\\ | ||
- | into the DATA_CLIENT bin folder | ||
- | |||
- | === setup.ins === | ||
- | <code winst> | ||
- | [Initial] | ||
- | ExitOnError=true | ||
- | StayOnTop = true | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $ReportProperty$ | ||
- | DefVar $ReportValue$ | ||
- | |||
- | DefVar $CommandValue$ | ||
- | DefStringList $CommandResult$ | ||
- | DefVar $CommandResultValue$ | ||
- | |||
- | DefVar $SetBios$ | ||
- | DefVar $PwdNew$ | ||
- | DefVar $PwdBIOS$ | ||
- | |||
- | DefVar $PwrMgmtWOL$ | ||
- | DefVar $PwrMgmtConrolWLAN$ | ||
- | DefVar $PwrMgmtConrolWWAN$ | ||
- | |||
- | DefVar $PostBehaviorNumLock$ | ||
- | |||
- | set $SetBios$ | ||
- | set $PwdNew$ | ||
- | set $PwdBIOS$ | ||
- | |||
- | set $PwrMgmtWOL$ =GetProductProperty(" | ||
- | set $PwrMgmtConrolWLAN$ =GetProductProperty(" | ||
- | set $PwrMgmtConrolWWAN$ =GetProductProperty(" | ||
- | |||
- | set $PostBehaviorNumLock$ =GetProductProperty(" | ||
- | |||
- | ; Install the BIOS comunication driver | ||
- | DosInAnIcon_HAPIInstall | ||
- | |||
- | ;if password is one of the reported Values from password state set it blank | ||
- | if ($PwdBIOS$=" | ||
- | set $PwdBIOS$=" | ||
- | endif | ||
- | if ($PwdBIOS$=" | ||
- | set $PwdBIOS$=" | ||
- | endif | ||
- | |||
- | ;Get Password State | ||
- | set $CommandValue$ = ' | ||
- | set $CommandResult$ = getOutStreamFromSection(' | ||
- | set $CommandResultValue$ = getValue (" | ||
- | |||
- | if (getLastExitCode = " | ||
- | ;toggle Value to get the errorcode | ||
- | if ($CommandResultValue$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | else | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | | ||
- | set $ReportProperty$ =" | ||
- | if (getLastExitCode = " | ||
- | ; 191 password required | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if (getLastExitCode = " | ||
- | ; 157 password wrong | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | endif | ||
- | |||
- | |||
- | ; Set Password | ||
- | if ($PwdNew$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | if (getLastExitCode = " | ||
- | | ||
- | set $ReportProperty$ =" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | | ||
- | set $ReportProperty$ =" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | else | ||
- | set $ReportProperty$ =" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | else | ||
- | if (not ($PwdNew$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | if (getLastExitCode = " | ||
- | | ||
- | set $ReportProperty$ =" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | | ||
- | set $ReportProperty$ =" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | |||
- | set $PwdBIOS$=$PwdNew$ | ||
- | set $PwdNew$="" | ||
- | |||
- | else | ||
- | set $ReportProperty$ =" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | |||
- | if ($SetBios$=" | ||
- | ;Set Value | ||
- | ;wake on LAN | ||
- | if ($PwrMgmtWOL$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PwrMgmtWOL$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PwrMgmtWOL$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PwrMgmtWOL$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PwrMgmtWOL$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PwrMgmtWOL$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PwrMgmtWOL$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | |||
- | ;Control WLAN Radio | ||
- | if ($PwrMgmtConrolWLAN$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PwrMgmtConrolWLAN$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | | ||
- | ;Control WWAN Radio | ||
- | if ($PwrMgmtConrolWWAN$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PwrMgmtConrolWWAN$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | | ||
- | ;Num lock | ||
- | if ($PostBehaviorNumLock$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | if ($PostBehaviorNumLock$=" | ||
- | set $CommandValue$ = ' | ||
- | DosInAnIcon_BiosCommand | ||
- | endif | ||
- | | ||
- | ;Clear set BIOS flag | ||
- | set $ReportProperty$ =" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | ;Report | ||
- | ;wake on LAN | ||
- | set $CommandValue$ = ' | ||
- | set $CommandResult$ = getOutStreamFromSection(' | ||
- | set $CommandResultValue$ = getValue (" | ||
- | | ||
- | set $ReportProperty$ =" | ||
- | if (not (getLastExitCode = " | ||
- | ;An Error occured do some Errorhandling | ||
- | if (getLastExitCode = " | ||
- | ; 119 means funktion not supported by this Computer | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | else | ||
- | ;No Error occured so report Value | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | |||
- | endif | ||
- | | ||
- | ;Control WLAN Radio | ||
- | set $CommandValue$ = ' | ||
- | set $CommandResult$ = getOutStreamFromSection(' | ||
- | set $CommandResultValue$ = getValue (" | ||
- | |||
- | set $ReportProperty$ =" | ||
- | if (not (getLastExitCode = " | ||
- | ;An Error occured do some Errorhandling | ||
- | if (getLastExitCode = " | ||
- | ; 119 means funktion not supported by this Computer | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | else | ||
- | ;No Error occured so report Value | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | endif | ||
- | | ||
- | ;Control WWAN Radio | ||
- | set $CommandValue$ = ' | ||
- | set $CommandResult$ = getOutStreamFromSection(' | ||
- | set $CommandResultValue$ = getValue (" | ||
- | | ||
- | set $ReportProperty$ =" | ||
- | if (not (getLastExitCode = " | ||
- | ;An Error occured do some Errorhandling | ||
- | if (getLastExitCode = " | ||
- | ; 119 means funktion not supported by this Computer | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | else | ||
- | ;No Error occured so report Value | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | endif | ||
- | | ||
- | ;Num Lock | ||
- | set $CommandValue$ = ' | ||
- | set $CommandResult$ = getOutStreamFromSection(' | ||
- | set $CommandResultValue$ = getValue (" | ||
- | | ||
- | set $ReportProperty$ =" | ||
- | if (not (getLastExitCode = " | ||
- | ;An Error occured do some Errorhandling | ||
- | if (getLastExitCode = " | ||
- | ; 119 means funktion not supported by this Computer | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | else | ||
- | ;No Error occured so report Value | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | if ($CommandResultValue$=" | ||
- | set $ReportValue$ | ||
- | opsiServiceCall_configState_Report | ||
- | endif | ||
- | endif | ||
- | |||
- | ; Uninstall the BIOS comunication driver | ||
- | DosInAnIcon_HAPIUninstall | ||
- | |||
- | [Sub_configState_Report] | ||
- | |||
- | markErrorNumber | ||
- | opsiServiceCall_configState_Report | ||
- | if errorsOccuredSinceMark > 0 | ||
- | | ||
- | endif | ||
- | |||
- | set $ReportProperty$ ="" | ||
- | set $ReportValue$ | ||
- | |||
- | [opsiServiceCall_configState_Report] | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ] | ||
- | |||
- | [DosInAnIcon_BiosCommand] | ||
- | @echo off | ||
- | if " | ||
- | if not " | ||
- | exit %ERRORLEVEL% | ||
- | |||
- | [DosInAnIcon_BiosQuery] | ||
- | @echo off | ||
- | %ScriptPath%\bin\cctk | ||
- | exit %ERRORLEVEL% | ||
- | |||
- | [DosInAnIcon_HAPIInstall] | ||
- | " | ||
- | |||
- | [DosInAnIcon_HAPIUninstall] | ||
- | " | ||
- | </ | ||
- | === control === | ||
- | <code winst> | ||
- | [Package] | ||
- | version: 1 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: dellbios | ||
- | name: DellBIOS | ||
- | description: | ||
- | advice: | ||
- | version: 1.0 | ||
- | priority: 0 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: _set_bios | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: password | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | default: [" "] | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: password_new | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | values: [" | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: pwr-management_wake-on-lan | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" ", " | ||
- | default: [" "] | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: pwr-management_control-wlan-radio | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" ", " | ||
- | default: [" "] | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: pwr-management_control-wwan-radio | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" ", " | ||
- | default: [" "] | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: post-behavior_num-lock | ||
- | multivalue: False | ||
- | editable: False | ||
- | description: | ||
- | values: [" ", " | ||
- | default: [" "] | ||
- | |||
- | [Changelog] | ||
- | dellbios (1.0-1) testing; urgency=low | ||
- | |||
- | * Initial package | ||
- | |||
- | -- HL <> | ||
- | </ | ||
- | |||
- | |||
- | ====== Dell Bios Settings v2 ====== | ||
- | |||
- | Da ich nicht gesehen habe das es so eine Art Script schon im WIKI gibt, habe ich ein eigenes geschrieben. Allerdings mit anderen Optionen. | ||
- | Das Script ist in der Lage folgende BIOS Einstellungen vorzunehmen. | ||
- | |||
- | * Festplatten Kennwort setzen oder Löschen | ||
- | * Systempasswort (BIOS Passwort) zu setzen oder zu löschen | ||
- | * Wake On LAN Einstellungen vornehmen. | ||
- | |||
- | Weitere Einstellungen baue ich auf Wunsch mit aufgenommen (Anfrage per Private Message im Forum an Tobias). | ||
- | |||
- | Verfügbare Einstellungen: | ||
- | http:// | ||
- | |||
- | |||
- | |||
- | Tree:\\ | ||
- | < | ||
- | ├── CLIENT_DATA | ||
- | │ ├── cctkerrorcodes.txt | ||
- | │ ├── custom | ||
- | │ ├── files | ||
- | │ │ ├── x86 | ||
- | │ │ │ ├── cctk.exe | ||
- | │ │ │ ├── cctk_x86_winpe_10.bat | ||
- | │ │ │ ├── cctk_x86_WinPE_3.bat | ||
- | │ │ │ ├── cctk_x86_winpe_4.bat | ||
- | │ │ │ ├── cctk_x86_winpe_5.bat | ||
- | │ │ │ ├── cctk_x86_WinPE.bat | ||
- | │ │ │ ├── HAPI | ||
- | │ │ │ │ ├── dcdbas32.cat | ||
- | │ │ │ │ ├── dcdbas32.inf | ||
- | │ │ │ │ ├── dcdbas32.sys | ||
- | │ │ │ │ ├── dcdesm32.sys | ||
- | │ │ │ │ ├── dcdipm32.sys | ||
- | │ │ │ │ ├── dcdtvm32.sys | ||
- | │ │ │ │ ├── dcesm.sys | ||
- | │ │ │ │ ├── dcesmwdm.sys | ||
- | │ │ │ │ ├── dchapi32.dll | ||
- | │ │ │ │ ├── dchbas32.dll | ||
- | │ │ │ │ ├── dchcfg32.exe | ||
- | │ │ │ │ ├── dchcfl32.dll | ||
- | │ │ │ │ ├── dchesm32.dll | ||
- | │ │ │ │ ├── dchipm32.dll | ||
- | │ │ │ │ ├── dchtst32.exe | ||
- | │ │ │ │ ├── dchtvm32.dll | ||
- | │ │ │ │ ├── dciwds32.exe | ||
- | │ │ │ │ ├── dcmdev32.exe | ||
- | │ │ │ │ ├── dcwipm32.dll | ||
- | │ │ │ │ ├── HAPIInstall.bat | ||
- | │ │ │ │ ├── hapint.exe | ||
- | │ │ │ │ ├── HAPIUninstall.bat | ||
- | │ │ │ │ └── omsacntl.exe | ||
- | │ │ │ ├── mxml1.dll | ||
- | │ │ │ └── pci.ids | ||
- | │ │ └── X86_64 | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ ├── setup3264.opsiscript | ||
- | </ | ||
- | |||
- | ===== Script: Setup3264.opsiscript ===== | ||
- | |||
- | < | ||
- | [ACTIONS] | ||
- | SetLogLevel = 6 | ||
- | |||
- | DefVar $INST_SystemType$ | ||
- | DefVar $INST_architecture$ | ||
- | DefVar $ExitCode$ | ||
- | DefStringList $ErrorCodesList$ | ||
- | set $ErrorCodesList$ = loadTextFile (' | ||
- | DefStringList $ErrorCodeString$ | ||
- | DefVar $ErrorCode$ | ||
- | DefVar $ErrorCodeDescription$ | ||
- | |||
- | Set $INST_SystemType$ = GetSystemType | ||
- | |||
- | DefVar $RebootWanted$ | ||
- | Set $RebootWanted$ = GetProductProperty(" | ||
- | |||
- | |||
- | |||
- | DefVar $SetHDDPassword$ | ||
- | Set $SetHDDPassword$ = GetProductProperty(" | ||
- | Defvar $HDDPWDOptions$ | ||
- | |||
- | DefVar $HDDPassword$ | ||
- | Set $HDDPassword$ = GetProductProperty(" | ||
- | |||
- | DefVar $currentHDDPassword$ | ||
- | Set $currentHDDPassword$ = GetProductProperty(" | ||
- | |||
- | |||
- | |||
- | DefVar $SetBIOSPassword$ | ||
- | Set $SetBIOSPassword$ = GetProductProperty(" | ||
- | DefVar $BIOSPWDOptions$ | ||
- | |||
- | DefVar $BIOSPassword$ | ||
- | Set $BIOSPassword$ = GetProductProperty(" | ||
- | |||
- | DefVar $CurrentBIOSPassword$ | ||
- | Set $CurrentBIOSPassword$ = GetProductProperty(" | ||
- | |||
- | |||
- | |||
- | DefVar $SetWOL$ | ||
- | Set $SetWOL$ = | ||
- | |||
- | DefVar $WOL$ | ||
- | Set $WOL$ = GetProductProperty(" | ||
- | |||
- | DefVar $Change_HDDPassword$ | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - 64Bit - | ||
- | ; ---------------------------------------------------------------- | ||
- | if $INST_SystemType$ = "64 Bit System" | ||
- | if $SetHDDPassword$ = " | ||
- | if NOT ($CurrentHDDPassword$ = " ") | ||
- | set $HDDPWDOptions$ = " | ||
- | else | ||
- | set $HDDPWDOptions$ | ||
- | endif | ||
- | Winbatch_BIOS_Config_HDDPWD_x64 | ||
- | set $exitcode$ = getLastExitcode | ||
- | for %s% in $ErrorCodesList$ do Sub_Check_Exitcode | ||
- | opsiServiceCall_report_new_HDD_password | ||
- | |||
- | endif | ||
- | |||
- | if $SetBIOSPassword$ = " | ||
- | if NOT ($CurrentHDDPassword$ = " ") | ||
- | set $BIOSPWDOptions$ = " | ||
- | else | ||
- | set $BIOSPWDOptions$ | ||
- | endif | ||
- | Winbatch_BIOS_Config_BIOSPWD_x64 | ||
- | set $exitcode$ = getLastExitcode | ||
- | for %s% in $ErrorCodesList$ do Sub_Check_Exitcode | ||
- | opsiServiceCall_report_new_BIOS_password | ||
- | |||
- | endif | ||
- | |||
- | if $SetWOL$ = " | ||
- | Winbatch_BIOS_Config_WOL_x64 | ||
- | set $exitcode$ = getLastExitcode | ||
- | for %s% in $ErrorCodesList$ do Sub_Check_Exitcode | ||
- | |||
- | |||
- | endif | ||
- | endif | ||
- | |||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - 32Bit - | ||
- | ; ---------------------------------------------------------------- | ||
- | if $INST_SystemType$ = "x86 System" | ||
- | if $SetHDDPassword$ = " | ||
- | Winbatch_BIOS_Config_HDDPWD_x64 | ||
- | set $exitcode$ = getLastExitcode | ||
- | for %s% in $ErrorCodesList$ do Sub_Check_Exitcode | ||
- | opsiServiceCall_report_new_HDD_password | ||
- | endif | ||
- | |||
- | |||
- | if $SetBIOSPassword$ = " | ||
- | Winbatch_BIOS_Config_BIOSPWD_x64 | ||
- | set $exitcode$ = getLastExitcode | ||
- | for %s% in $ErrorCodesList$ do Sub_Check_Exitcode | ||
- | opsiServiceCall_report_new_BIOS_password | ||
- | endif | ||
- | |||
- | |||
- | if $SetWOL$ = " | ||
- | Winbatch_BIOS_Config_WOL_x64 | ||
- | set $exitcode$ = getLastExitcode | ||
- | for %s% in $ErrorCodesList$ do Sub_Check_Exitcode | ||
- | endif | ||
- | endif | ||
- | |||
- | |||
- | if $RebootWanted$ = " | ||
- | ExitWindows /Reboot | ||
- | endif | ||
- | |||
- | |||
- | [Winbatch_BIOS_Config_HDDPWD_x64] | ||
- | %scriptpath%\files\x86_64\cctk.exe $HDDPWDOptions$ | ||
- | |||
- | [Winbatch_BIOS_Config_BIOSPWD_x64] | ||
- | %scriptpath%\files\x86_64\cctk.exe $BIOSPWDOptions$ | ||
- | |||
- | [Winbatch_BIOS_Config_WOL_x64] | ||
- | %scriptpath%\files\x86_64\cctk.exe --wakeonlan=$WOL$ --valsetuppwd=$CurrentBIOSPassword$ | ||
- | |||
- | |||
- | [opsiServiceCall_report_new_BIOS_password] | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ] | ||
- | |||
- | |||
- | [opsiServiceCall_report_new_HDD_password] | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ] | ||
- | |||
- | |||
- | [Sub_Check_Exitcode] | ||
- | SetLogLevel = 5 | ||
- | if takeString(0, | ||
- | if not ($ExitCode$ = " | ||
- | LogError takeString(1, | ||
- | isFatalError $ExitCode$ | ||
- | else | ||
- | message "BIOS Command was Successful" | ||
- | EndIf | ||
- | endif | ||
- | </ | ||