Skip to content

Password Protecting A SCCM OSD Task Sequence

Featured Replies

I have been working at implementing an HTA file to password protect my SCCM 2012 R2 task sequences as discussed here and various places throughout the web. I a looking for some clarification why the "Use Toolkit Package" is needed in the task sequence before the .WSF script (below) can run? I assume it is because it is calling the ZTIutility.vbs script which is part of MDT, but I don't understand what is actually happening. Could someone explain?

 

 

 

<job id="setEnv"> <script language="VBScript" src="..\ZTIUtility.vbs"/> <script language="VBScript"> Dim oTSProgressUI set oTSProgressUI = CreateObject("Microsoft.SMS.TSProgressUI") oTSProgressUI.CloseProgressDialog() On error resume next Dim fso, WShell, oFile Set WShell = CreateObject("WScript.Shell") Set fso = CreateObject("scripting.filesystemobject") scriptroot = oEnvironment.Item("SCRIPTROOT") MsgBox "Please click OK to shutdown the computer.",0, "Task Sequence Aborted" WShell.Run "wpeutil shutdown",0, True </script> </job>

 

 

 

Also, it there any other way to gracefully shut down the task sequence with out integrating MDT into SCCM to get the "Use Toolkit Package" option?

 

--Tony

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.