Debugging ReturnValue = 8

Hi,

I'm trying to use WMI to execute a command on a computer and it is giving me the following:


C:\temp>wmic /node:192.168.4.44 /user:capcom\ryu /password:haduken
process call create "release.exe /c [command]"
Executing (Win32_Process)->Create()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
        ReturnValue = 8;
};


C:\temp>

I've done this a million times and never got an 8 value message. Any ideas on what the issue could be and how to fix it?


Thanks!
tenchulyoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Isn't that value defined as valid return code of the command you call?
0
tenchulyoAuthor Commented:
I looked it up and the definition is "One of the parameters to the call is not correct" so it is an error...just not sure what that means... I think the usuall is either 0 or 1... it is not working.
0
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Is that the error message for "release.exe"? I cannot identify that particular EXE. And it is definitely the EXE itself returning 8.
0
Defend Against the Q2 Top Security Threats

Were you aware that overall malware worldwide was down a surprising 42% from Q1'18? Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that analyzes the top threat trends impacting companies worldwide. Learn more by viewing our on-demand webinar today!

tenchulyoAuthor Commented:
No, it isn't. I 've tried with various .exe files including notepad.exe and I get the same result
0
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Return code 8 for Win32_Process.Create is "Unknown failure" (see http://msdn.microsoft.com/en-us/library/aa389388(v=vs.85).aspx ). Very informative, indeed.

But http://blogs.msdn.com/b/alejacma/archive/2008/04/09/win32-process-create-fails-if-user-profile-is-not-loaded.aspx tells us more about a possible culprit: The user account used in the WMI call needs to have special privileges to allow for loading the user's registry hive, which are the Backup and Restore files and directories privs.
Or you make sure the user profile is active - for testing, you can perform a login with that user on the target machine, and then run wmic. It should work by then if loading the hive is the culprit.
0
tenchulyoAuthor Commented:
Hmmm...I have the user set to administrator on that machine. And like I said...It worked before...Just stopped working...
0
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Recheck the privs. You would expect they are there, but since something changed, you cannot be certain.
0
tenchulyoAuthor Commented:
Yup, still in as an admin on that PC.
0
tenchulyoAuthor Commented:
I guess I'm all alone on this one...
0
tenchulyoAuthor Commented:
Forget It... I broke down and went to Visual Studio and built a solution from scratch...wmic sucks!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tenchulyoAuthor Commented:
No one had a better one...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.