Link to home
Start Free TrialLog in
Avatar of Albert Widjaja
Albert WidjajaFlag 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.
SOLUTION
Avatar of Damjan
Damjan
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks all !
Now I know more about Powershell and Robocopy :-)