Upgrading the ADMX files to Windows 8 & 2012

When you want to use a new OS in your domain you need to upgrade de ADMX files. The easy way to get all the possible ADMX/ADML files for a particular OS without having to install all the roles/features is to simply copy them out of the winsxs directory (replace en-US in the commands below if your OS is installed in a language other than English). Here is a sample set of commands which can do this for you. You’d need to run this on both a and computers to capture all possible admx/adml files.

cd /d %windir%\winsxs
dir *.admx /s /b > %USERPROFILE%\Desktop\admx.txt
dir *.adml /s /b | find /i “en-us” > %USERPROFILE%\Desktop\adml_en-us.txt

mkdir %USERPROFILE%\Desktop\PolicyDefinitions
mkdir %USERPROFILE%\Desktop\PolicyDefinitions\en-US
FOR /F %i IN (%USERPROFILE%\Desktop\admx.txt) DO copy %i %USERPROFILE%\Desktop\PolicyDefinitions\
FOR /F %i IN (%USERPROFILE%\Desktop\adml_en-us.txt) DO copy %i %USERPROFILE%\Desktop\PolicyDefinitions\en-US\

Source: Upgrading the ADMX Central Store files from Windows 7/2008R2 to Windows 8/2012

Leave a Reply