Solved

COPY command in LoginScript

Posted on 2006-07-07
6
214 Views
Last Modified: 2010-04-19
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.
0
Comment
Question by:dingir
  • 3
  • 3
6 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Kane - TechSoEasy earned 250 total points
ID: 17063036
You have to use the UNC path for the location of the file, not a mapped drive.

Jeff
TechsoEasy
0
 
LVL 1

Author Comment

by:dingir
ID: 17070969
Hi Jeff! I'm using UNC path, but the problem was fixed. The script wouldn't take two IF EXIST command so I removed it and lab on it later :-).
Thank's!
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 17071027
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
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 1

Author Comment

by:dingir
ID: 17071151
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 :-).
0
 
LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 17074415
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
0
 
LVL 1

Author Comment

by:dingir
ID: 17079120
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.
0

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SBS 2011 and Windows 10 GPM 10 68
What is filling up the server HDD? 13 59
SBS serve  2008 offsite backup 2 76
Move (NOT migrate) from SBS 2008 to Server 2016 (no Exchange) 8 114
This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Small Business Server 2011. NOTE: This guide has been written using the preview version of SBS2011 therefore some of the screens may …
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now