Skip to content

Commit

Permalink
Revert "Update run.ps1"
Browse files Browse the repository at this point in the history
This reverts commit 413907a.
  • Loading branch information
smood922 committed Dec 21, 2023
1 parent 245b677 commit 34dd173
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Standards_DeletedUserRentention/run.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
param($tenant)

try {
$body = '{"deletedUserPersonalSiteRetentionPeriodInDays": 3650}'
$body = '{"deletedUserPersonalSiteRetentionPeriodInDays": 365}'
New-GraphPostRequest -tenantid $tenant -Uri "https://graph.microsoft.com/beta/admin/sharepoint/settings" -AsApp $true -Type PATCH -Body $body -ContentType "application/json"

Write-LogMessage -API "Standards" -tenant $tenant -message "Set deleted user rentention of OneDrive to 10 years" -sev Info
Write-LogMessage -API "Standards" -tenant $tenant -message "Set deleted user rentention of OneDrive to 1 year" -sev Info
}
catch {
Write-LogMessage -API "Standards" -tenant $tenant -message "Failed to set deleted user rentention of OneDrive to 10 years: $($_.exception.message)" -sev Error
}
Write-LogMessage -API "Standards" -tenant $tenant -message "Failed to set deleted user rentention of OneDrive to 1 year: $($_.exception.message)" -sev Error
}

0 comments on commit 34dd173

Please sign in to comment.