Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Win32_Service.StartName is NULL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Nick Burkitt  
View profile   Translate to Translated (View Original)
 More options 21 Mar 2007, 19:45
Newsgroups: microsoft.public.win32.programmer.wmi
From: Nick Burkitt <nick.burk...@newsgroups.nospam>
Date: Wed, 21 Mar 2007 12:45:51 -0700
Local: Wed 21 Mar 2007 19:45
Subject: Win32_Service.StartName is NULL
I have an application (C++) that uses WMI to query a service.  For one
service on the machine, I'm getting "empty" values (as displayed in CIM
Studio) for DesktopInteract, InstallDate, PathName, StartName, and TagId.
The big problem for me is the StartName property.  Using the MMC "Services"
snap-in, the "Log On" account is visible (and correct); RegEdit likewise
shows the value I expect in ObjectName; only WMI seems to be affected.
Other services that have the same StartName are unaffected, as well.
Under what circumstances will WMI be unable to report the service start name
(and other properties)?  Is this a "normal" condition that I'll need to take
into account, or is it a symptom of a WMI issue?
Thanks,

-Nick


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile   Translate to Translated (View Original)
 More options 22 Mar 2007, 09:04
Newsgroups: microsoft.public.win32.programmer.wmi
From: je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Thu, 22 Mar 2007 09:04:30 GMT
Local: Thurs 22 Mar 2007 09:04
Subject: RE: Win32_Service.StartName is NULL
Hi Nick,

I have performed a quick search in internal databases regarding this issue.
However, I did not find any reported records yet.

To isolate if this issue is that service specific, have you tried to run
your code on a second machine with this service installed? If it can be
reproduced easily, I would recommend you to provide a little sample project
for me to give it a local reproduce(assuming my machine also have this
service installed). The local reproduce will help to make the
troubleshooting and debugging more convenient.

Anyway, I will perform some further reserach to find out if there is any
more informative troubleshooting method.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.asp...
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile   Translate to Translated (View Original)
 More options 22 Mar 2007, 13:57
Newsgroups: microsoft.public.win32.programmer.wmi
From: je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Thu, 22 Mar 2007 13:57:22 GMT
Local: Thurs 22 Mar 2007 13:57
Subject: RE: Win32_Service.StartName is NULL
Hi Nick,

I have done some further research on this issue.

WMI uses SC manager APIs to get these information. Services.msc shows the
account details and WMI is not able to show, there could be some permission
issue.

For instance,
e:\Wmi\admin\wmi\wbem\Winmgmt\winmgmt2>sc sdshow winmgmt

D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCS W
LOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;C
CDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

Here only IU is given permission. But, if the same user is trying in batch
(or) remote scenario where the token received by WMI is not having
interactive RID, WMI will not be able to get the details. Just guessing
this may be a problem.

Anyway, more information or a local reproduce  will help to identify the
root cause more accurate. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.asp...
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Burkitt  
View profile   Translate to Translated (View Original)
 More options 22 Mar 2007, 18:16
Newsgroups: microsoft.public.win32.programmer.wmi
From: Nick Burkitt <nick.burk...@newsgroups.nospam>
Date: Thu, 22 Mar 2007 11:16:03 -0700
Local: Thurs 22 Mar 2007 18:16
Subject: RE: Win32_Service.StartName is NULL
Hi Jeffrey.

I think I've found the problem.  Apparently the CIMV2 WMI provider is using
a fixed-size buffer when it calls QueryServiceConfig().  If the buffer isn't
big enough to hold the results, it fails silently and is unable to display
many of the properties of the Win32_Service instance.
The service in question has a very long ImagePath; 545 characters (1090
bytes).
The clue was SC.EXE, which suffers from the same problem but at least
reports the error.  Here's an example:
C:\>sc \\MYSERVER qc "MyService"
[SC] QueryServiceConfig FAILED 122:
The data area passed to a system call is too small.
[SC] GetServiceConfig needs 1252 bytes

When I changed the service's "ImagePath" in the registry to something
shorter, it worked:
C:\>sc \\MYSERVER qc "MyService"
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: MyService
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : This is a test.
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : MyService
        DEPENDENCIES       :
        SERVICE_START_NAME : MYDOMAIN\MyUser

Any ideas on how to work around this?
Thanks again,

-Nick


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile   Translate to Translated (View Original)
 More options 23 Mar 2007, 08:23
Newsgroups: microsoft.public.win32.programmer.wmi
From: je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Fri, 23 Mar 2007 08:23:04 GMT
Local: Fri 23 Mar 2007 08:23
Subject: RE: Win32_Service.StartName is NULL
Hi Nick,

Thanks for your informative reply!

I have forwarded this issue to the WMI dev team. They have filed a bug
regarding this issue. I will feedback any bug research information here
during the process.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.asp...
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
"Jeffrey Tan[MSFT]"  
View profile   Translate to Translated (View Original)
 More options 29 Mar 2007, 04:28
Newsgroups: microsoft.public.win32.programmer.wmi
From: je...@online.microsoft.com ("Jeffrey Tan[MSFT]")
Date: Thu, 29 Mar 2007 03:28:12 GMT
Local: Thurs 29 Mar 2007 04:28
Subject: RE: Win32_Service.StartName is NULL
Hi Nick,

I have examined the bug record, but there is still no new update yet. I
suspect the WMI team may require more time to address it. If your
requirement is urgent, I would recommend you to contact Microsoft PSS to
request a hotfix regarding this bug. The bug ID is "Windows OS Bugs
1972337". Since this is a bug, the support case will be free.

You can contact Microsoft Product Support at 1-(800)936-5800 or by choosing
one of the options listed at:
http://www.microsoft.com/services/microsoftservices/srv_support.mspx

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.asp...
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Saim problem with the buffer bing too small"
 
View profile   Translate to Translated (View Original)
 More options 16 July 2008, 16:47
Newsgroups: microsoft.public.win32.programmer.wmi
From: Geoff
Date: Wed, 16 Jul 2008 08:47:56 -0700
Local: Wed 16 July 2008 16:47
Subject: Saim problem with the buffer bing too small
Hi I have the same problem where the path is larger.

I have taken the work around here and utilized it. When is this going to be resolved?


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Interesting findings"
 
View profile   Translate to Translated (View Original)
 More options 16 July 2008, 18:45
Newsgroups: microsoft.public.win32.programmer.wmi
From: Geoff Spier
Date: Wed, 16 Jul 2008 10:45:35 -0700
Local: Wed 16 July 2008 18:45
Subject: Interesting findings
when I changed the image path back to the full length it origionally started at, the sc.exe process is functioning perfectly, this may not be an sc.exe problem at all.

just my 2 cents.


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "ignore last statement"
 
View profile   Translate to Translated (View Original)
 More options 16 July 2008, 19:40
Newsgroups: microsoft.public.win32.programmer.wmi
From: Geoff Spier
Date: Wed, 16 Jul 2008 11:40:40 -0700
Local: Wed 16 July 2008 19:40
Subject: ignore last statement
ignore.. it appears that it had to be synced through the control groups before it would happen again.

16-Jul-08 01:45:34

when I changed the image path back to the full length it origionally started at, the sc.exe process is functioning perfectly, this may not be an sc.exe problem at all.

just my 2 cents.


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
 
View profile   Translate to Translated (View Original)
 More options 16 July 2008, 19:40
Newsgroups: microsoft.public.win32.programmer.wmi
From: Geoff Spier
Date: Wed, 16 Jul 2008 11:40:41 -0700
Local: Wed 16 July 2008 19:40
Subject: ignore last statement
ignore.. it appears that it had to be synced through the control groups before it would happen again.

16-Jul-08 01:45:34

when I changed the image path back to the full length it origionally started at, the sc.exe process is functioning perfectly, this may not be an sc.exe problem at all.

just my 2 cents.


    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google