goombawaho
MIS
Here's what I'm trying to do. Copy the Outlook files off workstations to the 2003 server for backup purposes (no Exchange involved, just stand-alone Outlook).
So, I want to copy the contents of the outlook folder to the server in the following location:
\\server\share\mailbackup\username
I want it to be able to run as a scheduled task AND regardless of whether the user is logged ON or OFF. So I guess I need to map a drive IN CASE the user is logged off. That's where I'm getting confused - whether you can map a network drive with the user logged off or if I should be using the \\ to address the server. If the user were to remain logged on, there would already be a mapped drive, but I don't want users remaining logged on, so it must work whether or not they are logged on or off.
Assuming that the user is logged off - am I on the right track here??
@echo on
net use x: "\\server1\shared\" /persistent:yes
rem copy the backup to the server
xcopy "C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\*.*" "x:\mailbackup\user1" /y
rem release mapped drive
net use x: /d /y
rem exit the batch file
exit
So, I want to copy the contents of the outlook folder to the server in the following location:
\\server\share\mailbackup\username
I want it to be able to run as a scheduled task AND regardless of whether the user is logged ON or OFF. So I guess I need to map a drive IN CASE the user is logged off. That's where I'm getting confused - whether you can map a network drive with the user logged off or if I should be using the \\ to address the server. If the user were to remain logged on, there would already be a mapped drive, but I don't want users remaining logged on, so it must work whether or not they are logged on or off.
Assuming that the user is logged off - am I on the right track here??
@echo on
net use x: "\\server1\shared\" /persistent:yes
rem copy the backup to the server
xcopy "C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\*.*" "x:\mailbackup\user1" /y
rem release mapped drive
net use x: /d /y
rem exit the batch file
exit