General discussion

Locked

Execute when user log on

By Litus ·
I need that every time that an user log on a Client PC (Windows 2000 Workstation) on a Windows 2000 domain executes a task:
C:\WINNT\system32\xcopy.exe "C:\Arxius de programa\Inici\Microsoft" "C:\Documents and Settings\%username%\Dades de programa\Microsoft" /s /y . This will copy 3 files (on 2 folders) to all users that log on this PC.
I set up a policy that on "User configuration/Admin templates/System/Log on-Log off" has this command line but when the user log on nothing happens!
What I'm making wrong? It's possible to make that? I need to copy this 3 files to all the users (500). Is there another path to achieve that?
Thanks a lot

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Execute when user log on

by leehellcat In reply to Execute when user log on

What you will most likely have to do is to create a batch file with the information in :
C:\WINNT\system32\xcopy.exe "C:\Arxius de programa\Inici\Microsoft" "C:\Documents and Settings\%username%\Dades de programa\Microsoft" /s /y
Then setup the policy to run the batch file.

Collapse -

Execute when user log on

by Litus In reply to Execute when user log on

A batch file? First I tried to put this command on file.bat but It doesn't work!!! Then I read that on policy I need to put an exe file and I put xcopy.exe

Collapse -

Execute when user log on

by Litus In reply to Execute when user log on

Point value changed by question poster.

Collapse -

Execute when user log on

by AkCk In reply to Execute when user log on

You can't use a xcopy command with a strings of commands behind in a policy.
1st question:
Do you need to copy these files in all systems?
2nd question:
Does it necessary need to recopy these files again if the user login to the same PC?

If yes to both quesiton, then try this:
Using the existing batch file, put the command in the each user properties under the ADUC.

Collapse -

Execute when user log on

by Litus In reply to Execute when user log on

Poster rated this answer

Collapse -

Execute when user log on

by shmaltz In reply to Execute when user log on

Does it work when you logon (you I mean having admin rights)? If it does then the problem is with permissions. Make sure that the user have access to: the profile, the xcopy command, and the source files.
If it doesn't then you didn't set it up right. Make sure you create a batch file with the above command, next make sure the batch file works for both admins and regular users. Next copy the batch file to the domain wide scripting folder (which will get replicated to all Domain Contorllers). Next put in an entery on the policy to run this batch file.

Collapse -

Execute when user log on

by Litus In reply to Execute when user log on

Poster rated this answer

Collapse -

Execute when user log on

by Litus In reply to Execute when user log on

This question was closed by the author

Back to Windows Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums