I wrote a script to install Cisco VPN durring a SCCM OSD Task Sequence. The problem with the VPN client is that it needs to be copied locally, which the script should do, but for some reason it isn't working and I can't figure out why to save my life. Anyone have an idea how to make this work?
Dim oFSO, oOSDEnv, oWSHShell
Dim sOSDSite, sIniLocation, sOSDServer
Dim sInstallPath, sSourcePath, sInstallString
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oOSDEnv = CreateObject("Microsoft.SMS.TSEnvironment")
Set oWSHShell = WScript.CreateObject("WScript.Shell")
sOSDServer = oOSDEnv("_SMSTSMP")
sInstallPath = "C:\Windows\Utils\Cisco"
sSourcePath = "\\" & sOSDServer & "\Cisco_VPN_22.214.171.124_EN.02.PKG\*.*"
If Not oFSO.FolderExists(sInstallPath) Then
If oFSO.FolderExists(sInstallPath) Then
oFSO.CopyFile sSourcePath, sInstallPath, True
sInstallString = "msiexec /i " & Chr(34) & "C:\Windows\Utils\Cisco\vpnclient_setup.msi" & Chr(34) & " /qn REBOOT=REALLYSUPPRESS"
oWSHShell.Run sInstallString, 1, True