Quantcast
Channel: Configuration Manager 2007 Operating System Deployment forum
Viewing all articles
Browse latest Browse all 1063

Weird result from a WMI-query

$
0
0

Hi!

I have this weird "Problem". I have captured an Image of Windows 7 64-bit. It works great, and have a pretty long time and have not seen anything strange until today when i was trying to lean how i remotely can Evaluate a Machine Policy Retrieval.

I got the answer from Kazun in this thread how i could do this with powershell (Thanks Kazun!) but i get some weird output from the command that i dont get from our 32-bit win7 image.

I run the WMI-query on my local computer that has the computer name MyComputer123, but the command tries to execute the WMI on a computer named MachineFromCapture, which as the name say, was the name of machine i used to capture my image! Why oh why! :O 


PS C:\> $smsclient = [wmiclass]"\\MyComputer123\root\ccm:sms_client"

PS C:\> $smsclient.EvaluateMachinePolicy()


__GENUS          : 1
__CLASS          : __PARAMETERS
__SUPERCLASS     : 
__DYNASTY        : __PARAMETERS
__RELPATH        : __PARAMETERS
__PROPERTY_COUNT : 1
__DERIVATION     : {}
__SERVER         : MachineFromCapture
__NAMESPACE      : ROOT\ccm
__PATH           : \\MachineFromCapture\ROOT\ccm:__PARAMETERS
ReturnValue      : 
PSComputerName   : MachineFromCapture


Does any one have any idea how this is possible? I have search through the whole registry for "MachineFromCapture" but with no hit!

// Clint Eastwood!

EDIT: I Get this output from all computers with the same image.



Viewing all articles
Browse latest Browse all 1063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>