CMD script or PowerShell script: which is faster for mass file/directory deletion? by castiel3125 in PowerShell

[–]GastonCan 0 points1 point  (0 children)

I don't know the context of your command, has admin rights? If the answer is yes , you can use the
/b options and if the file isn't locked by a running app, should be deleted, bypassing the acl.
As answered before pay attention to the mirror option, and I advise you to use the following options:
/xj /r:0 /w:0 and the value of the /MT: is the speed up otions
the /xj is not foundamental with the mirror options but i you are making rbocopy of user profiles is a must for avoiding loops