Issue querying SCCM from Powershell
I'm working on a side project that will require me pulling some information out of the SCCM database and I'm currently having an issue with running queries through WMI. I've been using powershell to make my WMI calls. The issue is that I get back nothing. Not even an object. Here's an example query $foo = get-wmiobject -query "select * from SMS_R_System" -ComputerName SCCMSERVER -Namespace "root/sms/site_XXX" $foo isn't set to anything. I've tried running this remotely and locally an SCCM server, and I've also checked the WMI permissions to make sure that there wasn't an issue there. If I run the MoW WMI Powershell Browser, I have the same issues. Almost all of the objects return no instances, but there are a few that will. Any thoughts as to why I'm getting this result? Thanks.. Rich
November 3rd, 2010 10:52am

Are you running powershell elevated? OHM www.moe.am
Free Windows Admin Tool Kit Click here and download it now
November 8th, 2010 6:08pm

Hi Rich, As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as "Answered" as the previous steps should be helpful for many similar scenarios. In addition, we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks,Yog Li -- Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
November 12th, 2010 4:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics