Skip to content

Commit fdf4faa

Browse files
committed
Update changepassword.template
1 parent 0c9b023 commit fdf4faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ps1_templates/changepassword.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Function Test-ADAuthentication {
1414
{% if dataStatus == -2 %}
1515
Set-ADUser -Identity $user -Enabled $True
1616
{% endif %}
17-
$userFound=get-aduser -Filter "SamAccountName -eq 'jcerri' -and Enabled -eq '$True' -and PasswordExpired -eq '$False'"
17+
$userFound=get-aduser -Filter "SamAccountName -eq $user -and Enabled -eq '$True' -and PasswordExpired -eq '$False'"
1818
if ( ! $userFound ){
1919
Write-Host 'user not active or not found or password expired'
2020
exit 1

0 commit comments

Comments
 (0)