Hi everyone!

I'm a newbie to scripting(especially related to Active directory) and I
figure this would be a good starting point to learn.
Here is the situation.

I am installing a new server, and I would like to move all my users shares
to the new server.
Tasks that I think will need to happen in the process in no specific order.

0) Create a share on Machine2 called users, and set it to not inherit
permissions.
1) Copy all users shares from Machine1 to Machine2
2) Set NTFS attributes on each individual share on Machine2 to the following
%USERNAME% (depending on the user)
Modify, Read&Execute, List, Read, Write
Administrators Group
Full Controll
3) Modify Active Directory entries of home folder(Connnect U drive)
to show the new path of \\Machine2\Users\%username%
4) Remove all the old shares on Machine1(figure I'd do this manually at a
later date incase/when I screw up :->


I have some novice level programming experiance in C# and VB so you can get
a little technical...Maybe a sample script that I can modify to meet my needs
or a direction to some good resources.

Thanks
Josh Martin

RE: Help moving users folders to a new machine by FbioJr

FbioJr
Wed Nov 08 14:05:02 CST 2006

Try ROBOCOPY(Resource Kit), for copy your files. It have options for copy
files with NTFS settings.

Example:

ROBOCOPY "\\oldserver\users$" "E:\users" /COPYALL /MIR /E /ZB
/TEE /TS /FP /w:1 /R:1 /V /NP /NDL /NS /NC /NFL /log:users.log ( use at
newserver)

--
Fábio Jr
Analista de Redes, MCSE
Brasil


"Josh" wrote:

> Hi everyone!
>
> I'm a newbie to scripting(especially related to Active directory) and I
> figure this would be a good starting point to learn.
> Here is the situation.
>
> I am installing a new server, and I would like to move all my users shares
> to the new server.
> Tasks that I think will need to happen in the process in no specific order.
>
> 0) Create a share on Machine2 called users, and set it to not inherit
> permissions.
> 1) Copy all users shares from Machine1 to Machine2
> 2) Set NTFS attributes on each individual share on Machine2 to the following
> %USERNAME% (depending on the user)
> Modify, Read&Execute, List, Read, Write
> Administrators Group
> Full Controll
> 3) Modify Active Directory entries of home folder(Connnect U drive)
> to show the new path of \\Machine2\Users\%username%
> 4) Remove all the old shares on Machine1(figure I'd do this manually at a
> later date incase/when I screw up :->
>
>
> I have some novice level programming experiance in C# and VB so you can get
> a little technical...Maybe a sample script that I can modify to meet my needs
> or a direction to some good resources.
>
> Thanks
> Josh Martin
>
>

RE: Help moving users folders to a new machine by Josh

Josh
Mon Nov 13 10:52:02 CST 2006

That may help moving the files and retaining the permissions but still
doesn't help in repointing all my active directory users to the new share.


"Fábio Jr" wrote:

> Try ROBOCOPY(Resource Kit), for copy your files. It have options for copy
> files with NTFS settings.
>
> Example:
>
> ROBOCOPY "\\oldserver\users$" "E:\users" /COPYALL /MIR /E /ZB
> /TEE /TS /FP /w:1 /R:1 /V /NP /NDL /NS /NC /NFL /log:users.log ( use at
> newserver)
>
> --
> Fábio Jr
> Analista de Redes, MCSE
> Brasil
>
>
> "Josh" wrote:
>
> > Hi everyone!
> >
> > I'm a newbie to scripting(especially related to Active directory) and I
> > figure this would be a good starting point to learn.
> > Here is the situation.
> >
> > I am installing a new server, and I would like to move all my users shares
> > to the new server.
> > Tasks that I think will need to happen in the process in no specific order.
> >
> > 0) Create a share on Machine2 called users, and set it to not inherit
> > permissions.
> > 1) Copy all users shares from Machine1 to Machine2
> > 2) Set NTFS attributes on each individual share on Machine2 to the following
> > %USERNAME% (depending on the user)
> > Modify, Read&Execute, List, Read, Write
> > Administrators Group
> > Full Controll
> > 3) Modify Active Directory entries of home folder(Connnect U drive)
> > to show the new path of \\Machine2\Users\%username%
> > 4) Remove all the old shares on Machine1(figure I'd do this manually at a
> > later date incase/when I screw up :->
> >
> >
> > I have some novice level programming experiance in C# and VB so you can get
> > a little technical...Maybe a sample script that I can modify to meet my needs
> > or a direction to some good resources.
> >
> > Thanks
> > Josh Martin
> >
> >