2

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

http://dev.office.com/blogs/announcing-responsive-ui-package-for-sharepoint-on-premises-2013-2016

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

https://github.com/OfficeDev/PnP-Tools/blob/master/Solutions/SharePoint.UI.Responsive/Enable-SPResponsiveUI.ps1

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

2 Answers 2

3

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.

2
  • Akhoy as mentioned in previous comments Problem is resolved and we got the desired results... Thanx for the Help...:) Commented 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
    Commented Mar 8, 2016 at 9:48
1

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

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

  Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction Stop
7
  • But i am working onPrem... So SPO Management shell would be required? Commented 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
    Commented 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. Commented Mar 8, 2016 at 7:06
  • Resolve issue or not???
    – S.P
    Commented 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
    Commented Mar 8, 2016 at 9:10

Your Answer

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

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