berrick Posted September 5, 2004 Share Posted September 5, 2004 Hi againJust wondering wot peeps feel is the best way to copy files from win2k server to client win2k using gpo.ne info wood b appreciated Link to comment Share on other sites More sharing options...
berrick Posted September 6, 2004 Author Share Posted September 6, 2004 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 ?? Link to comment Share on other sites More sharing options...
what3v3r Posted September 6, 2004 Share Posted September 6, 2004 %username%is what you are looking for, or to be more specific:IF %USERNAME%==Name GOTO :BLAorIF %USERNAME%==Name COPY source destinationthat should do the trick (note: the comparison is case sensitive) Link to comment Share on other sites More sharing options...
berrick Posted September 6, 2004 Author Share Posted September 6, 2004 thnxs 4 replyIs wot i thought but it dont work hmmmmmm Link to comment Share on other sites More sharing options...
berrick Posted September 6, 2004 Author Share Posted September 6, 2004 i must be missing summit....i add this to the logon script in gpo but it dont workcopy "\\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 gpoI 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???? Link to comment Share on other sites More sharing options...
what3v3r Posted September 7, 2004 Share Posted September 7, 2004 you could try cmdow (http://unattended.msfn.org/xp/downloads.htm) to position/view the script window, you also may want to remove "@echo off"also since you are trying to copy the files to an admin share, make sure that the user the script is run on is an admin! Link to comment Share on other sites More sharing options...
berrick Posted September 7, 2004 Author Share Posted September 7, 2004 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now