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

  • and one more thing i have check your script it is for SPO Solution – S.P Mar 8 '16 at 6:14
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.

  • Akhoy as mentioned in previous comments Problem is resolved and we got the desired results... Thanx for the Help...:) – Ankitkumar Malde Mar 8 '16 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 '16 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
  • But i am working onPrem... So SPO Management shell would be required? – Ankitkumar Malde Mar 8 '16 at 6:15
  • Connect-SPOnline so for it is compulsory or else advice to change Get Credntial Commnad from Script – S.P Mar 8 '16 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. – Ankitkumar Malde Mar 8 '16 at 7:06
  • Resolve issue or not??? – S.P Mar 8 '16 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 '16 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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