Skip to content

Password Protect a Task Sequence?

Featured Replies

  • Replies 36
  • Views 136.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • yes it's possible and here's how to do it *note this happens in Windows PE*   PromptForPassword.wsf   create a blank text file in notepad called promptforpassword.wsf   paste the following into

  • A way to display the passwords using "dots" is by using a HTA instead of a WSF file.   See my used scripts in the attachment.   PromptForPassword.zip

  • I edited pollewops HTA some to include prompts for Primary User and Computer name. Edit domain on line 113 or remove it if you have mulitple. There is also a check on line 104 to 109 to check that th

Posted Images

Is there anyway to change the pass.wsf so that when you type the password its not in cleartext but in *******?

  • 6 months later...

how would i go about implementing this into a task sequence?

is it as easy as the one above?

 

 

A way to display the passwords using "dots" is by using a HTA instead of a WSF file.

 

See my used scripts in the attachment.

 

PromptForPassword.zip

how would i go about implementing this into a task sequence?

is it as easy as the one above?

 

Nevermind got it sorted :) Thanks pollewops for an awsome script.

And anyweb for the "how to display hta" guide

  • 9 months later...
  • 1 month later...

Thanks guys, this works great. However........Lets say a user inputs a wrong password.....and we shutdown!!!! Then a user boots again and.....i am guessing wrong password is saved in MININT directory on the local drive and there will be no more prompt to enter a password.

 

I am going to try to edit the script to delete MININT right before the shutdown from shutdown.wsf.

I tested and got this working this in MDT:

 

<job id="setEnv">

<script language="VBScript" src="..\ZTIUtility.vbs"/>

<script language="VBScript">

 

Dim oTSProgressUI

'set oTSProgressUI = CreateObject("Microsoft.SMS.TSProgressUI")

'oTSProgressUI.CloseProgressDialog()

 

 

' Clean up any existing C:\MININT directory

If oFSO.FolderExists("C:\MININT") then

On Error Resume Next

oFSO.DeleteFolder "C:\MININT", true

On Error Goto 0

End If

 

' Clean up any existing C:\_smstasksequence directory

If oFSO.FolderExists("C:\_smstasksequence") then

On Error Resume Next

oFSO.DeleteFolder "C:\_smstasksequence", true

On Error Goto 0

End If

 

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>

 

 

 

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.