Posts

Es werden Posts vom Januar, 2024 angezeigt.

Get started with the PnP PowerShell cmdlets for Office 365 (SharePoint & Co.)

A lot of features and functions within Office 365 can only be managed with PowerShell. Of course everything can be controlled with the standard PowerShell module  Microsoft.Online.Sharepoint.PowerShell but only with this module some tasks are very complex to realize. For example to change the standard search scope in SharePoint Online without the PnP extension you need the following code: With the PnP extension only one line of script code is necessary: $siteURL = "https://my-sharepoint-domain.sharepoint.com/sites/Sales" $userAccess = Get-Credential  Try {     $currentCtx = New-Object Microsoft.SharePoint.Client.ClientContext($siteURL)     $currentCtx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($userAccess.UserName,$userAccess.Password)     $web = $currentCtx.Web     $currentCtx.Load($web)     $currentCtx.ExecuteQuery()       $web.SearchScope = 1     $web.Update()     $currentCtx.ExecuteQuery() } Catch {     // log or show error } With

Use PnP PowerShell cmdlets (SharePoint / Office 365) with PowerShell Version 7.x & Visual Studio Code

Bild
If you want to use the PnP PowerShell cmdlets for Microsoft 365 environments and products such as SharePoint Online, Microsoft Teams, Microsoft Planner, Microsoft Flow and more you need to install at least Windows PowerShell Version 7.2. The standard PowerShell version on Windows systems is version 5.1. This version is not longer being developed and the version can only be used with Windows operating systems. The 5.1 version based on .NET Framework 4.5. The new PowerShell generation starting with version 6.0 based on .NET Core 2.0. This means that PowerShell version 5.1 and 6.0 is completely independent. Features like the Windows PowerShell Integrated Scripting Environment (ISE) is no longer compatible with the new version 😒. For various compatibility reasons, also the following modules are no longer included in the new PowerShell: Microsoft.PowerShell.LocalAccounts Microsoft.PowerShell.ODataUtils Microsoft.PowerShell.Operation.Validation PSScheduledJob PSWorkflow PSWorkflowUtility So

Viva Connections: Das Dashboard gestalten mit erweiterten Karten

Bild
Das Viva Connections Dashboard kann über Karten um gewünschte Funktionalitäten erweitert werden. Diese Karten sind vergleichbar mit SharePoint Webparts/Apps und die Verwendung ist daher analog SharePoint sehr einfach. Es gibt 3 verschiedene Kartentypen: eingebaute Karten für eine bestimmte Funktion zusätzliche Karten von anderen Herstellern (Third-Party Karten) Kartendesigner Eine eingebaute Karte ist zum Beispiel die Weblink-Karte, die für die Ausgabe eines Links zuständig ist. Neben den Standard-Karten können über den SharePoint Store noch weitere Karten anderer Hersteller installiert und eingebunden werden. Mit dem Kartendesigner steht darüber hinaus eine sehr flexible Möglichkeit zur Verfügung, eigene Funktionalitäten zu realisieren, ohne direkt programmatisch eine Karte umsetzen zu müssen. Der Kartendesigner stellt mittlerweile die Möglichkeit bereit, REST-API Aufrufe absetzen zu können. Die empfangenen Daten können innerhalb einer eigenen Adaptiven-Karte angezeigt werden. Das fol