How to make InstallCertCTR behaviours the way as InstallCertRTM without having to copy files to %temp% for it to work? Thanks. Code: :InstallCertRTM for %%x in (%~dp0$OEM$\$$\Setup\Scripts\CERT\%edition%\*.xrm-ms) do (%slmgr% /ilc %%x //b) goto:eof :----------------------------------------- :InstallCertCTR copy /y "%ProgramFiles%\Microsoft Office 15\root\Licenses\%edition%vl_kms*.xrm-ms" %temp% >nul 2>&1 for %%x in (%temp%\%edition%vl_kms*.xrm-ms) do (%slmgr% /ilc %%x //b) del /f /q %temp%\%edition%vl_kms*.xrm-ms >nul 2>&1 goto:eof (Error: 3002 File could not be opened.(ADODB.Stream))
ATM, I managed it this way and it also works: Code: :InstallCertCTR %slmgr% /ilc "%ProgramFiles%\Microsoft Office 15\root\Licenses\%edition%vl_kms_client-ppd.xrm-ms" //b %slmgr% /ilc "%ProgramFiles%\Microsoft Office 15\root\Licenses\%edition%vl_kms_client-ul.xrm-ms" //b %slmgr% /ilc "%ProgramFiles%\Microsoft Office 15\root\Licenses\%edition%vl_kms_client-ul-oob.xrm-ms" //b goto:eof Thanks