berrick Posted September 5, 2004 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
berrick Posted September 6, 2004 Author 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 ??
what3v3r Posted September 6, 2004 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)
berrick Posted September 6, 2004 Author Posted September 6, 2004 thnxs 4 replyIs wot i thought but it dont work hmmmmmm
berrick Posted September 6, 2004 Author 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????
what3v3r Posted September 7, 2004 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!
berrick Posted September 7, 2004 Author 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
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