010 Introduction - PowerShell with SharePoint from Scratch

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi I'm Peter Kallstrom of Kallstrom comm business solutions in this demonstration I'll show you the very first step on getting started with administering SharePoint using PowerShell first of all we need to find the right tools if you have Windows 10 installed then you have the ISEs installed by default so first time now I'm gonna run this as an administrator I'm gonna do that because I'm gonna install some software and make some system changes using PowerShell here here we have the main user interface as you see we have a couple of different panes we have the help pane over here we have the console pane and we have the script pane we're gonna be using mostly the scripts pane and we're gonna see the output in the console pane and we're gonna use the help pane over here to get help of course first thing we need to do is to set the execution policy so we're actually able to run ps1 files on this machine this is a development machine so for me of course I want to be have the ability to run ps1 files that's kind of a point but you might want to reconsider those security options for yourself and set it to temporary you might want to sign your files those are outside the scope of this demo anyhow let's get started set execution policy that's what we're gonna be doing and here you see I have an autocomplete intellisense kind of thing here and the parameter that I want to send its execution policy and I want to set it to unrestricted on this machine I got a little warning about that them and say yes I'm aware of what I'm doing good all right that's the first step second step is to install the main tools that we're going to be using those tools are called SharePoint PNP so I'm going to open a new tab here SharePoint PNP PowerShell that's the one we want find it easily on github this is a Microsoft run and supported open-source tool for administering SharePoint for doing a SharePoint stuff in general so what we need to do is of course to choose the right version depending on what we're gonna be working with we're gonna be working on SharePoint Online here so I'm gonna choose this command install module right now I'm gonna put that here in my script and then I'm gonna run that row I can do that by pressing f8 on my keyboard or running the selection so I'm just gonna run that now and now I'm gonna get some more security warnings of course because I'm installing software on this computer the modules needed and once that's done I'm gonna be able to connect to SharePoint for the first time using this new tool so meanwhile we can go out to my SharePoint sites in SharePoint Online site that I have here I'm just gonna go ahead and copy the link to my site which is the one I'm gonna be connecting to now you see the modules are done installing so I can do the next step and I can connect connect PNP all the PMT commands start with P and P so it's it's really easy to find them of course we're connecting to a SharePoint site as you see a tab through the different option here and the one I want is connect PNP online the parameters here are URL of course that's the URL I want to connect to and then I'm just gonna paste that URL we're actually don't need to write the URL parameter here because that is the default one so if I just do that that work also making it simpler of course to read so now I'm gonna run that line of code and here I get the credentials and I'll go down to that I have a rather long username on this demo site here so I'm gonna just going to copy that back to the script here there we go paste that in and type in my password there we go and now now I don't get anything back which and PowerShell is really good because that means everything well does it should all right so now just to check that I'm actually connected I can do one of the many different commands here now if i refresh this remember we installed a new module here I can see all the module commands there were SharePoint PNP para shell online and there we see all the different PNP commands that we can use you see there's quite a few of them so let's use one for getting lists so I'm just gonna search for lists here I know you see I have the new PNP and said PNP and the get PNP list let's use that one get PNP list that gives me all the lists in the site so I can either just click on that and here you see I have some parameters but I actually don't need any of those that can just run the command as it is I'll just go ahead and copy that and put it here in my script and I can run that lion also a fade again and here you see I am connected to the SharePoint site and I get all the lists apps that I have it on my site which is good less than libraries specifically and as you also notice I get a lot of them that are not actually in the UI so there's much more here than if I go into the site contents that only shows me the visible stuff but PowerShell shows me all the stuff that's in there even if it's hidden system stuff and all that so that's good so what we've done here is we have set the execution policy we have found our is e tool and we've installed the SharePoint PNP powershell online and we've verified that it actually works thank you for watching this demonstration
Info
Channel: kalmstrom.com
Views: 29,650
Rating: undefined out of 5
Keywords:
Id: wHHlUiaegOk
Channel Id: undefined
Length: 5min 57sec (357 seconds)
Published: Thu Dec 12 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.