Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 956 Bytes

PasswordBox.md

File metadata and controls

19 lines (13 loc) · 956 Bytes

PasswordBox

The PasswordBox type is used with Authentication configuration, but can also be used standalone, saving the password into a task sequence variable.

Note: This is not recommended from a security point of view. TS variables can be saved in the smsts.log file which can be viewed after the task sequence has finished.

To enable this function, set the ExposePassword attribute on the PasswordBox, and make sure to assign a variable.

<GuiOption Type="PasswordBox" ExposePassword="TRUE">
    <Variable>PW</Variable>
    <Label>Password:</Label>
    <NoPasswordMessage>Password cannot be empty</NoPasswordMessage>
    <AllowEmpty>FALSE</AllowEmpty>
</GuiOption>

The PasswordBox control can also be used to pass a SecureString into a PowerShell script as a parameter. For more details see the Scripts documentation