Тёмный
No video :(

Work with SharePoint Online lists with PNP PowerShell 

Shane Young
Подписаться 164 тыс.
Просмотров 35 тыс.
50% 1

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 92   
@Alexander-mx8xh
@Alexander-mx8xh Год назад
This is hands down the best tutorial I have come across
@ShanesCows
@ShanesCows Год назад
Thank you, very kind :)
@zz98456
@zz98456 5 лет назад
Thanks Shane, so useful! I have learning SPO powershell right now and your video has helped me to complete one of job assignments. Thanks again for clear and educational examples!
@ShanesCows
@ShanesCows 5 лет назад
Happy to help
@HaploBartow
@HaploBartow 3 года назад
Hey Shane, I know your content is years old at this point but it's still great! One request, now that RU-vid supports chapters in videos, if you could go back through your series of videos and add chapter data (e.g. for each new thing you show how to do), that would be super, super helpful! For example, I often need to come to a video like this and review just how to move items from one list to another, so jumping to that section would save me 15 minutes... and I'm sure you can see how that capability would compound over time!
@ShanesCows
@ShanesCows 3 года назад
Hi. Chapters would be great but I don't have time to do it. :) If you ever want to provide the time stamps I would be happy to add the chapters. 😀 KInd of a crowd sourcing. If you just leave a new comment on the video and I will see it. Replies often get missed. Thanks
@collinthoman
@collinthoman 5 лет назад
Shane, We use Duo MFA in front of our Office 365. Using the Connect-SPOService -url -admin.sharepoint.com works as expected and brings up the newer Office 365 login page and redirects us to our Duo Authentication Gateway login page. We do not capture the credentials because it does not appear to work with Duo MFA enabled. However, when using the Connect-PnPOnline -url .sharepoint.com it brings up the older style login screen similar to your video when you capture the credentials. However, this last command when we type in our correct credentials into the older style login box we receive a (500) Internal Server Error in PowerShell after about a minute which makes sense because using the Connect-SPOService command it will bring us to our Duo Authentication Gateway login page which then after 2FA login success redirects and closes the newer style login window indicating success. Do you have any insight on using PowerShell with MFA enabled on Office 365 specifically with Duo if possible? Thank you, Collin
@ShanesCows
@ShanesCows 5 лет назад
I don’t Colin. Sorry. If you tweet me I will RT and see if anyone else knows.
@DesiThugLife
@DesiThugLife 3 года назад
Hi Shane, Awsome videos .. Just need little help how can avoid moving duplicate item. like skip the item if its already there in the destination.
@ShanesCows
@ShanesCows 3 года назад
I haven’t written that one before. 😔
@DesiThugLife
@DesiThugLife 3 года назад
@@ShanesCows ok 😟
@SeenewcastleUK
@SeenewcastleUK 6 лет назад
Another clear and helpful video. Where I ran into problems with my own Lists was trying to incorporate lookup columns, suppose for the sake of argument that the column "color" was a lookup . How would the piped | where-object {$_["color"] -eq "red"} look? I know you try not to use look up columns Shane, but on occasion you are just landed with them.
@ShanesCows
@ShanesCows 6 лет назад
I would try some of the ideas here. I don't have an example in front of me to try right now. Sorry. :( sharepoint.stackexchange.com/questions/239066/retrieve-value-in-lookup-field-type-using-sharepoint-pnp-powershell
@Ylotan
@Ylotan 4 года назад
In regards to list item deletion. Alternative way would be to do MS Access -> DELETE * FROM [Lst_Name]
@ShanesCows
@ShanesCows 4 года назад
Thanks for sharing
@ignacioflores6054
@ignacioflores6054 5 лет назад
THANKS SHANE. THE ONLY F*CKING USEFUL TUTORIAL FOR MANAGING PS ONLINE THROUGH POWERSHELL. YOU'RE THE BOSS
@ShanesCows
@ShanesCows 5 лет назад
Glad it helped. 😀
@skyyblue8385
@skyyblue8385 9 месяцев назад
Hi Shane, I love your videos but I cant't seem to get pass the login step because Power shell doesn't seem to recognize my credential. any suggestion? Thank you!
@ShanesCows
@ShanesCows 9 месяцев назад
I am not sure. :( Maybe look at the authentication doucmentation pnp.github.io/powershell/articles/authentication.html
@hemanthbanty6187
@hemanthbanty6187 4 года назад
Hi Shane, your video was helpful and much appreciated. I have a couple of queries how to update a particular listitems in a list? how to remove particular listitems in a list???
@ShanesCows
@ShanesCows 4 года назад
You need to use get-listitem to get the item. Then you can have fun with it.
@hemanthbanty6187
@hemanthbanty6187 4 года назад
@@ShanesCows I am encountering run time errors sometime. I get as query is not executed. How to resolve this.?? I have given 15 seconds delay after connect-pnponline. Any leads it will be helpful!!!
@pankajsingh-ou9wr
@pankajsingh-ou9wr 3 года назад
Nice Video, how to fetch Project online oData into SharePoint using power automate or PowerShell.Please make the video on this
@ShanesCows
@ShanesCows 3 года назад
I have done it before. You have to use the Project Server API and the SharePoint HTTP action in Power Automate in most cases.
@pankajsingh-ou9wr
@pankajsingh-ou9wr 3 года назад
@@ShanesCows Thank you for your response :) In the project server There are 3000 records but i am getting only 300 records instead of getting 3000 records.how can use $skiptoken in power automation. please help me on this.
@hsedigh3867
@hsedigh3867 3 года назад
Thanks for the videos, I have created a simple SharePoint list and created a power app base on that list, my question is when I add the new column in SharePoint list it doesnt show the new column in my app, I have refresh the data source as well and still nothing.
@ShanesCows
@ShanesCows 3 года назад
THat is odd. I am not sure why it wouldn't show up.
@Twardzielx1
@Twardzielx1 4 года назад
Hi Shane. Thanks for tutorial it was great start to PnP. I have question- how to copy element with attachment to different list with the same columns? Thanks in advance.
@ShanesCows
@ShanesCows 4 года назад
Sorry, not sure.
@chirazazzabi4716
@chirazazzabi4716 4 года назад
really thanks for this great video but can you give us the link to the cmdlets showing in the video !!
@ShanesCows
@ShanesCows 4 года назад
Look in the video description for all of the links. 😀
@priyasivaji3719
@priyasivaji3719 4 года назад
Hi Shane, The SharePoint PowerShell videos are amazing, have helped me a lot. I am trying to upload data from csv file to SharePoint Online list, error handling Try-Catch doesn't seem to pick up the errors. Are there anyways to pick up the line items from csv which errors?
@ShanesCows
@ShanesCows 4 года назад
Not sure. Maybe write the $_ value to the screen when you have an error?
@gilesgregg8952
@gilesgregg8952 5 лет назад
Is there an online resource of general pnp powershell documentation/samples you can recommend?
@ShanesCows
@ShanesCows 5 лет назад
This is all I know of. docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps
@ashishbaranwal4044
@ashishbaranwal4044 3 года назад
Please suggest how to add link to documents In document library using PNP powershell
@ShanesCows
@ShanesCows 3 года назад
The link to the item is a property you should be able to query in PowerShell.
@poonammalge7979
@poonammalge7979 2 года назад
Hello, this video is really helpful but I have a query....I want to set a default value for boolean type column which is yes/no checkbox But -defaultvalue property does not work. Could you please help?
@slickawolf
@slickawolf 4 года назад
Is there a way to export a permission report for libraries in your sharepoint online for every folder in the library.
@ShanesCows
@ShanesCows 4 года назад
Not that I have done but I would think maybe
@nehawanjari7710
@nehawanjari7710 6 лет назад
Really helpful video Shane! Is it possible to import items from excel to an existing SP Online lists using PowerShell?
@ShanesCows
@ShanesCows 6 лет назад
This video shows the opposite direction to help you get started. Export SharePoint List to Excel with PowerShell ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-KZT8xi0OsFQ.html
@danielhampson5918
@danielhampson5918 3 года назад
Hi Shane, I am not really shore if this is the right video to ask my question. But I will do it anyway. I have a SharepointOnline List, and i have a csv. When I do the forall loop the Powershell findes the correct Items and gives me a output that the value has been changed. That actually happens except for the last entry in the SharePointList. Powershell tells me that everything has been changed but in the List the last one isn't. I have attached the loop and hope you can help me or direct me to the Problem. foreach ($Row in $CSVDate) { #Get the List Item matching "Name" field in the CSV $Item = Get-PnpListItem -List "Datenliste" | Where-Object { $_["ID"] -eq $Row.ID } if($Item -ne $null) { if($Item["Leistysytem"] -ne $Row.Leitsystem){ #Update List Item - Internal Name! write-Host "Debug: von " $Item["Leistysytem"] " auf " $Row.Leitsystem " geändert" $Item["Leistysytem"] = $row.Leitsystem $Item.Update() Write-Host "Updated:"$row.ID -ForegroundColor Green } else { write-host "Nothing to do @ " $Row.ID -f DarkRed } } else { write-host "No matching Item Found for:"$row.ID -f Red } }
@ShanesCows
@ShanesCows 3 года назад
It sure Daniel. Sorry
@danielhampson5918
@danielhampson5918 3 года назад
@@ShanesCows now i am confused. Do you mean it should work, or is it a correction for my "really shore"? 😄
@Matthewa1970
@Matthewa1970 Год назад
I accidentially deleted a list with Remove-PnPList -Identity $list -Force Is there anyway to restore this list, as I do not see it in any Recycle bins. This is on a SharePoint Online site
@ShanesCows
@ShanesCows Год назад
I would have thought it would have been in the Recycle bin but I am not sure. Sorry.
@gergelysimon205
@gergelysimon205 4 года назад
Hi, Thanks for this helpfull video. Is there any possibility to copy list items to another list with versioning?
@ShanesCows
@ShanesCows 4 года назад
Not that I know of. It may be possible but I haven't done it.
@briancullen1153
@briancullen1153 5 лет назад
great video, many thanks
@ShanesCows
@ShanesCows 5 лет назад
Glad to help.
@richardcollins9862
@richardcollins9862 6 лет назад
Thanks for sharing. SPO list query using Where-Object {...} works fine BUT CAML fails, Is it meant to be okay on SPO Lists?
@ShanesCows
@ShanesCows 6 лет назад
I got your email. I will take a look later today. Thanks
@stvdp
@stvdp 7 лет назад
Shane, How would the PS script be different if you wanted to copy a document library from one site to another? I assume New-PNPList commands such as line 14: New-PNPList -Title “Test” -Template “genericlist” -OnQuickLaunch would need to be changed to: New-PNPList -Title “Test” -Template “documentlibrary” -OnQuickLaunch But wasn't sure how to adjust line 35: Add-PNPListItem -List "Test 2" -Values @{"Title" = $item[“Title”]; "Color" = $item[“Color”]; "Animal" = $item[“Animal”]} to make sure the document in each item is copied along with the contents of the other columns. Any suggestions there? Thanks, Michael
@ShanesCows
@ShanesCows 7 лет назад
Hey Michael. I think you are on the right track. I don't have PowerShell on this computer I am using today but I will poke the bear a little bit on Friday and see if I can iron it out for you. Might make a good video. :) If you figure it out today please share. Thanks
@theafricanexperience
@theafricanexperience 6 лет назад
Using Office365/SharePoint online, can I copy files from one SharePoint user to another via pnp commands? Do I need creds for both users or can it be accomplished logging in as global admin?
@ShanesCows
@ShanesCows 5 лет назад
I don’t understand what you mean from one user to another?
@gtrj55tgjr
@gtrj55tgjr 4 года назад
Great Sir, really i like it
@ShanesCows
@ShanesCows 4 года назад
Thanks. Glad you enjoyed
@nitinhonours
@nitinhonours 6 лет назад
Could you please help me with script to delete the attachment from the multiple list items in sharepoint online.
@ShanesCows
@ShanesCows 6 лет назад
I have never tried. Sorry. I don't have any quick help with this. What have you tried?
@vikramlogani
@vikramlogani 7 лет назад
Hi, The PowerShell demo was really helpful. I have one query - To connect to the site collection do we need farm administrator credentials ?
@ShanesCows
@ShanesCows 7 лет назад
I do not believe so. I think you just need permissions for the site collection you want to work in.
@vikramlogani
@vikramlogani 7 лет назад
thanks
@raghu4034
@raghu4034 7 лет назад
How to delete the default Column Like Title??
@chrisbenn
@chrisbenn 5 лет назад
Doesn´t work! At 4:20 it just keeps saying the term connect-pnponline is not a recognized as the name of a cmdlet...
@ShanesCows
@ShanesCows 5 лет назад
You most likely did not install the pnp PowerShell cmdlets
@chrisbenn
@chrisbenn 5 лет назад
@@ShanesCows Thank you for the reply! Like you did in the video in the command prompt before you did anything else?
@edwardhanna3713
@edwardhanna3713 5 лет назад
Very helpful video! I was able to successfully repro everything you did in your video. But when I tried to use your command ($items | ForEach-Object {Remove-PnPListItem -List "Test" -Identity $_.id -Force} to delete items in my own script, I get an Error Message (Object reference not set to an instance of an object.) I do see all of my items when I execute $items. Cannot figure why Remove-PnPListItem is throwing a "NullReferenceException".
@edwardhanna3713
@edwardhanna3713 5 лет назад
OK, disregard! I put parentheses around $_.id and things worked better. Did not--for some reason--need to do this in your example used in your video. Powershell continues to be a bit of a mystery. So many tips & tricks are needed in order to succeed! But your videos are helping immensely! Thank you!
@ShanesCows
@ShanesCows 5 лет назад
Nice job.
@somnathswami2695
@somnathswami2695 5 лет назад
can we join two lists in spfx. I am new in sp
@ShanesCows
@ShanesCows 5 лет назад
I am not familiar with SPFX. SOrry.
@blutkraehe_official
@blutkraehe_official 4 года назад
hi, nice vi9deo, can i copy a complete list with colums in share point online ?
@ShanesCows
@ShanesCows 4 года назад
Yes with enough elbow grease.
@blutkraehe_official
@blutkraehe_official 4 года назад
@@ShanesCows and rather the complete website with lists and content?
@BasantPandeyji
@BasantPandeyji 7 лет назад
do you know how to delete the default permission level using power shell CSOM PNP?
@ShanesCows
@ShanesCows 7 лет назад
Sorry, I haven't messed with permissions too much. Did you figure it out? Do you have something that is close you can share?
@kmuralikrishna1582
@kmuralikrishna1582 7 лет назад
how can we make it as solution with some controls like exe file, so that others can use.
@ShanesCows
@ShanesCows 7 лет назад
That isn't how PowerShell works. You can make a script they can run and you prompt them for input but not an EXE.
@Theeoampo
@Theeoampo 7 лет назад
Very good video, Shane. I am a novice and have bookmarked your videos. I was getting the following error running the Add-PNPListItem line: "Add-PNPListItem : Operation is not valid due to the current state of the object". However I found somewhere that if I add the following, it runs OK: -ContentType "Item" Ref: github.com/SharePoint/PnP-PowerShell/issues/778
@ShanesCows
@ShanesCows 7 лет назад
Ugh. I think the latest iteration of the PNP PowerShell must have changed slightly. I will have to look at it again. Thanks for letting me know. Shane
@cmacdhon
@cmacdhon 3 года назад
I will never understand how anyone would rather waste time writing a powershell script, do accomplish something that can be done with a mouse click or two. Makes absolutely no sense to me.
@ShanesCows
@ShanesCows 3 года назад
There is a lot of things that can only be done in PowerShell I think is why a lot of people learn. SharePoint Online management has a lot of PoweShell only features for example.
@Noble909
@Noble909 4 года назад
anyone ever say you sound like Charlie from Sunny? lol
@ShanesCows
@ShanesCows 4 года назад
Yup 🤣
Далее
Using PowerShell to work with SharePoint Lists
19:09
Просмотров 28 тыс.
Triple Protein Sandwich
00:32
Просмотров 4,4 млн
PowerShell Convert Path for the win!
14:51
Просмотров 7 тыс.
#1 Pnp Powershell   GetStarted with SharePoint Online
11:45
Work with Date & Time with PowerShell
16:45
Просмотров 58 тыс.
How to use Write-Host for PowerShell
16:21
Просмотров 38 тыс.
Intro to PowerShell for SharePoint
27:23
Просмотров 65 тыс.
Copy SharePoint Lists Between Sites
17:58
Просмотров 4,1 тыс.
Move SharePoint Online Files with PowerShell
18:27
Просмотров 26 тыс.