Error 'file was not found' when running Add-SPSolution on sharepoint mangament shell

If you get the error message
The specified file was not found.
when running the command 
Add-SPSolution -LiteralPath XXXXXXXX
but the XXXXXXX file exists and the connected user has the right to read this file, execute the two following steps before executing the command:
  1. Run the Power Shell as Administrator (right click > Run as administrator)
  2. Do NOT copy paste the command, parameter and file but write it by hand entirely! Use the tab completion to ensure correct spelling.
(In my case the XXXXXXX file was  'C:\Program Files\Microsoft\SharePoint 2010 Administration Tookit\Content Management Interoperability Services (CMIS) Connectors\spcmis.wsp')

Comments

Popular posts from this blog

Resolve "Cannot download packages whilst offline" issue in Deja-Dup backup software

ubuntu 20.04 / netplan / change mac address and static ip

wireshark ssh remote connect on linux server