powershell calling cpw - white space in password problem

2017-10-11 Thread Ramaiah, Vanna G.
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

RE: powershell calling cpw - white space in password problem

2017-10-11 Thread Ramaiah, Vanna G.
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

Re: powershell calling cpw - white space in password problem

2017-10-11 Thread Greg Hudson
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