PowerShell Tutorials [Beginners + Advanced]

If you want to learn PowerShell, check out all the tutorials on this page. I have added a lot of tutorials for beginners as well as for professionals who have knowledge of PowerShell before.

If you are an absolute beginner in PowerShell, I highly recommend starting with our PowerShell tutorials for beginners. And then move to our advanced PowerShell tutorials.

If you want to become a SharePoint developer or a SharePoint pro, then knowledge of PowerShell is a must. I have added a list of PowerShell SharePoint tutorials you can follow and implement in day-to-day project activities.

As you might already know, Microsoft Teams is quite popular now; I have listed a few tutorials on PowerShell with Microsoft Teams.

All our PowerShell examples are tested and working fine in my system, and I hope it will work on your system as well. Let me know if you are facing any issues while expecting the PowerShell scripts.

So, let us start.

PowerShell tutorials for beginners

Here is the list of beginner tutorials in PowerShell.

TutorialsDescriptions
Windows PowerShell ISELearn how to use Windows PowerShell ISE to write and debug PowerShell script.
PowerShell ExamplesHere is the list of 51 PowerShell examples.
PowerShell global variableThis tutorial explains how to create and use PowerShell global variables.
PowerShell variableThis tutorial explains how to create and use PowerShell variables.
PowerShell reference variableLearn how to work with PowerShell reference variables with examples.
PowerShell ArrayLearn everything about the PowerShell array.

Advanced PowerShell tutorials

After finishing the above beginner’s tutorials, start with these advanced PowerShell scripting tutorials.

TutorialsDescriptions
PowerShell create log fileLearn how to create a log file in PowerShell with date.
PowerShell get-date cmdletsWe use the PowerShell get-date cmdlets to get the current date and time.
PowerShell get file sizeThis tutorial explains how to get file size using PowerShell.
PowerShell create file if not existsThis tutorial explains how to create a file if it does not exists using PowerShell.
PowerShell create folder if not existsHere, you will learn how to create a folder if it does not exists using PowerShell.
PowerShell check if file modified in last 24 hoursLearn how to check if a file is modified in the last 24 hours using PowerShell.
PowerShell csv to arrayLearn how to create an array from a CSV file in PowerShell.
PowerShell ArrayListLearn how to create and use ArrayList in PowerShell.
How to loop through a PowerShell arrayThis tutorial explains how to loop through an array in PowerShell.
PowerShell Copy ItemLearn how to copy items in PowerShell.

SharePoint PowerShell tutorials

Here is the list of SharePoint PowerShell tutorials.

TutorialsDescriptions
SharePoint Management ShellThis tutorial explains how to use the SharePoint Online management shell.
SharePoint backup and restoreThis tutorial explains how to backup and restore a SharePoint site using PowerShell.
exception calling “executequery” with “0” argument(s): “the remote server returned an error: (403) forbidden.”Learn how to fix the error “exception calling “executequery” with “0” argument(s): “the remote server returned an error: (403) forbidden.”.
connect-msolservice not recognizedThis tutorial explains how to fix the error “connect-msolservice: the term ‘connect-msolservice’ is not recognized as a name of a cmdlet, function, script file, or executable program.”.
connect-sposervice not recognizedThis tutorial explains how to fix the error “connect-sposervice: the term ‘connect-sposervice’ is not recognized as a name of a cmdlet, function, script file, or executable program.”.
the term ‘get-spweb’ is not recognized as the name of a cmdletThis tutorial explains how to fix an error “the term ‘get-spweb’ is not recognized as the name of a cmdlet” in SharePoint Online.
Get-SPOsite the managed path is not a managed path in this tenantLearn how to fix the error “the managed path is not a managed path in this tenant”.
Missing argument in parameter list PowerShellThis PowerShell tutorial explains how to fix the error “missing argument in parameter list”.
connect-sposervice : the remote server returned an error: (403) forbidden.This tutorial explains how to fix the error “connect-sposervice : the remote server returned an error: (403) forbidden.”.
Remove-SPOSite Access denied. You do not have permission to perform this action or access this resourceThis PowerShell tutorial explains how to fix the error “Remove-SPOSite Access denied. You do not have permission to perform this action or access this resource” that comes while working with SharePoint Online.

Microsoft Teams PowerShell tutorials

Here is the list of PowerShell commands to work with Microsoft Teams.

TutorialsDescriptions
How to connect to Microsoft Teams using PowerShellThis PowerShell tutorial explains how to connect to Microsoft Teams using PowerShell.

PnP PowerShell SharePoint Tutorials

Here is the list of PnP PowerShell SharePoint tutorials.

TutorialsDescription
install pnp PowerShell for SharePoint OnlineLearn how to install PnP PowerShell for SharePoint Online.
Delete all SharePoint list items using PnP PowerShellThis tutorial explains how to delete all SharePoint list items using PnP PowerShell.
SharePoint PnP PowerShellThis tutorial explains contains SharePoint PnP PowerShell examples.
Download multiple files in SharePoint using PnP PowerShellThis tutorial explains how to download multiple files in SharePoint using PnP PowerShell.

Conclusion

I hope after following the above PowerShell tutorials, you will be confident working with PowerShell in SharePoint, Microsoft Teams, etc. I have also explained how to work with PnP PowerShell in SharePoint.

>