special caracter % in user password fails
Verfasst: 27 Jan 2015, 17:58
Hello,
I'm using package Local_user from
wiki/userspace:local_user
For instance if the password is XXX%YYY the user's creation fails.
Looking at the log, I can see that the command "net user ...." is invalid due to the % :
Instead of :
It seems like the % shrinks the command line.
Note that the following command works well in the windows command interpreter :
Can anyone tell me how and where to devaluate the % ?
Thank you.
I'm using package Local_user from
wiki/userspace:local_user
For instance if the password is XXX%YYY the user's creation fails.
Looking at the log, I can see that the command "net user ...." is invalid due to the % :
Code: Alles auswählen
C:\Windows\system32>NET USER xunil XXXno /passwordreq:yes
Instead of :
Code: Alles auswählen
NET USER $local_user$ $val_userpasswd$ /ADD /passwordchg:no /passwordreq:yes
Note that the following command works well in the windows command interpreter :
Code: Alles auswählen
NET USER toto XXX%YYY /ADD /passwordchg:no /passwordreq:yes
Thank you.