dingir
asked on
COPY command in LoginScript
Hi! How do I, through login script, make a file being copied from server to client, everytime a user logs in? The file is available through a share where the user has all permissions except full control.
I've use a few COPY lines for this on Windows 2003 Server Standard login script and it works fine THERE. I've now tried just to transfer those lines over to SBS 2003 but the files don't being copied. I have network drives mapping in same loginscript, therefore I know the script actually loads when user login.
I've use a few COPY lines for this on Windows 2003 Server Standard login script and it works fine THERE. I've now tried just to transfer those lines over to SBS 2003 but the files don't being copied. I have network drives mapping in same loginscript, therefore I know the script actually loads when user login.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Then it's not really fixed... so it would be best to have this question deleted.
If you have more than one file to check for and copy you should just create separate batch files, store them in the \\SBSSERVER\NETLOGON share and use the CALL function in your SBS_LOGIN_SCRIPT.bat file.
Jeff
TechSoEasy
If you have more than one file to check for and copy you should just create separate batch files, store them in the \\SBSSERVER\NETLOGON share and use the CALL function in your SBS_LOGIN_SCRIPT.bat file.
Jeff
TechSoEasy
ASKER
Aha that's the problem? That the script won't take difference lines with IF EXIST as difference commands? Maybe that's why the clients behave like running the files instead of copying them (or not).
I complete this question because your answer Would be a answer. Other peoples may searching for a problem with if exists or that UNC must be used in batch login scripts :-).
I complete this question because your answer Would be a answer. Other peoples may searching for a problem with if exists or that UNC must be used in batch login scripts :-).
Now my answer is the answer... but before it wasn't. :-)
FYI, it's better to put ALL of your additional items such as drive mapping, etc in separate batch files and just CALL them with the SBS_LOGIN_SCRIPT.bat file. This way, if something doesn't work, it keeps going instead of failing.
Jeff
TechSoEasy
FYI, it's better to put ALL of your additional items such as drive mapping, etc in separate batch files and just CALL them with the SBS_LOGIN_SCRIPT.bat file. This way, if something doesn't work, it keeps going instead of failing.
Jeff
TechSoEasy
ASKER
Hi! You're right about it :-)
Firstly all basic needs to work those four weeks i'm not on place, vacation times you know :-). After that I will try that comments you gaved about using Group-thing through the SBS_LOGIN_SCRIPT for sorting out difference batchfiles/commands to difference user groups.
Firstly all basic needs to work those four weeks i'm not on place, vacation times you know :-). After that I will try that comments you gaved about using Group-thing through the SBS_LOGIN_SCRIPT for sorting out difference batchfiles/commands to difference user groups.
ASKER
Thank's!