Compare two directories


hello guys,

i need migrate few file shares. ll use robocopy migrate server 1 server 2. because lot of folders , files @ end of each script call power shell script compare (by size) source , destination , if different send alert.

i have tried few script list contents of directories space when want root of directories.

can 1 me , point me on right direction.

regards,

arestas

get-childitem c:\test\* -file -recurse |measure-object -sum length | select sum |ft -auto


\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source