OK, we have 2 W2K DCs at work connected via VPN over cable modem. These servers are also DFS (Distributed File System) servers.
Unfortunately, the VPN connection tends to drop and refuses to reconnect (I'm thinking it's a router problem, but that's another story), and at one point, the loss of connectivity causes a journal wrap error in DFS, so when I tried to recreate the DFS mapping, it caused the dreaded "move all of your files into *_NTFRS_xxxxxxxx folders" problem. Of course, it's now far too late to do an authoritative restore (files have been edited since then).
Long story short, I need a script that will:
1. Given a parent folder, will recursively search for files & subfolders.
2. Copy the contents of foldername to foldername_NTFRS_whatever the DFS-generated folder name is.
3. Copy the contents of foldername_NTFRS_whatever the DFS-generated folder name is BACK to foldername.
If anyone has run into this particular issue, I would surely appreciate the help, either if someone has a script to do this, or knows where I could find one on my own. Google et al has not been my friend on this.
Unfortunately, the VPN connection tends to drop and refuses to reconnect (I'm thinking it's a router problem, but that's another story), and at one point, the loss of connectivity causes a journal wrap error in DFS, so when I tried to recreate the DFS mapping, it caused the dreaded "move all of your files into *_NTFRS_xxxxxxxx folders" problem. Of course, it's now far too late to do an authoritative restore (files have been edited since then).
Long story short, I need a script that will:
1. Given a parent folder, will recursively search for files & subfolders.
2. Copy the contents of foldername to foldername_NTFRS_whatever the DFS-generated folder name is.
3. Copy the contents of foldername_NTFRS_whatever the DFS-generated folder name is BACK to foldername.
If anyone has run into this particular issue, I would surely appreciate the help, either if someone has a script to do this, or knows where I could find one on my own. Google et al has not been my friend on this.