( exists files whose ( name ofitas lowercase ="chpasswd" ) of ( folders it ) of unique values of ( itas trimmed string ) of substrings separated by ( ";";":" ) of values of ( variables "PATH"of it; ( if ( windows of operating system ) then ( x64 variables "PATH"ofit ) else NOTHINGS ) ) of environments )
( exists files whose(name ofitas lowercase ="chpasswd") of (folders it) of unique values of (itas trimmed string) of substrings separated by (";";":") of values of (variables "PATH"of it; (if (windows of operating system) then (x64 variables "PATH"ofit) else NOTHINGS) ) of environments )
Actions
Action 1 (default)
Action Link
Change specified local user account password.
Script Type
BigFix Action Script
actionparameterquery"username" with description "Please specify the name of an existing local user account"
// verify the user exists already before continuing continueif{ 2 = number of lines whose(it as lowercase starts with ( ( parameter "username" ) as lowercase ) ) of (files "shadow" of it; files "passwd" of it) of folders "/etc" }
wait sh -c "echo "{parameter "username" of action}:{parameter "secret" of action}" | chpasswd"
Success Criteria
This action will be considered successful when all lines of the action script have completed successfully.