Sigwin is configured in Windows Server 2008, now we need to implement automation, I'm writing a batch script to add the user to the signin \ etc \ passwd using the following command
Please help me to execute the following CMD in the batch file Looking at what you are doing with mkpasswd I suggest that you find a way to run your automation from within Saigwin. Probably the establishment of a mkpasswd -l -u% username% -p / home & gt; & Gt; / Etc / passwd
c: chdir C: \ cygwin \ bin bash - Login -i mkpasswd -l -u% Username% -p / home & gt; & Gt; Windows and Unix mix in your windows batch file is running as a Windows command, such as the mkpasswd command in Windows
/ etc / passwd There is no concept and throws an error, maybe something like that;
D: \ cygwin \ bin> mkpasswd -l -u testusr -p / home & gt; & Gt; The / etc / passwd system can not detect the specified path
Comments
Post a Comment