none
Using MDT to install Cisco AnyConnect and apply custom xml config

    Question

  • 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.

    Monday, April 07, 2014 5:54 PM

Answers

  • 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.

    Be kind and Mark as Answer if I helped.

    • Marked as answer by Dan L J Monday, April 07, 2014 9:02 PM
    Monday, April 07, 2014 6:33 PM

All replies

  • 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.

    Be kind and Mark as Answer if I helped.

    • Marked as answer by Dan L J Monday, April 07, 2014 9:02 PM
    Monday, April 07, 2014 6:33 PM
  • 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 Monday, April 07, 2014 7:38 PM
    Monday, April 07, 2014 6:53 PM
  • 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.


    Monday, April 07, 2014 9:02 PM