PowerShell – Create a folder if not exists or Create a directory if not exists

Create folder if not exists using PowerShell

In this PowerShell tutorial, we will discuss how to create a folder in PowerShell? Also, we will check how to create a folder if not exists in PowerShell. Or we will check how to create a directory if not exists in PowerShell. We will see how to use the below PowerShell cmdlets. Test-Path: PowerShell Test-Path …

Continue readingPowerShell – Create a folder if not exists or Create a directory if not exists

Create an encrypted password file in PowerShell and use in SharePoint online

PowerShell Create encrypted file and use in SharePoint Online

This PowerShell SharePoint tutorial, we will see how to create an encrypted password file using PowerShell and then we use the password from the encrypted file in SharePoint Online. Recently I got a requirement to work to copy files from a shared drive to SharePoint online document library using PowerShell. In the PowerShell, we need …

Continue readingCreate an encrypted password file in PowerShell and use in SharePoint online

Exception calling ExecuteQuery with 0 argument(s): Unable to connect to the remote server error in PowerShell SharePoint Online

Exception calling ExecuteQuery with 0 argument(s) Unable to connect to the remote server

Recently I was trying to insert items to SharePoint online list through PowerShell command. The error was coming in the below line while calling the ExecuteQuery() method. The error comes as Exception calling “ExecuteQuery” with “0” argument(s): “Unable to connect to the remote server” $Context.ExecuteQuery(). Exception calling “ExecuteQuery” with “0” argument(s): “Unable to connect to the …

Continue readingException calling ExecuteQuery with 0 argument(s): Unable to connect to the remote server error in PowerShell SharePoint Online

The term is not recognized as the name of a cmdlet function PowerShell

The term FunctionName is not recognized as the name of a cmdlet function script file or operable program

The term FunctionName is not recognized as the name of a cmdlet function script file or operable program. Check the spelling of the name or if a path was included verify that the path is correct and try again. Recently while working on a PowerShell script to copy documents from a local drive to SharePoint …

Continue readingThe term is not recognized as the name of a cmdlet function PowerShell

Method invocation failed because [Microsoft.SharePoint.Client.File] does not contain a method named StartUpload

Method invocation failed because [Microsoft.SharePoint.Client.File] does not contain a method named StartUpload

Recently while working on uploading large files to SharePoint online document library using PowerShell in SharePoint online, I got the below error which says: Method invocation failed because [Microsoft.SharePoint.Client.File] does not contain a method named ‘StartUpload’ Method invocation failed because [Microsoft.SharePoint.Client.File] does not contain a method named StartUpload Below is the code we can write …

Continue readingMethod invocation failed because [Microsoft.SharePoint.Client.File] does not contain a method named StartUpload

net System error 2240 has occurred The user is not allowed to log on from this workstation error in PowerShell SharePoint Online

The user is not allowed to log on from this workstation

This PowerShell tutorial, how to resolve net System error 2240 has occurred The user is not allowed to log on from this workstation error in PowerShell SharePoint Online. Recently we got one requirement to copy documents from shared drive to a SharePoint online document library using PowerShell. In that PowerShell command, we were providing the shared …

Continue readingnet System error 2240 has occurred The user is not allowed to log on from this workstation error in PowerShell SharePoint Online

PowerShell in SharePoint 2013/2016

Working with PowerShell in SharePoint 2013

This SharePoint tutorial, we will see how to work with PowerShell in SharePoint 2013/2016. PowerShell in SharePoint 2013/2016 PowerShell is very much useful in SharePoint. You can make automate lots of things in SharePoint using PowerShell like Installation, management, etc. Let’s say when you automate your SharePoint installation, then you can repeat the installation and …

Continue readingPowerShell in SharePoint 2013/2016

>