Link to home
Start Free TrialLog in
Avatar of kpiller
kpillerFlag for United States of America

asked on

batch file through group policy not copying files from share

I have a batch file that is used just for putting shortcuts on users desktops.

It just creates a couple of folders on the desktop and copies some shortcuts from a server share into the folder.

The script works when run manually and I currently use it via each individual users account login script setting.

When I put the script in Group Policy it creates the folders on the desktop just fine but does not copy the shortcuts from the network share. It is using UNC path and I tried it with IP and DNS name. Also I put the shortcuts I want to copy on a share of a domain controller and also tried a member server.

The shortcuts are not in the root of the share and I have not tried putting them in the root of a share.

It is currently like

\\servername\sharename\folder\shortcut.lnk

I am trying to copy them to the All Users/Desktop

It does create the folders just fine but kind of seems like it can't find the files on the network share.

Thanks all
Avatar of kpiller
kpiller
Flag of United States of America image

ASKER

Looks like this has something to do with permissions.
Avatar of Dark_King
Dark_King

Sounds like you not running this policy as user.
Set server share as public to se if this is the case.
Sound like kpiller has a solution or?
Avatar of kpiller

ASKER

I just made fresh share on a member server and it is working. I do not know why I can not get it to work from other network shares. I was able to work around this issue, only difference was it is a 2003 member server.
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial