I have a non-interactive powershell that changes password using cpw. It works
fine. When the password contain white space character in it, it fails because
it sees white space as delimiter.
The following command works fine. The part -q is in single quotes. If there is
a space in UserPassword it
The following 2 works fine.
ServerName -l AdminAccount -pw AdminPassword -v /usr/bin/kadmin -p
AdminAccount/admin -w AdminPassword -q 'cpw -pw UserPassword UserAccount'
ServerName -l AdminAccount -pw AdminPassword -v /usr/bin/kadmin -p
AdminAccount/admin -w AdminPassword -q 'cpw -pw "UserPass
On 10/11/2017 05:36 PM, Ramaiah, Vanna G. wrote:
> I have a non-interactive powershell that changes password using cpw. It works
> fine. When the password contain white space character in it, it fails because
> it sees white space as delimiter.
kadmin -q 'cpw -pw "a b" user' works for me; I'm no