Using MDT to install Cisco AnyConnect and apply custom xml config

So I am pretty new to MDT and have really enjoyed learning about the tool.  I have been building up a Windows 8.1 image and have all my software installs setup on my source task sequence.  I run through and everything loads fine.

One app I use is Cisco Any Connect.  I have no issue with the installation of the application.  The issue I have is that I do not know how to apply the configuration XML file as part of my source task sequence.  I know the file will go in "C:\ProgramData\Cisco\Cisco AnyConnect VPN Client\Profile".

I am sure this would be a simple task that can be done via a script POST application install, I am just unsure how to incorporate the XML file into a location that MDT would pull it and place it where it needs to be.  I am not super savy with scripting myself, but have done enough to typically know what a script is doing and how it works when I look it over.  Any advice for the novice would be more than appreciated.  I am sure I will be able to take this process and learn how it can be associated to some other tasks in the build.

April 7th, 2014 1:56pm

You should be able to run a new step in your task sequence that simply does either a "Copy /y" or "XCOPY" command to copy the file from its location on the server (ensure you open rights up properly) and then to the ProgramData folder where it needs to be.  Also, if those folders don't initially exist you can use the "MD" command to create the directories.
Free Windows Admin Tool Kit Click here and download it now
April 7th, 2014 2:35pm

So create a folder in my DeploymentShare and call it something like "Custom"  and then add a custom "Run Command Line" task that would look something like this:

copy /Y "\Custom\configuration.xml" "C:\ProgramData\Cisco\Cisco AnyConnect VPN Client\Profile"

Correct?






  • Edited by Dan L J 15 hours 13 minutes ago
April 7th, 2014 2:55pm

After some tinkering, I got my syntax right:

CMD.EXE /C COPY /Y "%DEPLOYROOT%\Custom\Anyconnect-General.xml" "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile"Thanks again for the help.


Free Windows Admin Tool Kit Click here and download it now
April 7th, 2014 5:03pm

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

Other recent topics Other recent topics