Deploy .bat file via SCCM 2007
Hello, I'm trying to deploy a .bat file via sccm 2007 OSD. I have set it to use drive letter path not UNC. Below is the script. cd c:\Users\Default\AppData\Local\Microsoft mkdir Office copy P:\Sources\OfficeUIs\Office\* c:\Users\Default\AppData\Local\Microsoft\Office\ Am I missing something? Thx! Wave~Chaser
May 18th, 2012 12:06pm

Hi, what permission have you set on P: ? If you have configured it to run with Administrative Rights Domain Computers must have permissions to the share as well. regards, Jrgen-- My System Center blog ccmexec.com -- Twitter @ccmexec
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2012 12:57pm

I have tried the below as a bat. and cmd I get error code 1 mkdir "C:\Users\Default\AppData\Local\Microsoft\Office" copy "%~dp0olkexplorer.officeUI" "C:\Users\Default\AppData\Local\Microsoft\Office" /y copy "%~dp0Excel.officeUI" "C:\Users\Default\AppData\Local\Microsoft\Office" /y copy "%~dp0OneNote.officeUI" "C:\Users\Default\AppData\Local\Microsoft\Office" /y copy "%~dp0PowerP14.customUI" "C:\Users\Default\AppData\Local\Microsoft\Office" /y copy "%~dp0Word.officeUI" "C:\Users\Default\AppData\Local\Microsoft\Office" /y copy "%~dp0Word14.customUI" "C:\Users\Default\AppData\Local\Microsoft\Office" /yWave~Chaser
May 18th, 2012 4:00pm

The perms' are good on the P: thxWave~Chaser
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2012 4:01pm

It looks like it creates the office folder, but the files do not copy over.Wave~Chaser
May 18th, 2012 4:02pm

I figured it out. I had to remove the " " from copy "%~dp0Word14.customUI" "C:\Users\Default\AppData\Local\Microsoft\Office" /y I used the below mkdir "C:\Users\Default\AppData\Local\Microsoft\Office" copy %~dp0Excel.officeUI C:\Users\Default\AppData\Local\Microsoft\Office /y copy %~dp0olkexplorer.officeUI C:\Users\Default\AppData\Local\Microsoft\Office /y copy %~dp0OneNote.officeUI C:\Users\Default\AppData\Local\Microsoft\Office /y copy %~dp0PowerP14.customUI C:\Users\Default\AppData\Local\Microsoft\Office /y copy %~dp0Word.officeUI C:\Users\Default\AppData\Local\Microsoft\Office /y copy %~dp0Word14.customUI C:\Users\Default\AppData\Local\Microsoft\Office /y It worked fine. Wave~Chaser
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2012 1:05pm

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

Other recent topics Other recent topics