Tag: PowerShell Coding

Team site vs Communication site? Should we create team site or communication site in SharePoint Online – O365?

How to create modern team site in SharePoint Online, Should we create a team site or communication site?

 64,837 total views

 64,837 total views Team site vs communication site: In this tutorial, we will learn about what a modern team site in SharePoint is, what a communication site in SharePoint Online is, and what the difference is between a team site and a communication site in SharePoint Online. Then we will learn about how to create a

Continue reading

In 2 steps convert classic SharePoint page to modern using PnP

convert classic SharePoint page to modern, in 2 steps convert a classic SharePoint page to modern using PnP

 106,343 total views

 106,343 total views In this article, we will learn how to convert classic SharePoint page to modern pages using the PnP Power Shell script. We as SharePoint professionals have long used the SharePoint classic page in both SharePoint on-premise and SharePoint online (classic). But recently, in the last couple of years, Microsoft has been focusing on

Continue reading

PowerShell: How to pass multiple parameters into a function in PowerShell with 2 proven steps

PowerShell: How to pass multiple parameters into a function in PowerShell

 90,238 total views

 90,238 total views How to pass multiple parameters into a function in PowerShell – In this post, I will show how to pass multiple parameters into a function in PowerShell coding. Addition of numbers function using PowerShell example: Function with multiple parameters PowerShell cls #The below sample function will accept numeric parameters and do the addtion.

Continue reading

Error exception handling in PowerShell – Try catch finally 3 blocks rules

Exception or Error handling in PowerShell -Try/Catch/Finally Block Example

 30,214 total views,  2 views today

 30,214 total views,  2 views today Error exception handling in PowerShell – Try catch finally – In this post, we will show how we can handle the exception in PowerShell coding using the try/catch/finally block and how we can write the error or exception message into the log file. Error exception handling in PowerShell: Exception handling using try/catch/finally

Continue reading

Create log file in PowerShell in 2 proven steps

Using PowerShell create a log file

 25,549 total views,  6 views today

 25,549 total views,  6 views today Create log file in PowerShell – In this post, I will show how to build or create a logging function in PowerShell in the PowerShell “.ps1” file directory. However, we can change to any directory wherever we wish – only we need to change the directory path. Create log file in

Continue reading

Using PowerShell create a folder if not exists – in 2 proven steps

Using PowerShell - Create a folder if not exists

 148,930 total views

 148,930 total views Using PowerShell create a folder if not exists – in this post, I will show how to create a folder or directory if not exist 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

Continue reading

In 2 steps instantly upload files to SharePoint document library using PowerShell CSOM

Upload files to SharePoint document library using PowerShell - Demo

 83,878 total views

 83,878 total views Upload files to SharePoint document library using PowerShell (SharePoint Online) – 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. Upload files to SharePoint document library using PowerShell CSOM Below is the list

Continue reading

Instantly in 2 steps encode and decode an URL using PowerShell coding

Encode and decode an URL using PowerShell coding

 199,251 total views

 199,251 total views Encode and decode an URL using PowerShell – 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: Encode and decode an URL using PowerShell coding A website’s

Continue reading

How to Easily Download Files from SharePoint using PowerShell with date filter

Download files from SharePoint document library using PowerShell script

 61,426 total views,  2 views today

 61,426 total views,  2 views today Download files from SharePoint Online document library using PowerShell: Here in this post, I will show how we can download files or documents from SharePoint Online document library using PowerShell CSOM script programmatically from the given date by passing the “From Date” and “To Date” to the query. Download files from

Continue reading

Fastest way to create multiple items in a list using PowerShell CSOM – O365

SharePoint list item - Create multiple items in a list using PowerShell

 23,940 total views,  4 views today

 23,940 total views,  4 views today Create multiple items in a list (SharePoint Online) using PowerShell – here in this post, I will show how to create multiple list items in SharePoint online list using the PowerShell CSOM code programmatically. Create multiple items in a list using PowerShell CSOM script in SharePoint Online (Which is the fastest

Continue reading