Avatar of Albert Widjaja
Albert Widjaja
Flag for Australia asked on

Powershell script to compare two directory content difference only ?

Hi people,

Can anyone here please help me with the Powershell script which can compare the shared directory content (subfolders and files )between \\Source\SharedDir1 and \\Destination\SharedDir2 ?

I need to know what's missing in the destination file server so I can manually copied it.

The background on this problem is that, I've done Robocopy from one file server to another file server, but somehow there are some things that still missing or moved by user.

There are about 2.78 million files in total of 198 GB in the source file server, hence if I run the Robocopy script again, it may take long to copy or list which file was not copied properly ? Because Robocopy also does not produce it that shows only file that is error.

Thanks in advance.
Powershell* RobocopyVB ScriptScripting Languages

Avatar of undefined
Last Comment
Albert Widjaja

8/22/2022 - Mon
SOLUTION
Damjan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Albert Widjaja

ASKER
OK, thanks for the reply.

So if I run the Robocopy command above, I assume it will just generate the load on the old file server and the log will be produced only for the error or the files & directories not available in the destination server ?
SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Albert Widjaja

ASKER
Thanks all !
Now I know more about Powershell and Robocopy :-)
Your help has saved me hundreds of hours of internet surfing.
fblack61