Okay so I'm in the middle of a nightmare project (cleaning up a kludge while virtualizing and updating the servers for a school) and was hoping someone could give me a hand with this part.
The file server (is a mess) has a group of user folders for the students under D:\Students\Users (so far so good). Now in that Users folder there are folders for each year, that contain folders for each student. The problem is that I need to get all of the files, in all of the student folders, for all of the years, moved into a subdirectory (called Documents) of the student's folder ... So that it will synchronize properly with the newly created Domain DFS Root's User Home folders.
So what I'm looking at is this:
Users\
2012\
Student 1
(All Their Files)
Student 2
(All Their Files)
...
Student 199
(All Their Files)
Student 200
(All Their Files)
2013\
Student 1
(All Their Files)
Student 2
(All Their Files)
...
Student 199
(All Their Files)
Student 200
(All Their Files)
...
2024\
Student 1
(All Their Files)
Student 2
(All Their Files)
...
Student 199
(All Their Files)
Student 200
(All Their Files)
2025\
Student 1
(All Their Files)
Student 2
(All Their Files)
...
Student 199
(All Their Files)
Student 200
(All Their Files)
And what I need the script to make happen is this:
Users\
2012\
Student 1
Documents\
(All Their Files)
Student 2
Documents\
(All Their Files)
...
Student 199
Documents\
(All Their Files)
Student 200
Documents\
(All Their Files)
2013\
Student 1
Documents\
(All Their Files)
Student 2
Documents\
(All Their Files)
...
Student 199
Documents\
(All Their Files)
Student 200
Documents\
(All Their Files)
...
2024\
Student 1
Documents\
(All Their Files)
Student 2
Documents\
(All Their Files)
...
Student 199
Documents\
(All Their Files)
Student 200
Documents\
(All Their Files)
2025\
Student 1
Documents\
(All Their Files)
Student 2
Documents\
(All Their Files)
...
Student 199
Documents\
(All Their Files)
Student 200
Documents\
(All Their Files)
Now if I have to run the script once from inside each of the Year folders that's fine...especially if it makes the script easier to create...
...I just don't want to get stuck manually moving all the files for 3,000+ Student folders.
Thank you,
Stoic Joker
The file server (is a mess) has a group of user folders for the students under D:\Students\Users (so far so good). Now in that Users folder there are folders for each year, that contain folders for each student. The problem is that I need to get all of the files, in all of the student folders, for all of the years, moved into a subdirectory (called Documents) of the student's folder ... So that it will synchronize properly with the newly created Domain DFS Root's User Home folders.
So what I'm looking at is this:
Users\
2012\
Student 1
(All Their Files)
Student 2
(All Their Files)
...
Student 199
(All Their Files)
Student 200
(All Their Files)
2013\
Student 1
(All Their Files)
Student 2
(All Their Files)
...
Student 199
(All Their Files)
Student 200
(All Their Files)
...
2024\
Student 1
(All Their Files)
Student 2
(All Their Files)
...
Student 199
(All Their Files)
Student 200
(All Their Files)
2025\
Student 1
(All Their Files)
Student 2
(All Their Files)
...
Student 199
(All Their Files)
Student 200
(All Their Files)
And what I need the script to make happen is this:
Users\
2012\
Student 1
Documents\
(All Their Files)
Student 2
Documents\
(All Their Files)
...
Student 199
Documents\
(All Their Files)
Student 200
Documents\
(All Their Files)
2013\
Student 1
Documents\
(All Their Files)
Student 2
Documents\
(All Their Files)
...
Student 199
Documents\
(All Their Files)
Student 200
Documents\
(All Their Files)
...
2024\
Student 1
Documents\
(All Their Files)
Student 2
Documents\
(All Their Files)
...
Student 199
Documents\
(All Their Files)
Student 200
Documents\
(All Their Files)
2025\
Student 1
Documents\
(All Their Files)
Student 2
Documents\
(All Their Files)
...
Student 199
Documents\
(All Their Files)
Student 200
Documents\
(All Their Files)
Now if I have to run the script once from inside each of the Year folders that's fine...especially if it makes the script easier to create...
...I just don't want to get stuck manually moving all the files for 3,000+ Student folders.Thank you,
Stoic Joker











