Link to home
Create AccountLog in
Avatar of gokhanoz
gokhanoz

asked on

Script

Hi. My aim is to copy the specific file to the specific users desktops from WIN2003 Standart Edition (operating as domain controller)to XP desktops.

Like this:

Suppose that I have client in my domain whose computer name is account1 and operators user name is op1.
The file path which client must get the file from the server is \\mainserver\c\%clients_user_name%\application1.exe

%clients_user_name% is the point which I'm missing here.

I think the script must like that;

copy \\mainserver\c\%clients_user_name%\application1.exe c:\application1.exe

and upon exit another script should delete the file from the clients computer.

I know that I have to add that script into the user configuration > windows settings > scripts > log_on

Thanks in advance


ASKER CERTIFIED SOLUTION
Avatar of TheCleaner
TheCleaner
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of gokhanoz
gokhanoz

ASKER

Ok thanks for your reply. If I run this script from the clients computer, It's working well but It's not working as the group policy login script. Why? Is it because of the policy setting?
The script should work if it's in the User Config login script section.  Did you add it correctly?  Putting a script in place is a little tricky in GP.

Basically (the way I do it, cause it always works):

1.  go to the log on scripts section of the GPO and double click on logon
2.  Click Show Files, then Drag/drop the batch file/script into that location from wherever it is at
3.  Close that window, then Click ADD
4.  Click Browse, then just double click that script you just put in the directory

That's it.
Thanks for the quick points!  Happy to help.