cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
SimonH
Engaged Sweeper II
Hi

I am trying to create an installer package that copies a vbs script to c:\ and then a shortcut to the vbs script to C:\Users\Public\Desktop but I get the following error:

The first part copies but it fails on step 2,

Result: Deployment ended: Incorrect function. Stop(Failure). Credential: (domain\Administrator). ShareCredential: (domain\LANSweeper).
Command: copy /y \\server\folder\path\Files\MappedDrives\WRDriveMappings "C:\Users\Public\Desktop"


Is this because I am trying to copy a shortcut to that location?

I am having to create a shortcut so we can use a custom icon instead of the default .vbs one

This is the installer package

Copy - Mapped Drives
Copy login script vbs to c drive and mapped drives shortcut to public desktop
0
0
900
False
2


1
Copy Login Script
2
0,1641,3010
2
-3
copy /y \\server\folder\path\Scripts\WRLoginScript.vbs "C:\"
False

2
Copty Mapped Drive .vbs to desktop
2
0,1641,3010
-2
-3
copy /y \\server\folder\path\Files\MappedDrives\WRDriveMappings "C:\Users\Public\Desktop"
False
1 ACCEPTED SOLUTION
Ruben1
Engaged Sweeper III
Try:

copy "\\server\folder\path\Files\MappedDrives\WRDriveMappings.lnk" C:\Users\Public\Desktop

View solution in original post

2 REPLIES 2
SimonH
Engaged Sweeper II
Thank you, I cant believe I missed the .lnk
Ruben1
Engaged Sweeper III
Try:

copy "\\server\folder\path\Files\MappedDrives\WRDriveMappings.lnk" C:\Users\Public\Desktop