Basant Gera
Basant Gera

Reputation: 113

how to add WSP file in central admin through Management Shell

I am adding wsp file as it already exist now I need to update it..

Its giving me a error message on management shell that

A solution with the same name and id already exist.

I am writing this command in management shell.

 Add-SPSolution "c:\Deploy\WSP\{file name}.wsp"  

Like this

Add-SPSolution "c:\Deploy\WSP\SharePointProject2.wsp"

Upvotes: 0

Views: 546

Answers (1)

Akshay Belure
Akshay Belure

Reputation: 204

There are two ways you can achieve this:

  1. Use 'Update-SPSolution' Or
  2. Remove solution using 'Remove-SPSolution' and add again using 'Add-SPSolution'

Upvotes: 0

Related Questions