Weird result from a WMI-query

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.


  • Edited by Samus-Aran Tuesday, September 18, 2012 12:36 PM
September 18th, 2012 2:33pm

Did you properly sysprep the reference system before capturing it as an

Free Windows Admin Tool Kit Click here and download it now
September 18th, 2012 6:34pm

Hi!

I used SCCM 2007 to capture the image so i guess it took care of it. As i said,  i have searched through the whole registry for "MachineFromCapture" and i dont find anything so its not a huge problem. I use this image for aprox 20 computers now i have not noticed any problem. The big question is, Where is this information stored?? If not the registry, then where?

This is a mystery!


// Clint


  • Edited by Samus-Aran Wednesday, September 19, 2012 6:33 AM
September 19th, 2012 9:33am

I have checked the GUID on some of these computers and they differ so sysprep works just fine.
Free Windows Admin Tool Kit Click here and download it now
September 19th, 2012 1:51pm

It's stored in WMI -- WMI is its own, self-contained repository. The registry has nothing to do with WMI.

Which GUID are you checking? ConfigMgr agent? That has nothing to do with sysprep as sysprep only handles core Windows unique identifiers. There is a special task in ConfigMgr task sequences that is also run by the capture media that makes the ConfigMgr agent unique.

September 19th, 2012 4:51pm

Hi Jason!

I ran this command on various computers:

gwmi Win32_ComputerSystemProduct | fl uuid

Which is the OS GUID right?

I have these steps in my capture process:

Capture Reference Machine

Is it maybe that simple that the Prepare OS just did not do what it were supposed to do? Should i try to recapture it maybe?


// Clint

EDIT: Another question, would it be possible to edit the WMI repository so it point to the correct computer?



  • Edited by Samus-Aran Thursday, September 20, 2012 7:38 AM
Free Windows Admin Tool Kit Click here and download it now
September 20th, 2012 8:24am

No more ideas? :(
September 21st, 2012 12:16pm

Hi, 

Sorry for digging this one up, but did you happen to resolve it?


Thanks

Free Windows Admin Tool Kit Click here and download it now
January 8th, 2014 7:41am

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

Other recent topics Other recent topics