Link to home
Start Free TrialLog in
Avatar of Thomas N
Thomas NFlag for United States of America

asked on

How do I deploy this Bitlocker WMI script?

How can I deploy this script without SCCM, or SMS. I am trying to put it in a GPO in the "startup script" settings. Is this correct? I believe I need to edit certain parts of the script but Im new to scripting. Can someone help? Especially someone who has actually deployed this script outside of SCCM, SMS. Thanks
Avatar of Thomas N
Thomas N
Flag of United States of America image

ASKER

I get errors in picture attached when I just click on the .vbs file to see what happens but arent these settings configured in the GPO?

http://accc.uic.edu/answer/how-do-i-configure-active-directory-store-bitlocker-recovery-information 

I did these steps.
bitlocker.png
bitlocker1.png
Avatar of btan
btan

Thought you may want to check out my past EE advice using Powershell or the WMI you stated https://www.experts-exchange.com/questions/28847240/Automate-and-Enable-TPM-and-Bitlocker-setup-for-MBAM-endpoints.html?anchorAnswerId=41262344#a41262344

But specifically referencing the 2010 Q&A forum that user shared this script works perfectly for windows 7 machines and need to include option such as this "cscript bitlocker.vbs /on:tpm /l:c:\temp\bitlocker.log"

Note for an updated script (dated last of 19 Feb 2014 ) to also support Win8/8.1 and server 2012, you can see https://gallery.technet.microsoft.com/scriptcenter/BitLocker-deployment-2b260d26#content
Thanks btan so do I need to put "cscript bitlocker.vbs /on:tpm /l:c:\temp\bitlocker.log" inside the script? Im assuming. Do I just put it at the top of the script text? Sorry im not good at scripting.
Above  "On Error Resume Next"?
To make it easier, pls see using the HTA

http://www.niallbrady.com/2012/10/17/enabling-bitlocker-via-a-script-on-non-english-windows-7-installations-fails/

otherwise, using any batch File (.bat) just add below this into a batch file or other script

 C:\bitlockertemp\enableBitLocker.vbs /on:tpm /l:C:\bitlockertemp\log.txt
Okay I did the .bat file pointing to the .vbs  and now no errors but nothing happens.  Any suggestions?
ASKER CERTIFIED SOLUTION
Avatar of btan
btan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok let me check