C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to copy files from one document library to another library using powershell
WhatsApp
Vijai Anand Ramalingam
14y
5.2
k
0
0
25
Blog
$siteURL="
http://serverName:1111/
"
$site=Get-SPSite $siteURL
$web=$site.RootWeb
$collFiles=$web.GetFolder("Shared Documents").Files
foreach($file in $collFiles)
{
$file.CopyTo("Destination Library/"+$file.Name,$true)
}
How to copy files from one document library to another library using powershell
People also reading
Membership not found