Want to become a Vibe Coder? Join Vibe Coding Training here
x
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
PowerShell Script to Download WSP Files from Production Server
WhatsApp
Krishna Murthy
Jul 21
2015
2
k
0
0
System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”)
$farm = [Microsoft.SharePoint.Administration.SPFarm]::Local
#All wsp file names separated by comma, in below example we will consider only two files
$Filename = “wspFile1.wsp”,”wspFile2.wsp”
Foreach($file1
in
$Filename)
{
$solution = $farm.Solutions[$file1]
$file = $solution.SolutionFile
$file.SaveAs(“c:\wspfiles\”+$file1)
}
PowerShell
Sharepoint
WSP
Up Next
PowerShell Script to Download WSP Files from Production Server