Category: PowerShell

Using PowerShell – Create a folder if not exists

Using PowerShell - Create a folder if not exists
Awesome Screenshot

 147,062 total views,  6 views today

 147,062 total views,  6 views today In this post, I will show how to create a folder or directory if not exists in the given directory or path using PowerShell code or script. The below PowerShell code will create a folder with the name “LogFiles” in the .ps1 file root directory if not exists. Create a folder

Continue reading

SharePoint Online Automation – O365 – Upload files to document library using PowerShell CSOM

 82,455 total views

 82,455 total views Here in this post – I will show how we can upload multiple files or documents to SharePoint online document library using PowerShell CSOM programmatically from the given directory. Below is the list of files – located in my local directory which I am going to upload to the SharePoint Online document library

Continue reading

Encode and decode an URL using PowerShell coding

Encode and decode an URL using PowerShell coding

 194,212 total views,  22 views today

 194,212 total views,  22 views today Here in this post, I will show how to encode and decode the URL using PowerShell coding, and also we will learn how to decode a SharePoint list id (GUID) using the online tool. Introduction: A website’s URL, also usually known as the “website address”, is what we would enter into

Continue reading

SharePoint Online Automation – O365 – Download files from a document library using PowerShell CSOM

 60,176 total views

 60,176 total views Here in this post – I will show how we can download files or documents from SharePoint online document library using PowerShell CSOM programmatically from the given date by passing the “From Date” and “To Date” to the query. Let’s say we want to download certain files from the SharePoint document library that

Continue reading

SharePoint Online Automation – O365 – Create multiple items in a list using PowerShell CSOM

 23,172 total views

 23,172 total views Here in this post, I will show how to create multiple list items in SharePoint online list using  PowerShell CSOM code programmatically. PowerShell CSOM code to add multiple items: CLS #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” $fileName = “Adding_Multiple_Items_Report”

Continue reading

SharePoint Online Automation – O365 – Send email from SharePoint online Using CSOM PowerShell script

 14,364 total views

 14,364 total views In this post, I will share how we can send emails from SharePoint online using CSOM PowerShell script code programmatically. CSOM PowerShell Script to send email from SharePoint online CLS #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” $fileName = “Email_Sending_Report”

Continue reading

[Verified] Get SharePoint remote server inventory report using PowerShell (automated email sending process)

 19,961 total views

 19,961 total views Today I will explain, how to get a SharePoint remote server inventory report using PowerShell using that we can send an email automatically to the respective recipients. And also will see, how we can monitor the SharePoint servers without much human interaction. Table of Contents: Introduction Example of use case Description about the

Continue reading

[Fixed] How to fix the wrong tenant credential error in SharePoint online?

 9,961 total views,  1 views today

 9,961 total views,  1 views today In this troubleshooting technique, we will learn about how to fix the wrong tenant credential error in SharePoint online. Issue Description: Recently I was working on to configure the hybrid environment for our tenant. In order to do that I have picked up the Hybrid Picker Wizard and following the instruction

Continue reading