Link to home
Start Free TrialLog in
Avatar of RubinPostaer
RubinPostaer

asked on

Creating applications in SCCM using a batch file

I have a working batch file/config xml to do a silent uninstall of the Lync client (hopefully all existing 2013 and 2010), but when I create an deploy it as a package in SCCM it fails.

batch:
echo off
taskkill.exe /F /IM iexplore.exe /T
taskkill.exe /F /IM outlook.exe /T
taskkill.exe /F /IM lync.exe /T

"C:\Program Files\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /UNINSTALL LyncEntry /config  \\path\to\xml_file\SilentLyncUninstall.xml

Open in new window


XML:
<Configuration Product="LyncBasic">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Setting Id="SETUP_REBOOT" Value="Never" />
</Configuration>

Open in new window


Has anyone out there dealt with doing this?
Avatar of oBdA
oBdA

Assuming that the batch works when you execute it manually, the issue is probably the path to the config file, which seems to be a UNC.
The SCCM client runs as Local System, so the AD computer account needs permission for the share. You can use the group "Domain Computers" to grant read permissions.
ASKER CERTIFIED SOLUTION
Avatar of RubinPostaer
RubinPostaer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RubinPostaer

ASKER

solved itself