Search the Community
Showing results for tags 'TPM Chip Bitlocker enable'.
-
Hi guys, i have problems to enable Bitlocker in my Task Sequence. I use Lenovo devices T410, T420 and T430. I made some tests and the result is: If i open a cmd windows in the tasksequence and run the command manual, browse to the location of the script on SCCM “Cscript.exe SetConfig.vbs SecurityChip Active” it works fine and the chip is enabled Setconfig.vbs ' ' Set specific BIOS Setting ' On Error Resume Next Dim colItems If WScript.Arguments.Count <> 2 Then WScript.Echo "SetConfig.vbs [setting] [value]" WScript.Quit End If strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) + ";" strComputer = "LOCALHOST" ' Change as needed. Set objWMIService = GetObject("WinMgmts:" _ &"{ImpersonationLevel=Impersonate}!\\" & strComputer & "\root\wmi") Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SetBiosSetting") For Each objItem in colItems ObjItem.SetBiosSetting strRequest, strReturn Next WScript.Echo strRequest WScript.Echo " SetBiosSetting: " + strReturn If strReturn <> "Success" Then WScript.Quit End If Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings") strReturn = "error" For Each objItem in colItems ObjItem.SaveBiosSettings ";", strReturn Next WScript.Echo strRequest WScript.Echo " SaveBiosSettings: " + strReturn Than i create a softwarepackage “Bitlocker aktivierung” with Source Folder \\Server\Share\Locationofvbs and the following programs “Bitlocker aktivierung" ” Commandline setconfig.vbs Than I edit my TaskSequence, add a Run Command Line step: Cscript.exe SetConfig.vbs SecurityChip Active and I enable Packages and choose my “Enable bitlocker” package. Than I deploy it, but it don't work: I get the error message at step activate security chip: Task Sequence has failed with the error code (0x80041017). For more informations, contact.... Any ideas? Many thanks in advance for your ideas Cheers, Steffen