[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Debugging ReturnValue = 8

Posted on 2014-02-27
12
Medium Priority
?
1,005 Views
Last Modified: 2014-05-14
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!
0
Comment
Question by:tenchulyo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
12 Comments
 
LVL 71

Expert Comment

by:Qlemo
ID: 39893143
Isn't that value defined as valid return code of the command you call?
0
 

Author Comment

by:tenchulyo
ID: 39893166
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
 
LVL 71

Expert Comment

by:Qlemo
ID: 39894372
Is that the error message for "release.exe"? I cannot identify that particular EXE. And it is definitely the EXE itself returning 8.
0
Are You Ready for GDPR?

With the GDPR deadline set for May 25, 2018, many organizations are ill-prepared due to uncertainty about the criteria for compliance. According to a recent WatchGuard survey, a staggering 37% of respondents don't even know if their organization needs to comply with GDPR. Do you?

 

Author Comment

by:tenchulyo
ID: 39894804
No, it isn't. I 've tried with various .exe files including notepad.exe and I get the same result
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 39895073
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
 

Author Comment

by:tenchulyo
ID: 39896328
Hmmm...I have the user set to administrator on that machine. And like I said...It worked before...Just stopped working...
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 39898426
Recheck the privs. You would expect they are there, but since something changed, you cannot be certain.
0
 

Author Comment

by:tenchulyo
ID: 39901000
Yup, still in as an admin on that PC.
0
 

Author Comment

by:tenchulyo
ID: 40008901
I guess I'm all alone on this one...
0
 

Accepted Solution

by:
tenchulyo earned 0 total points
ID: 40053823
Forget It... I broke down and went to Visual Studio and built a solution from scratch...wmic sucks!
0
 

Author Closing Comment

by:tenchulyo
ID: 40064002
No one had a better one...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question