change your script partition size to match the actual size you are using (350mb) should be ok then
On Wed, Oct 9, 2013 at 10:48 PM, Avery, James < [email protected]> wrote: > > > Niall,**** > > ** ** > > I’m configuring the following blog on my task sequence. However, when I > set the “Bitlocker Partition not Found” to “Bitlocker_Partition=False” and > “Bitlocker Partition Found” to “Bitlocker_Partition=True” it seems to find > both equaling to FALSE. However, you stated, “The script sets a variable > called *BitLocker_Partition* to *True* if it detects that the partition > is the same size as you specified.”**** > > ** ** > > Can you help please?**** > > ** ** > > > http://www.niallbrady.com/2012/04/10/how-can-i-determine-if-the-prepare-disc-for-bitlocker-partition-creation-was-successful/ > **** > > ** ** > > ** ** > > *Bitlocker Partition not found* > > Start executing an instruction. Instruction name: Bitlocker Partition not > found. Instruction pointer: 2 TSManager 10/9/2013 2:59:09 > PM 4668 (0x123C)**** > > Set a global environment variable _SMSTSCurrentActionName=Bitlocker > Partition not found TSManager 10/9/2013 2:59:09 > PM 4668 (0x123C)**** > > Set a global environment variable _SMSTSNextInstructionPointer=2 > TSManager 10/9/2013 2:59:09 PM 4668 (0x123C)**** > > Evaluating an AND expression TSManager 10/9/2013 2:59:09 > PM 4668 (0x123C)**** > > Evaluating a variable condition expression TSManager 10/9/2013 > 2:59:09 PM 4668 (0x123C)**** > > Expand a string: equals TSManager 10/9/2013 2:59:09 > PM 4668 (0x123C)**** > > Expand a string: Bitlocker_Partition TSManager 10/9/2013 2:59:09 > PM 4668 (0x123C)**** > > Expand a string: False TSManager 10/9/2013 2:59:09 PM > 4668 (0x123C)**** > > The group (Bitlocker Partition not found) has been skipped because the > condition is evaluated to be false TSManager 10/9/2013 > 2:59:09 PM 4668 (0x123C)**** > > Set authenticator in transport TSManager 10/9/2013 2:59:09 > PM 4668 (0x123C)**** > > Execution of the instruction (Bitlocker Partition not found) has been > skipped TSManager 10/9/2013 2:59:10 PM 4668 (0x123C)**** > > ** ** > > *Bitlocker Partition found* > > Start executing an instruction. Instruction name: Bitlocker Partition > found. Instruction pointer: 8 TSManager 10/9/2013 2:59:44 > PM 4668 (0x123C)**** > > Set a global environment variable _SMSTSCurrentActionName=Bitlocker > Partition found TSManager 10/9/2013 2:59:44 > PM 4668 (0x123C)**** > > Set a global environment variable _SMSTSNextInstructionPointer=8 > TSManager 10/9/2013 2:59:44 PM 4668 (0x123C)**** > > Evaluating an AND expression TSManager 10/9/2013 2:59:44 > PM 4668 (0x123C)**** > > Evaluating a variable condition expression TSManager 10/9/2013 > 2:59:44 PM 4668 (0x123C)**** > > Expand a string: equals TSManager 10/9/2013 2:59:44 > PM 4668 (0x123C)**** > > Expand a string: Bitlocker_Partition TSManager 10/9/2013 2:59:44 > PM 4668 (0x123C)**** > > Expand a string: True TSManager 10/9/2013 2:59:44 PM > 4668 (0x123C)**** > > The group (Bitlocker Partition found) has been skipped because the > condition is evaluated to be false TSManager 10/9/2013 > 2:59:44 PM 4668 (0x123C)**** > > Set authenticator in transport TSManager 10/9/2013 2:59:44 > PM 4668 (0x123C)**** > > Execution of the instruction (Bitlocker Partition found) has been > skipped TSManager 10/9/2013 2:59:44 PM 4668 (0x123C)**** > > ** ** > > *Your Script I copied* > > <job id="checkBitLockerPartition">**** > > <script language="VBScript" src="ZTIUtility.vbs"/>**** > > <script language="VBScript">**** > > **** > > Dim oShell**** > > Set oShell = CreateObject("WScript.Shell")**** > > oEnvironment.Item("BitLocker_Partition") = False**** > > **** > > strComputer = "."**** > > Set objWMIService = GetObject("winmgmts:" _**** > > & "{impersonationLevel=impersonate}!\\" _**** > > & strComputer & "\root\cimv2")**** > > Set colDisks = objWMIService.ExecQuery _**** > > ("Select * from Win32_diskpartition")**** > > **** > > Dim PartSize**** > > **** > > For Each objDisk in colDisks**** > > PartSize = (objDisk.Size/1024/1024)**** > > Wscript.Echo "Disk Size: " & PartSize**** > > if PartSize>299 and PartSize<1024 then**** > > oEnvironment.Item("BitLocker_Partition")=True**** > > Wscript.Echo "Found 350Mb partition – possibly BitLocker"**** > > End if**** > > Next**** > > </script>**** > > </job>**** > > ** ** > > *My Results* > > C:\z\MBAM Client>cscript "C:\temp\MBAM\BitLocker_Partition_Verify.WSF"**** > > Microsoft (R) Windows Script Host Version 5.8**** > > Copyright (C) Microsoft Corporation. All rights reserved.**** > > ** ** > > Microsoft Deployment Toolkit version: 6.1.2373.0**** > > Property BitLocker_Partition is now = False**** > > Disk Size: 300**** > > Property BitLocker_Partition is now = True**** > > Found 350Mb partition - possibly BitLocker**** > > Disk Size: 500**** > > Property BitLocker_Partition is now = True**** > > Found 350Mb partition - possibly BitLocker**** > > Disk Size: 243269**** > > > ------------------------------ > This e-mail is intended solely for the person or entity to which it is > addressed and may contain confidential and/or privileged information. Any > review, dissemination, copying, printing or other use of this e-mail by > persons or entities other than the addressee is prohibited. If you have > received this e-mail in error, please contact the sender immediately and > delete the material from any computer. To unsubscribe send an email to: > [email protected] Hitachi Consulting Corporation, 14643 > Dallas Parkway, Suite 800, Dallas, Texas 75254 (HCAD0411) > ------------------------------ > >

