Tag: PowerShell Coding

Confused Team site or 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,413 total views,  2 views today

 64,413 total views,  2 views today Team site or Communication site? in this tutorial, we will learn about what is a modern team site in SharePoint, what is a communication site in SharePoint Online, and what is the difference between a team site and a communication site in SharePoint Online. Then we will learn about how to

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

 104,539 total views,  6 views today

 104,539 total views,  6 views today In this article, we will learn how to convert classic SharePoint page to modern pages using the PnP Power Shell script.  Over the many years we as SharePoint professionals, have been using the SharePoint classic page both in SharePoint on-premise and SharePoint online(classic). But recently in the last couple of years,

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,236 total views,  8 views today

 89,236 total views,  8 views today 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

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,584 total views,  12 views today

 29,584 total views,  12 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

 24,689 total views

 24,689 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

 147,884 total views,  6 views today

 147,884 total views,  6 views today 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

Continue reading

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

Upload files to SharePoint document library using PowerShell - Demo

 82,930 total views,  10 views today

 82,930 total views,  10 views today 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

Continue reading

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

Encode and decode an URL using PowerShell coding

 196,947 total views,  20 views today

 196,947 total views,  20 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,496 total views,  2 views today

 60,496 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

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,306 total views,  6 views today

 23,306 total views,  6 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