Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
5fb83b0
Update README.md
PowershellScripts Jan 23, 2021
067107a
Update description.md
PowershellScripts Jan 24, 2021
699a128
Update description.md
PowershellScripts Jan 24, 2021
7d622a1
Update README.md
PowershellScripts Jan 24, 2021
8501edf
Update GetUnusedLists.ps1
PowershellScripts Jan 26, 2021
1f4e9b8
Update getSPOobjectWithRestModuleLimited.psm1
PowershellScripts Jan 27, 2021
eff9c9e
Update AllowListDeletion.ps1
PowershellScripts Jan 28, 2021
8174ee0
Create README.md
PowershellScripts Jan 29, 2021
50d0fd2
Update README.md
PowershellScripts Jan 29, 2021
c3be7da
Update README.md
PowershellScripts Jan 30, 2021
2e5c4b8
Update AuditFolderStructureToXMLServer.ps1
PowershellScripts Jan 31, 2021
ea625f6
Update README.md
PowershellScripts Feb 1, 2021
e4ac0cf
Update PullAllTerms.ps1
PowershellScripts Feb 5, 2021
ed0d228
Update CheckLicensesWithServiceName.ps1
PowershellScripts Feb 6, 2021
b726d51
Update NewTermSingle.ps1
PowershellScripts Feb 7, 2021
82e1e25
Update README.md
PowershellScripts Feb 10, 2021
800ff2b
Create README.md
PowershellScripts Feb 12, 2021
bd1d16c
Update FolderCreationForAllLists.ps1
PowershellScripts Feb 12, 2021
044cb73
Update GetSPOListEventReceivers.ps1
PowershellScripts Feb 15, 2021
511f392
Update getSPOobjectWithRest.ps1
PowershellScripts Feb 17, 2021
c9c0e67
Update BulkUpdate.ps1
PowershellScripts Feb 23, 2021
89f7547
Update BulkUpdate.ps1
PowershellScripts Feb 24, 2021
e8472f2
Update NoSpoLicense.ps1
PowershellScripts Feb 25, 2021
1e275b1
Create README.md
PowershellScripts Feb 26, 2021
75efd49
Create README.md
PowershellScripts Mar 1, 2021
1c25bbd
Update description.md
PowershellScripts Mar 1, 2021
6a1419e
Update README.md
PowershellScripts Mar 1, 2021
45796ea
Update TaxonomyModule.psm1
PowershellScripts Mar 3, 2021
3047404
Update README.md
PowershellScripts Mar 4, 2021
efb36ef
Create README.md
PowershellScripts Mar 8, 2021
0bc8a5a
Update description.md
PowershellScripts Mar 8, 2021
4fe830b
Update README.md
PowershellScripts Mar 8, 2021
8bc056c
Delete testmarkdown.md
PowershellScripts Mar 9, 2021
9976a4d
Create README.md
PowershellScripts Mar 20, 2021
f78d79f
Update README.md
PowershellScripts Mar 20, 2021
d536f35
Update README.md
PowershellScripts Mar 20, 2021
65c6dba
Create README.md
PowershellScripts Mar 22, 2021
a937bf4
Update README.md
PowershellScripts Mar 24, 2021
1e11c52
Update README.md
PowershellScripts Mar 26, 2021
8518930
Update README.md
PowershellScripts Mar 27, 2021
6469e9b
Update README.md
PowershellScripts Apr 1, 2021
f38511e
Update README.md
PowershellScripts Apr 3, 2021
8c97631
Update README.md
PowershellScripts Apr 4, 2021
ab3a2a6
Create README.md
PowershellScripts Apr 7, 2021
1d96be7
Create README.md
PowershellScripts Apr 10, 2021
de2a759
Update README.md
PowershellScripts Apr 12, 2021
147ef36
Create README.md
PowershellScripts Apr 18, 2021
b91a677
Update AuditFolderStructureToXML.ps1
PowershellScripts Apr 29, 2021
23ce092
Update NewSPOListItem.psm1
PowershellScripts May 6, 2021
25529b0
Update disableFlows.ps1
PowershellScripts May 9, 2021
3fd21e8
Update RemoveComments.ps1
PowershellScripts Jun 1, 2021
66b81f0
Create README.md
PowershellScripts Jun 5, 2021
7dade71
Update README.md
PowershellScripts Jun 5, 2021
647a629
Update description.md
PowershellScripts Jun 5, 2021
3e2e6e7
Create README.md
PowershellScripts Jun 8, 2021
7989349
Create README.md
PowershellScripts Jun 9, 2021
e8313e9
Update README.md
PowershellScripts Jun 11, 2021
3c2ccc5
Rename Script.ps1 to EnableVersions.ps1
PowershellScripts Nov 13, 2021
7bdb8df
Update README.md
PowershellScripts Nov 13, 2021
c1de4ad
remove markup
PowershellScripts Nov 13, 2021
65940b4
Create Create empty node with CSOM.ps1
PowershellScripts Nov 13, 2021
4b1ed10
Update Create empty node with CSOM.ps1
PowershellScripts Nov 13, 2021
480989b
Update enableFlows.ps1
PowershellScripts Nov 21, 2021
65def55
Update GetSPOListEventReceivers.ps1
PowershellScripts Nov 21, 2021
8e041c5
Update declareAsRecordsLargeLibraries.ps1
PowershellScripts Nov 24, 2021
07fd145
Rename GetSPOListItems9.psm1 to GetSPOListItems.psm1
PowershellScripts Nov 25, 2021
c2f7975
Update SetUniquePermissions for all lists.ps1
PowershellScripts Nov 26, 2021
95bd2c6
Update NewTermSingle.ps1
PowershellScripts Nov 29, 2021
3c84179
Rename desscription.md to description.md
PowershellScripts Dec 1, 2021
74aa8a4
Update SetUniquePermissionsSingleList.ps1
PowershellScripts Dec 3, 2021
b9c6546
Update RemoveComments.ps1
PowershellScripts Dec 4, 2021
313279c
Create Create empty node with PnP.ps1
PowershellScripts Dec 4, 2021
6f02721
Update Create empty node with CSOM.ps1
PowershellScripts Dec 4, 2021
b4114b1
Update Create empty node with PnP.ps1
PowershellScripts Dec 4, 2021
025e156
Update Create empty node with PnP.ps1
PowershellScripts Dec 4, 2021
0b41815
Update NoCrawlForAllLists.ps1
PowershellScripts Dec 5, 2021
4f8de34
Update ODBAccessRequests.ps1
PowershellScripts Dec 11, 2021
8193a93
Update README.md
PowershellScripts Dec 15, 2021
c30191d
Update NewColumnWithProperties.psm1
PowershellScripts Dec 18, 2021
e831e72
Update GetSPOObjects.psm1
PowershellScripts Dec 21, 2021
be5dc51
Create README.md
PowershellScripts Dec 26, 2021
1c99176
Update README.md
PowershellScripts Dec 26, 2021
397e643
Create README.md
PowershellScripts Dec 28, 2021
5d75ff2
Create README.md
PowershellScripts Jan 7, 2022
42cd3f5
Update README.md
PowershellScripts Jan 7, 2022
6c16001
Update description.md
PowershellScripts Jan 7, 2022
91e1f5a
Update README.md
PowershellScripts Jan 18, 2022
1bfe1b2
Update GetVersioningSettings.ps1
PowershellScripts Jan 19, 2022
5007bca
Create README.md
PowershellScripts Jan 25, 2022
6b987a6
Update README.md
PowershellScripts Jan 26, 2022
c7662b6
Create disableFlows_UsingPnP.ps1
PowershellScripts Jan 27, 2022
a8e303c
Create disableFlows_UsingSPOManagementShell.ps1
PowershellScripts Jan 27, 2022
26bc7af
Create enableFlows_usingPnP.ps1
PowershellScripts Jan 27, 2022
3c783cc
Create enableFlows_usingSPOManagementShell.ps1
PowershellScripts Jan 27, 2022
70012be
Create GetFlowsPolicy_usingPnP.ps1
PowershellScripts Jan 29, 2022
52f5a14
Update RemovePermissionGroups.ps1
PowershellScripts Feb 2, 2022
f5a0f35
Create README.md
PowershellScripts Feb 4, 2022
3453941
Update README.md
PowershellScripts Feb 5, 2022
d56717c
Create NoCrawl_usingPnP.ps1
PowershellScripts Feb 6, 2022
12d0111
Create README.md
PowershellScripts Feb 10, 2022
0e613f5
Update README.md
PowershellScripts Feb 12, 2022
e088e7f
Update FindLargeLists.ps1
PowershellScripts Feb 12, 2022
14dca80
Update README.md
PowershellScripts Feb 12, 2022
f30eee4
Update ExportSPOUserAllPropertiesWithREST.ps1
PowershellScripts Feb 12, 2022
ef2f35e
Create ListAllFlowsUsingPnP
PowershellScripts Mar 1, 2022
0293515
Create ListAllFlowsUsingPnP.ps1
PowershellScripts Mar 1, 2022
c46d90f
Update ListAllFlowsUsingPnP.ps1
PowershellScripts Mar 1, 2022
0dd7e89
Delete ListAllFlowsUsingPnP
PowershellScripts Mar 1, 2022
b54a0ed
Rename Power Automate/ListAllFlowsUsingPnP2/ListAllFlowsUsingPnP.ps1 …
PowershellScripts Mar 1, 2022
44c88f0
Update NewTermSingle.ps1
PowershellScripts Mar 5, 2022
b90fef0
Update README.md
PowershellScripts Mar 12, 2022
4ebd47c
Create README.md
PowershellScripts Mar 12, 2022
b88e2a3
Update README.md
PowershellScripts Mar 12, 2022
8805482
Update NoCrawl_usingPnP.ps1
PowershellScripts Mar 16, 2022
3668d7f
Update enableFlows_usingPnP.ps1
PowershellScripts Mar 16, 2022
a324782
Create DisableFlowUsingPnP.ps1
PowershellScripts Mar 16, 2022
e7735bc
Create readme.md
PowershellScripts Mar 16, 2022
b64be6e
Update README.md
PowershellScripts Apr 13, 2022
16295a7
Create FindSitesWithOutstandingAccessRequests.md
PowershellScripts Apr 18, 2022
82e0b9d
Create readme.md
PowershellScripts Apr 18, 2022
b59f387
Update README.md
PowershellScripts Apr 18, 2022
ac8bf31
Create GetPoliciesAppliedToYourSitesUsingPnP.ps1
PowershellScripts Apr 18, 2022
21d42cf
Update GetPoliciesAppliedToYourSitesUsingPnP.ps1
PowershellScripts Apr 18, 2022
b03ccad
Create RemovePolicyFromSingleSiteUsingPnP.ps1
PowershellScripts Apr 18, 2022
eaee7e9
Create readme.md
PowershellScripts Apr 18, 2022
b4e4200
Add files via upload
PowershellScripts Apr 18, 2022
44bc938
Update readme.md
PowershellScripts Apr 18, 2022
ef88871
Update readme.md
PowershellScripts Apr 18, 2022
167ac1a
Add files via upload
PowershellScripts Apr 18, 2022
2947fe5
Update readme.md
PowershellScripts Apr 18, 2022
1a8cb5d
Update GetFlowsPolicy_usingPnP.ps1
PowershellScripts Apr 19, 2022
07a2123
Create readme.md
PowershellScripts Apr 19, 2022
3eeb4bd
Create GetFlowsOlderOrNewerThan.ps1
PowershellScripts Apr 19, 2022
3ca7193
Create GetFlowsOlderOrNewerThan.ps1
PowershellScripts Apr 19, 2022
e584718
Update GetFlowsOlderOrNewerThan.ps1
PowershellScripts Apr 19, 2022
236f727
Delete GetFlowsOlderOrNewerThan.ps1
PowershellScripts Apr 20, 2022
eeb2360
Update GetFlowsOlderOrNewerThan.ps1
PowershellScripts Apr 20, 2022
897b283
Create readme.md
PowershellScripts Apr 27, 2022
b03b2f6
Create readme.md
PowershellScripts Apr 29, 2022
fbbd5d2
Create GetFlowsCreatedBy.ps1
PowershellScripts Apr 29, 2022
de9e990
Update GetFlowsOlderOrNewerThan.ps1
PowershellScripts May 2, 2022
40e6bc5
Update GetFlowsCreatedBy.ps1
PowershellScripts May 2, 2022
3f8b11b
Create GetMostProlificFlowCreators.ps1
PowershellScripts May 5, 2022
f722273
Create ini.txt
PowershellScripts May 5, 2022
92f7280
Add files via upload
PowershellScripts May 5, 2022
ad11d28
Create GetMostProlificFlowCreators.md
PowershellScripts May 5, 2022
3354667
Update README.md
PowershellScripts May 5, 2022
16f5e27
Update README.md
PowershellScripts May 5, 2022
e593fb0
Update README.md
PowershellScripts May 5, 2022
0d4f08d
0-01: updated structure
May 5, 2022
7fb2403
Merge branch 'develop' of https://github.com/PowershellScripts/ShareP…
May 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Content Types/Content Types Management Setting/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Scripts allowing you to enable / disable content type management.
1 change: 1 addition & 0 deletions Content Types/Display Forms/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Scripts regarding SharePoint item display form
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,3 @@ Write-Output $global:foldersCollection





Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{

param (

[Parameter(Mandatory=$true,Position=0)]
$higherLevelFolder,
[Parameter(Mandatory=$true,Position=1)]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
SharePoint Online has a lot of options allowing you to organize your files. Some of them really amazing. Folders aren't necessarily one of them.

But once you have used them and your users happily created unstructured, repeating, unrecoverable mess, you may want to audit them and find out if you can reorganize or save the day in some other way.

This Powershell script allows you to investigate into your folder structure and creates an XML file as a report.









In order to use the script you need to modify the following lines:

```PowerShell
# Paths to SDK. Please verify location on your computer.

Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"


# Enter your data
$admin="ana@etr56.onmicrosoft.com"
$site="https://etr56.sharepoint.com"
$libraryTitle="test"
$script:XMLPath = "C:\Users\Public\foolders2.xml"
#Enter your data above!

```






2 changes: 1 addition & 1 deletion File Management/Audit folder structure/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.
Scripts showing folder structure in library
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
A short script to create folder and file structure in a library.



How to use?

1. Download the script.

2. Create a library.

3. In the library create a sample file (.docx, .xlsx or .pptx) that will serve as a template for all other files.

4. Open the script file (you can use Powershell ISE or e.g. NotePad).

5. Edit the following lines, entering your values:







```PowerShell
# Paths to SDK. Please verify location on your computer.
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
$admin="t@trial890.onmicrosoft.com"
$pass=Read-Host "Enter Password: " -AsSecureString
$site="https://trial890.sharepoint.com/sites/teamsitewithlibraries"
$fileURL="/sites/TeamsiteWithLibraries/tescik2/Presentation.pptx"
$libraryTitle="tescik2"
```


6. Save and run the script. During execution it will ask you for a password.





End results













Not enough?

Of course you can modify or expand the script. E.g. adding more values to these arrays will create more folders:



```PowerShell
$reports=@("Reports","Balance Sheets","Investments")
$report=@("Report","Balance Sheet","Investment")
```
Feel free also to adjust the naming to fit your scenario, e.g. $reports=@("Beaches","Tropical Islands","Seas","Yachts") :)







Technicalities - how did it work?

I simply took the file and copied it under different names. All the file properties (managed metadata, lookup values, etc.) are copied as well.




<br/><br/>
<b>Enjoy and please share feedback!</b>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{
param (
[Parameter(Mandatory=$true,Position=1)]
[string]$Username,
[Parameter(Mandatory=$true,Position=2)]
[string]$Url,
[string]$Username,
[Parameter(Mandatory=$true,Position=2)]
[string]$Url,
[Parameter(Mandatory=$true,Position=3)]
$password,
$password,
[Parameter(Mandatory=$true,Position=4)]
[string]$ListTitle
[string]$ListTitle
)


Expand Down Expand Up @@ -133,4 +133,4 @@ $ListTitle="Customers"



Declare-Record -Username $username -Url $Url -password $AdminPassword -ListTitle $ListTitle
Declare-Record -Username $username -Url $Url -password $AdminPassword -ListTitle $ListTitle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ param (
)



$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $password)
$RestUrl=$url+"/_api/web/"
if($object -ne "")
Expand All @@ -22,7 +21,6 @@ param (
}



$request = [System.Net.WebRequest]::Create($RESTUrl)
$request.Credentials = $Credentials
$request.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f")
Expand Down
4 changes: 3 additions & 1 deletion Getting SPO objects with REST/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.
Module that allows you to get properties of any of SharePoint objects.


Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ param (
[Parameter(Mandatory=$true,Position=3)]
[string] $url,
[Parameter(Mandatory=$false,Position=4)]
[string] $object=""
[string] $object=""
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ param (

$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $password)
$RestUrl=$url+"/_api/"

if($object -ne "")
{
$RestUrl+=$object
Expand All @@ -29,6 +29,7 @@ param (
$requestStream = $response.GetResponseStream()
$read = New-Object System.IO.StreamReader $requestStream
$data=$read.ReadToEnd()

# Because the string contains duplicate 'ID' keys.
$results = $data.ToString().Replace("ID", "_ID") | ConvertFrom-Json
$objekty=$results.d.results
Expand All @@ -43,7 +44,6 @@ param (

}


}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ function Update-SPOListItem{
)



$password = ConvertTo-SecureString -string $AdminPassword -AsPlainText -Force
$password = ConvertTo-SecureString -string $AdminPassword -AsPlainText -Force
$ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url)
$ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $password)
$ctx.Load($ctx.Web.Lists)
Expand All @@ -29,9 +28,9 @@ function Update-SPOListItem{


$spqQuery = New-Object Microsoft.SharePoint.Client.CamlQuery
$spqQuery.ViewXml ="<View Scope='RecursiveAll' />";
$itemki=$ll.GetItems($spqQuery)
$ctx.Load($itemki)
$spqQuery.ViewXml ="<View Scope='RecursiveAll' />";
$itemki=$ll.GetItems($spqQuery)
$ctx.Load($itemki)
$ctx.ExecuteQuery()

$count=$itemki.Count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ function New-SPOListItem{

$lici =New-Object Microsoft.SharePoint.Client.ListItemCreationInformation


$listItem = $ll.AddItem($lici)
$listItem["Title"]=$ItemTitle

if($AdditionalField -ne ""){
$listItem[$AdditionalField]=$AdditionalValue
$listItem[$AdditionalField]=$AdditionalValue
}

$listItem.Update()
Expand Down
134 changes: 134 additions & 0 deletions Items Management/Get/GetSpoListItems and GetSPOListFields/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
2 new SharePoint Online Powershell cmdlets to help you view items in a SharePoint Online list:


<h2>Get-SPOListItems</h2>

Retrieves all items in a given list

<h3>Parameters</h3>

The cmdlet is using the following parameters:
```powershell
[string]$Username
```
The string specifies admin of the site
```powershell
[string]$Url
```
Specifies the url of a site where you have the list
```powershell
[string]$AdminPassword,
```
Admin's password
```powershell
[string]$ListName
```
ListName. To retrieve a table of list names, you can use [Get-SPOList](https://gallery.technet.microsoft.com/scriptcenter/GetSPOList-Module-to-view-cc4d3e9e)
```powershell
[bool]$IncludeAllProperties=$false
```
Specifies whether you should view all the available properties or just the Id and Title. By the default it is set to $false.

The equivalent in Graphic User Interface (GUI) of this cmdlet would be a list view.

<h3><b>Examples<b></h3>

+ Get all items in an announcements list
```powershell
Get-SPOListItems -Username -Url -AdminPassword -ListName
```
<img src="../GetSpoListItems and GetSPOListFields/images/GEtspolistitems.png">

+ Get all items in a contacts list and their properties
```powershell
Get-SPOListItems -Username -Url -AdminPassword -ListName -IncludeAllProperties $true (example shows only one of multiple retrieved items)
```
<img src="../GetSpoListItems and GetSPOListFields/images/getspolistitems2.png">

Get all items in a list and their properties and export to CSV
```powershell
Get-SPOListItems -Username -Url -AdminPassword -ListName -IncludeAllProperties $true | Export-CSV
```

+ Get all contacts from a contact list that belong to a specific company
```powershell
Get-SPOListItems -Username trial@trialtrial123.onmicrosoft.com -Url https://trialtrial123.sharepoint.com/sites/teamsitewithlists -AdminPassword Pass -ListTitle "Contacts list" -IncludeAllProperties $true | where {$_.Company -eq "Uogiavv"} | select Title, Company
```

<img src="../GetSpoListItems and GetSPOListFields/images/getspolistitems3.png">

+ Get all properties of a document <font color="red">as a list item*</font>

<img src="../GetSpoListItems and GetSPOListFields/images/getspolistitems5.png">

Get a list of all documents in a document library
```powershell
Get-SPOListItems -Username trial@trialtrial123.onmicrosoft.com -Url https://trialtrial123.sharepoint.com/sites/teamsitewithlists -AdminPassword Pass -ListTitle "Documents" -IncludeAllProperties $true | select FileLeafRef
```
<img src="../GetSpoListItems and GetSPOListFields/images/getspolistitems6.png">

+ Get a list of all documents in a document library, including folders and subfolders
```powershell
Get-SPOListItems -Username trial@trialtrial123.onmicrosoft.com -Url https://trialtrial123.sharepoint.com/sites/teamsitewithlists -AdminPassword Pass -ListTitle "Documents" -IncludeAllProperties $true -Recursive | select FileLeafRef
```

+ Get a list of all Excel documents in a document library
```powershell
Get-SPOListItems -Username trial@trialtrial123.onmicrosoft.com -Url https://trialtrial123.sharepoint.com/sites/teamsitewithlists -AdminPassword Pass -ListTitle "Documents" -IncludeAllProperties $true | where {$_.File_x0020_Type -eq "xlsx"} |select FileLeafRef
```
<img src="../GetSpoListItems and GetSPOListFields/images/getspolistitems7.png">

+ Get a list of all Excel documents in a document library and export to CSV
```powershell
Get-SPOListItems -Username trial@trialtrial123.onmicrosoft.com -Url https://trialtrial123.sharepoint.com/sites/teamsitewithlists -AdminPassword Pass -ListTitle "Documents" -IncludeAllProperties $true | where {$_.File_x0020_Type -eq "xlsx"} |select FileLeafRef | export-csv
```
<hr>

## **Get-SPOListFields**

Retrieves all columns in a given list. This includes hidden columns and excluded from views.

<h3><i>Parameters</i></h3>



The cmdlet is using the following parameters:
```powershell
[string]$Username
```
The string specifies admin of the site
```powershell
[string]$Url
```
Specifies the url of a site where you have the list
```powershell
[string]$AdminPassword,
```
Admin's password
```powershell
[string]$ListName
```

<h2><b>Examples</b></h2>

+ Get all fields of a links list
```powershell
Get-SPOListFields -Username trial@trialtrial123.onmicrosoft.com -Url https://trialtrial123.sharepoint.com/sites/teamsitewithlists -AdminPassword Pass -ListTitle "Links list"
```
<img src="../GetSpoListItems and GetSPOListFields/images/getspolistitems8.png">

<h2><b>Requirements</b></h2>

The following libraries (SharePoint Online SDK) are required. If those libraries are in different location on your computer, please edit the ```.psm1``` file!

```powershell
# Paths to SDK. Please verify location on your computer.
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
```



### **Technicalities**
Get-SPOListItems is using InternalName for item properties </br>
18.01.15 Added recursion and -Recursive switch parameter
Loading