Skip to content

vbs script issues

Featured Replies

I've created a script to copy a file from a file share to a directory on the PC, This runs fine when i run it independently but when i try creating a package in SCCM it either says installed when it hasn't or it fails. I've tried using cscript.exe /the name of script.vbs as well as without using that. The script is below

 

Option Explicit
dim path
path=CreateObject("WScript.Shell").ExpandEnvironmentStrings("C:\Program Files (x86)\Cisco Systems\VPN Client\Profiles")
dim objFSO
set objFSO=CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(path & ("\vpn.pcf")) = False Then
ObjFSO.CopyFile "\\server-fileshare\APPS\VPN new\Client Software\vpn.pcf", path & "\"
end if

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.