Managed Install for Cisco VPN Client
I need to set up a managed install for Cisco VPN Client. I got the switches for silent install and I know how to make a default user profile which contains user-group-password and host IP etc. But I don't know how to configure the silent install so that it will also push the user profile over along with the install.
What would have to happen is, the install takes place, and then the user profile gets put into c:\program files\Cisco Systems\VPN Client\Profiles.
Thanks for help,
Bob W
What would have to happen is, the install takes place, and then the user profile gets put into c:\program files\Cisco Systems\VPN Client\Profiles.
Thanks for help,
Bob W
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
dyehardfan
13 years ago
Install.bat
CreateShortCut.vbs
you can also use the .arguments property to have the shortcut automatically launch the vpn connection, but if you use multiple vpn connections this might not be advisable.
start /wait msiexec.exe /qb /norestart /i vpnclient_setup.msi
copy xxxxx.pcf "C:\Program Files\Cisco\Profiles"
start /wait CreateShortCut.vbs
shutdown /r /t 15
CreateShortCut.vbs
Option Explicit
Dim objShell, objDesktop, objLink
Dim strAppPath, strWorkDir, strIconPath
strWorkDir ="C:\Program Files\Cisco Systems\VPN Client"
strAppPath = "C:\Program Files\Cisco Systems\VPN Client\ipsecdialer.exe"
strIconPath = "C:\Program Files\Cisco Systems\VPN Client\ipsecdialer.exe,0"
Set objShell = CreateObject("WScript.Shell")
objDesktop = objShell.SpecialFolders("AllUsersDesktop") 'this is where you assign where shortcut goes
Set objLink = objShell.CreateShortcut(objDesktop & "\Cisco VPN.lnk") 'this changes per install
' ---------------------------------------------------
' Section which adds the shortcut's key properties
objLink.Description = "Cisco VPN"
'objLink.HotKey = "CTRL+SHIFT+X"
objLink.IconLocation = strIconPath
objLink.TargetPath = strAppPath
objLink.WindowStyle = 3
objLink.WorkingDirectory = strWorkDir
objLink.Save
WScript.Quit
you can also use the .arguments property to have the shortcut automatically launch the vpn connection, but if you use multiple vpn connections this might not be advisable.
Posted by:
RoverDrover
13 years ago
Posted by:
cblake
13 years ago
Thanks dyehardfan - that's nearly verbatim how I did my Cisco VPN client as well.
RoverDrover - Do this as an MI, and if the software is present it doesn't run again.
Otherwise you could run it in the scripting tab and give it some litmus test like a smart label that is removed if a condition is true (like a custom inventory rule that looks for your config file). Add a verify stage to your script as well as a double check. You could certainly use
Otherwise you could run it in the scripting tab and give it some litmus test like a smart label that is removed if a condition is true (like a custom inventory rule that looks for your config file). Add a verify stage to your script as well as a double check. You could certainly use
"if exist c:\xxxxx\VPN Client...." goto END or something like thatthe problem there is that the script has to actually run to evaluate that statement; to be more efficient have something that only runs the script on machines that still need it.
Posted by:
RoverDrover
13 years ago
Thank you, Christopher. You guys are helping me with two issues right now, and I appreciate it. Things changed, and I'm not going to get to work on the Kbox till this weekend, so don't think I'm just blowing off the good advice. I'll let you know how it goes and if I have more problems.
Both of you have a good week, and I appreciate your time,
Bob
Both of you have a good week, and I appreciate your time,
Bob
Posted by:
nolefan
13 years ago
Posted by:
dchristian
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.