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,647 total views

 64,647 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

 105,459 total views,  2 views today

 105,459 total views,  2 views today 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

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

 89,876 total views

 89,876 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

 29,952 total views

 29,952 total views 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 block PowerShell

Continue reading

Create log file in PowerShell in 2 proven steps

Using PowerShell create a log file

 25,233 total views

 25,233 total views 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 PowerShell –

Continue reading

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

Using PowerShell - Create a folder if not exists

 148,494 total views

 148,494 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,462 total views

 83,462 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

 198,295 total views,  4 views today

 198,295 total views,  4 views today 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

Continue reading

In 2 steps safely download files from SharePoint document library using PowerShell CSOM from the given date range

Download files from SharePoint document library using PowerShell script

 60,982 total views

 60,982 total views 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 SharePoint

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,700 total views

 23,700 total views 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 way to

Continue reading