/bundles/itninjaweb/img/Breadcrumb_cap_w.png
I have created a naming rule with this as my command line:

wsname.exe /N:OKC-$chassis-$serialnum[9] /rcid /user:*******\******* /pass:******* /logfile:c:\name.log

When this job executes after a scripted of install Windows XP SP3 it fails with the following error:

9/16/2009 2:04:39 PM : Call to Rename Computer in Domain returned error : 87
9/16/2009 2:04:39 PM : Refer to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/network_management_error_codes.asp
9/16/2009 2:04:39 PM : Rename Failed

I checked the website that is referenced and there is no error 87 listed so that helped none. I was able to download wsname.exe from the link provided in the KBOX, and if I run the same command from a prompt it works just fine. I am unable to get back to the website referenced in the KBOX so I couldn't check there for more documentation. Anyone have any ideas?
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
If it's running successfully from the prompt, and unsuccessfully from another mechanism, the answer is usually "escaping metacharacters". The characters "\",
"-", etc. are sometimes interpreted by a command processor prior to being executed. Try doubling the "\" in your domain user spec.
Answered 09/17/2009 by: jkatkace
Purple Belt

Please log in to comment
0
It does appear that it is an issue with the passing of the user-name, however, doubling the '\' character didn't work. I was able to get it to work though using the user-name format of user@domain.

thanks for the idea though.
Answered 09/17/2009 by: tcasey
Senior Yellow Belt

Please log in to comment
0
The proper escape character for DOS is the caret (^), not the backslash.
Answered 09/18/2009 by: sdickenson
Senior Yellow Belt

Please log in to comment
0
Ah...good to know! What characters need to be escaped?

tcasey, have you tried caret?
Answered 09/29/2009 by: jkatkace
Purple Belt

Please log in to comment