Jump to content


Steffen

Problems to enable TPM Chip/Bitlocker with Lenovo

Recommended Posts

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

post-20287-0-38748200-1369315400_thumb.jpg
post-20287-0-82532100-1369315400_thumb.jpg

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.

post-20287-0-50731500-1369315257_thumb.jpg

 

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

 

 

 

post-20287-0-50731500-1369315257_thumb.jpg

post-20287-0-38748200-1369315400_thumb.jpg

post-20287-0-82532100-1369315400_thumb.jpg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.