Jump to content

Recommended Posts

Posted

Hi again

Just wondering wot peeps feel is the best way to copy files from win2k server to client win2k using gpo.

ne info wood b appreciated :)


Posted

OK.... lets make it a little easier..

All i want to do is copy three files when a user logins. I can write the batch file but dont seem to be able to get the client name of who is logining in.

ne suggestions ??

Posted

%username%

is what you are looking for, or to be more specific:

IF %USERNAME%==Name GOTO :BLA

or

IF %USERNAME%==Name COPY source destination

that should do the trick (note: the comparison is case sensitive)

Posted

i must be missing summit....

i add this to the logon script in gpo but it dont work

copy "\\server\scripts\*.*" "\\testputer\c$\documents and settings"

the scripts directory is a share and the quotes as most know are because of the spaces in the command line...

The above works fine if run from a cmd line just not from gpo

I know the script is run as i added a net use command and that share appears but the files arent copied!!

ne1 ne ideas.... can i view the script as its run????

Posted

Thnxs for the interest and comment....

I belive i have remebered what i is doing wrong.. and will test my theory l8r when i get a phew mins :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...