Skip to content

Commit

Permalink
Fixes sample script rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
waldekmastykarz committed Feb 18, 2023
1 parent 456e93a commit 82f99fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ Download attachments from a SharePoint Online list.
=== "PowerShell"

```powershell
param
(
[Parameter(Mandatory = $true)] [string] $SiteURL,
[Parameter(Mandatory = $true)] [string] $ListTitle,
[Parameter(Mandatory = $true)] [string] $DownloadDirectory
)
$m365Status = m365 status
if ($m365Status -match "Logged Out") {
Write-Host "Logging in the User!"
m365 login --authType browser
}
param
(
[Parameter(Mandatory = $true)] [string] $SiteURL,
[Parameter(Mandatory = $true)] [string] $ListTitle,
[Parameter(Mandatory = $true)] [string] $DownloadDirectory
)

$m365Status = m365 status
if ($m365Status -match "Logged Out") {
Write-Host "Logging in the User!"
m365 login --authType browser
}

Try {

Expand Down Expand Up @@ -52,5 +52,4 @@ if ($m365Status -match "Logged Out") {
Catch {
write-host -f Red "Error Downloading List Attachments!" $_.Exception.Message
}

```
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@ nav:
- sample-scripts/spo/remove-site-scripts/index.md
- sample-scripts/spo/detecting-pii-exists-in-sharepointlist-column/index.md
- sample-scripts/spo/disable-tenant-wide-extension/index.md
- sample-scripts/spo/download-attachments-from-list/index.md
- sample-scripts/spo/empty-tenant-recyclebin/index.md
- sample-scripts/spo/ensure-siteassets-library/index.md
- sample-scripts/spo/export-configs-tenant-wide-extensions/index.md
Expand Down

0 comments on commit 82f99fc

Please sign in to comment.