[ACCEPTED]-How to tell 'PowerShell' Copy-Item to unconditionally copy files-powershell

Accepted answer
Score: 169

It has a -force parameter.​​​​


Score: 19

From the documentation (help copy-item -full):

-force <SwitchParameter>
    Allows cmdlet to override restrictions such as renaming existing files as long as security is not compromised.

    Required?                    false
    Position?                    named
    Default value                False
    Accept pipeline input?       false
    Accept wildcard characters?  false


More Related questions