I am trying to implement Responsive UI Package for SharePoint on-premises (2013 and 2016) from this link


Now when I try to enable the feature using PS1 Script i get following error saying

The term 'Connect-SPOnline' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

PS1 Script to Enable responsive Package is


  • and one more thing i have check your script it is for SPO Solution
    – S.P
    Mar 8, 2016 at 6:14

2 Answers 2


Download and install the PS commands from http://aka.ms/officedevpnpcmdlets15. It should unpack the dll's to C:\Program Files (x86)\OfficeDevPnP.PowerShell.V15.Commands.

You then have to import the module which has this cmdlet.

Run import-module 'C:\Program Files (x86)\CorrectPath\OfficeDevPnP.PowerShell.V15.Commands.dll'.

It should work then.

  • Akhoy as mentioned in previous comments Problem is resolved and we got the desired results... Thanx for the Help...:) Mar 8, 2016 at 9:45
  • @AnkitkumarMalde No problem. just placing it here for future readers. I'd also faced this problem and this resolved it.
    – Akhoy
    Mar 8, 2016 at 9:48

Which ManagmentShell you are using bcoz for SPO its Defrrent you have to run your script in to It "Sharepoint Online Management Shell"

and load below assembly


  Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction Stop
  • But i am working onPrem... So SPO Management shell would be required? Mar 8, 2016 at 6:15
  • Connect-SPOnline so for it is compulsory or else advice to change Get Credntial Commnad from Script
    – S.P
    Mar 8, 2016 at 6:20
  • Thanx SP for the help... but the orignal script only worked for us... Issue was of loading Powershell Snappin and resolving that solved our issue. Mar 8, 2016 at 7:06
  • Resolve issue or not???
    – S.P
    Mar 8, 2016 at 7:07
  • 1
    @S.P it is not only for O365. It is also for on prem. This is not the OOB cmdlet. It has been created by the OfficeDev team. github.com/OfficeDev/PnP-PowerShell/blob/master/Documentation/…
    – Akhoy
    Mar 8, 2016 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.