PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
Copy a share to a new server, keeping NTFS permissions, with a log.
1robocopy 'D:\Shares\Sales' '\\NEWFS01\D$\Shares\Sales' /E /COPYALL /DCOPY:DAT /R:1 /W:1 /MT:16 /LOG:C:\Temp\robocopy-sales.log /TEE/E copies without deleting. /MIR also deletes files at the destination that aren't in the source — use only when you mean it. Exit codes below 8 are success.