kwizcom banner advertisement

SharePoint Online: Get List Views using PowerShell

July 28, 2017    , , ,
Requirement: Get SharePoint Online List Views using PowerShell. PowerShell to Get All Views from a List: This PowerShell script gets all views from a SharePoint Online list or library. #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" #Config Parameters $SiteURL= "https://crescent.sharepoint.com/" $ListName="Projects" #Setup Credentials to connect $Cred = Get-Credential $Cred = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password) Try { #Setup the context $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $Ctx.Credentials = $Cred #Get the List $List=$Ctx.Web.Lists.GetByTitle($ListName) #$Ctx.Load($List)
SharePoint Online: Get List Views using PowerShell SharePoint Online: Get List Views using PowerShell Reviewed by Salaudeen Rajack on July 28, 2017 Rating: 5

SharePoint Online: Get List Settings using PowerShell

July 28, 2017    , , ,
Requirement: Get SharePoint Online list settings using PowerShell How to Get List Properties in SharePoint Online? To get list properties such as List Title, Description, Versioning Settings, Require Checkout , etc you can head on to List setting page. SharePoint Online: PowerShell to Get List Properties You can get list properties of a SharePoint Online list using this PowerShell script. #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" #Config Parameters $SiteURL= "https://crescent.sharepoint.com/" $ListName="Projects" #Setup Credentials to connect $Cred = Get-Credential $Cred = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password) Try {
SharePoint Online: Get List Settings using PowerShell SharePoint Online: Get List Settings using PowerShell Reviewed by Salaudeen Rajack on July 28, 2017 Rating: 5

How to Download All Files from a SharePoint Site?

July 25, 2017    , , ,
Requirement: Download All Files from a SharePoint Site How to Download All Files in SharePoint Site?  To download all files from a SharePoint document library or folder, Simply use "Explore View". Navigate to your SharePoint On-premises or SharePoint Online library. Click on "View in File Explorer" from Views Drop down in SharePoint Online. For SharePoint On-premises, Click on "Open with Explorer" button in "Library" tab. From the Explore view, you can download all documents or all attachments from any list or library to your local machine. Now in the Explorer view, navigate one level up and you can download the complete site or site collection using explorer view by navigating up and down to the site, list or library objects. In modern libraries, You can simply select all files and hit "Download" button to download all files from a document library. PowerShell to Download All Files from SharePoint site: We can also
How to Download All Files from a SharePoint Site? How to Download All Files from a SharePoint Site? Reviewed by Salaudeen Rajack on July 25, 2017 Rating: 5

Archive ULS & IIS Log Files in SharePoint using PowerShell

July 08, 2017    , , , ,
Requirement: Archive Log files of IIS and ULS Log.  Log files in SharePoint (both IIS Log and ULS Log) could grow and fill-up the disk space based on your configurations and usage. There are many scripts available in various blogs and boards and Here is my own script to archive Log files on SharePoint servers. PowerShell to Archive Log Files in SharePoint: Set the Log file path and archive location in the configuration parameters section and run the script. This script does the following: Copies all log files which are last modified before 7 Days or earlier from today, to a folder. Create a Zip file from the folder containing log files to archive. Deletes old log files. Add-Type -Assembly System.IO.Compression.FileSystem #Configuration Parameters $LogFilesPath="C:\inetpub\logs\LogFiles\W3SVC3" $ArchivePath="C:\LogArchive" #Get All Log Files Modified before Last Week $LogFilesToArchive = Get-ChildItem -Path $LogFilesPath -recurse | where-object {$_.La
Archive ULS & IIS Log Files in SharePoint using PowerShell Archive ULS & IIS Log Files in SharePoint using PowerShell Reviewed by Salaudeen Rajack on July 08, 2017 Rating: 5

How to Download a Folder from SharePoint Online using PowerShell?

July 02, 2017    , , ,
Requirement : Download folder from SharePoint Online How to Download a Folder from SharePoint Online? To download a folder in SharePoint online, Follow these steps: Login to your SharePoint Online Site, Navigate to the Folder you want to download. Right click on the Folder  >> Choose "Download" from the context menu. You can also use the "Download" button from the toolbar. This brings you a Zip file with the Selected folder and its Sub-Folders and its files.   Download SharePoint Online Folder using PowerShell:  Now, when we need to download a folder repeatedly, or automatically on a schedule basis, we can utilize PowerShell. Here is my PowerShell to download a folder from SharePoint Online.   #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 Extensio
How to Download a Folder from SharePoint Online using PowerShell? How to Download a Folder from SharePoint Online using PowerShell? Reviewed by Salaudeen Rajack on July 02, 2017 Rating: 5
Powered by Blogger.