Forum Discussion
CS_HelpDesk
2 years agoGoTo Contributor
Copy a folder to a given destination.
---
$source = $null
$destination = $null
$overwrite = $false
If (-Not (Test-Path -Path $destination -PathType Container))
{
New-Item -Path $destination -ItemType Container
}
Copy-Item -Path $source -Destination $destination -Recurse -Force:$overwrite –Verbose