one last thing, the variable it sets is for use DURING The task sequence,

oEnvironment.Item("BitLocker_Partition")=True

use the Wscript.Echo "Found 300Mb partition – possibly BitLocker"
to verify that it's working in your environment before testing in Windows
PE after pxe booting (or in windows, but it must be in a running task
sequence to set that variable)


On Wed, Oct 9, 2013 at 11:20 PM, James Massardo <[email protected]>wrote:

>  Try if PartSize>299 and PartSize<301 then
>
>
>   Thanks,
> James Massardo
>
>
>   From: <Avery>, James <[email protected]>
> Reply-To: "[email protected]" <[email protected]>
> Date: Wednesday, October 9, 2013 4:13 PM
> To: "[email protected]" <[email protected]>
> Subject: RE: [mssms] how can I determine if the Prepare disc for
> BitLocker Partition creation was successful ?
>
>   Nial,****
>
> ** **
>
> Thank you for the quick response! I’m still showing a False when I change
> everything on my PC to 300mb since this particular 300 partition is created.
> ****
>
> ** **
>
> *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****
>
> Disk Size: 500****
>
> Disk Size: 243269****
>
> ** **
>
> ** **
>
> *SCRIPT*
>
> <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>300 and PartSize<300 then****
>
> oEnvironment.Item("BitLocker_Partition")=True****
>
> Wscript.Echo "Found 300Mb partition – possibly BitLocker"****
>
> End if****
>
> Next****
>
> </script>****
>
> </job>****
>
> ** **
>
> ** **
>
> ** **
>
> *From:* [email protected] [
> mailto:[email protected] <[email protected]>] *On
> Behalf Of *Niall Brady
> *Sent:* Wednesday, October 09, 2013 3:54 PM
> *To:* [email protected]
> *Subject:* Re: [mssms] how can I determine if the Prepare disc for
> BitLocker Partition creation was successful ?****
>
> ** **
>
> 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) ****
>  ------------------------------
>
> ** **
>
> ** **
>
> ** **
>
>   NOTICE: This electronic mail message and any files transmitted with it
> are intended
> exclusively for the individual or entity to which it is addressed. The
> message,
> together with any attachment, may contain confidential and/or privileged
> information.
> Any unauthorized review, use, printing, saving, copying, disclosure or
> distribution
> is strictly prohibited. If you have received this message in error, please
> immediately advise the sender by reply email and delete all copies.
>
>



Reply via email to