VBS Script to copy Favorites & Outlook NK2 file to DFS network share
Posted on 2007-11-19
I'd like to create 2 VBS scripts to handle copying our users' Favorites and Outlook nk2 file from their local computer C:\Documents and Settings\%username%\Favorites\* and C:\Documents and Settings\%username%\Application Data\Microsoft\Outlook\*.nk2 to a DFS Share \\domain.net\data\userdata\%username%\Favorites and \\domain.net\data\userdata\%username%\Outlook.
Our users don't have a User drive mapped, we just use folder redirection for their My Documents and Desktops.
I'd like to have a script run at logoff that copies all the necessary files to their %userdata% folder on the DFS share and at login copy the data back down to the workstation. Ultimately I'd like to have folder redirection for the .nk2 file and favorites. I can handle re-working the script to modify the source and destination, but I'm having trouble figuring out how to script the %username% variable in my testing scripts.
Thanks for your help!