Skip to main content

Posts

Showing posts with the label PowerShell

Create App Catalog in SharePoint Online

In SharePoint, the App Catalog is a central location where we can manage both in-house and outside produced apps and make them accessible for users to install across all site collections. If you attempt to add a new app from your SharePoint Online site's Site Contents page, installed applications will be displayed under the "From Your Organization" link.  To create an App Catalog site in SharePoint Online, follow the instructions in this article. App catalog can be created at two level, a global app catalog and an app catalog specific to a site collection.  Create an SharePoint Online app catalog site collection Login into Microsoft 365 as a global admin/SharePoint admin.  Select the App bar and go to Admin and then click on the SharePoint Admin . Select the "More features" and click on the " Apps " If the app catalog is not created already, you will get the option for "App Catalog"  and if it's already created you will navigate to the ap...

Update list metadata Created By,Modified By, Created,Modified Field using PowerShell

In this article, we are going to learn "How to update list metadata using PowerShell". In some cases  we want a particular person to be the created by and modified by and we also want to update the time stamp of modified at and created. We can achieve this using PowerShell. Power shell to update Created By,Modified By, Created,Modified field values --Load SharePoint CSOM Assemblies-- Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"     -- Replace the tenantName and listName with your site name and list name -- $SiteUrl = "https://tenantName.sharepoint.com/sites/training/" $ListName= "listName" $ID=1 ---- Replace the Username and Password with your one-- $Username = "userId"   $Password = "pwd" |  ConvertTo-...