Steffen Posted May 23, 2013 Report post Posted May 23, 2013 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 NextDim colItems If WScript.Arguments.Count <> 2 ThenWScript.Echo "SetConfig.vbs [setting] [value]"WScript.QuitEnd 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 colItemsObjItem.SetBiosSetting strRequest, strReturnNext WScript.Echo strRequestWScript.Echo " SetBiosSetting: " + strReturn If strReturn <> "Success" ThenWScript.QuitEnd If Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SaveBiosSettings") strReturn = "error"For Each objItem in colItemsObjItem.SaveBiosSettings ";", strReturnNext WScript.Echo strRequestWScript.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 Quote Share this post Link to post Share on other sites More sharing options...
Peter33 Posted May 27, 2013 Report post Posted May 27, 2013 Try the following syntax cscript SetConfig.vbs SecurityChip Active BIOSPASSWORD,ascii,us Quote Share this post Link to post Share on other sites More sharing options...