Link to home
Start Free TrialLog in
Avatar of valuelabs97
valuelabs97Flag for India

asked on

Login script is not working

I put a login script in our domain to copy a file from a domain controller to all the machine in my domain. But the file is not copying. Can any one help me out on this. I tried the script as computer/user login script but it won't works. Is there any other way.

Thanks.

The script:
net use u: \\serverdc\scr
u:
copy logo.scr %systemdrive%\ /y/v
%systemdrive%
net use u: /delete
Avatar of ostaehr
ostaehr
Flag of Germany image

Normally users do not have permissions to write files to %systemdrive% (which should be C:). You should try another path such as %temp% which is inside the user profile path where this user has full access.

Regards, Oliver
There could also be an issue with user permissions via GPO with the ability to map drives..   Why not just


copy \\serverdc\scr\logo.scr %systemdrive%\ /y/v

?
to test the permission issue run the script in using a user account in his PC if it worked then you need to check is login script applied to his account or not.

run > cmd

Type "gpresult"

You must to see the policy that contains the loign script under

"Applied Group Policy Objects"

Of course you need to run all above in user PC using his account.
Avatar of valuelabs97

ASKER

I tried all above still same
ASKER CERTIFIED SOLUTION
Avatar of Don
Don
Flag of United States of America image

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