I have tried this with two different software custom inventory rules:

1.  RegistryValueGreaterThan(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center, Ident, 6.0)

then i tried

2. RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Media Center)

I have already created the script to remove Media center with “%windir%\system32\\cmd.exe with params Dism /online /Disable-Feature /FeatureName:MediaCenter /quiet. and that worked as expected.  I just want to be able to create a label to go out and find all installs of media center so i can use this script to remove Media Center. 

0 Comments   [ + ] Show Comments


Please log in to comment



Since your command only disables Media Center and does not uninstall it, I'd suggest your script add a dummy registry key or text file once it disables Media Center.

You could then use a custom inventory rule to look for that registry key or file.  This would cause your script to run on machines that do not have that criteria once you create a label for it.

Perhaps you could create a string value here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\

Something like "MediaCenterDisabled".

Answered 07/02/2013 by: jknox
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Five Steps for Easier- and More Effective- IT Inventorying
Having an accurate inventory of all your IT assets is critical to ensuring that users are productive and that every dollar is well spent. This white paper outlines five steps that improve inventorying both hardware and software.