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

Azure MFA with Azure AD and RDS

Failed to setup initiator portal. Error status is given in the dump data.

Invalid pointer on gpresult /h gpreport.html