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
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to move files from one document library to another library using powershell
WhatsApp
Vijai Anand Ramalingam
13y
11.3
k
0
0
25
Blog
$siteURL="
http://serverName:1111/
"
$site=Get-SPSite $siteURL
$web=$site.RootWeb
$collFiles=$web.GetFolder("Shared Documents").Files
$count=$collFiles.Count
while($count -ne 0)
{
$collFiles[$count-1].MoveTo("Destination Library/" + $collFiles[$count-1].Name, $true)
$count--
}
How to move files from one document library to another library using powershell
Up Next
Programmatically copy files from one document library to anothet library in SharePoint
Ebook Download
View all
SharePoint Framework (SPFx) A Developers Guide
Read by 11.1k people
Download Now!
Learn
View all
Membership not found