We help IT Professionals succeed at work.
Get Started

Powershell script to compare two directory content difference only ?

Last Modified: 2018-02-07
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.
Watch Question
Most Valuable Expert 2019
Most Valuable Expert 2018
This problem has been solved!
Unlock 3 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE