Identify windows 7 computers with Media Center Enabled.
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.
Answers (1)
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".