Skip to content

Commit 2e4f932

Browse files
committed
Scaffolded sample
1 parent 37d77fa commit 2e4f932

3 files changed

Lines changed: 58 additions & 1 deletion

File tree

‎scripts/exo-mailboxes-with-archive-disabled/README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ try {
100100
Add-Content -LiteralPath $LogPath -Value "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') - Retrieved $($Mailboxes.Count) mailboxes."
101101
102102
# ============================================================================
103-
# IDENTIFY MAILBOXES WITHOUT AN IDENTIFY MAILBOXES WITHOUT AN ENABLED ARCHIVE
103+
# IDENTIFY MAILBOXES WITHOUT AN ENABLED ARCHIVE
104104
# ============================================================================
105105
$Results = @(
106106
$Mailboxes |
@@ -205,3 +205,4 @@ Run the assessment periodically as part of Exchange Online configuration reviews
205205
|1.0|October 10, 2026|Initial release|
206206

207207
[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
208+
<img src="https://m365-visitor-stats.azurewebsites.net/script-samples/scripts/exo-mailboxes-with-archive-disabled" />
58.7 KB
Loading
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[
2+
{
3+
"name": "exo-mailboxes-with-archive-disabled",
4+
"source": "pnp",
5+
"title": "Exchange Online Mailboxes with Archive Disabled",
6+
"shortDescription": "This script identifies Exchange Online mailboxes without an enabled archive and exports the results to a timestamped CSV report.",
7+
"url": "https://pnp.github.io/script-samples/exo-mailboxes-with-archive-disabled/README.html",
8+
"longDescription": [
9+
"Connects to Exchange Online using certificate-based application authentication, retrieves mailboxes and their archive status, then reports mailboxes where ArchiveStatus is None. The read-only assessment creates a timestamped CSV report and execution log."
10+
],
11+
"creationDateTime": "2026-10-10",
12+
"updateDateTime": "2026-10-10",
13+
"products": [
14+
"Office"
15+
],
16+
"metadata": [
17+
{
18+
"key": "POWERSHELL",
19+
"value": "7.2.0"
20+
}
21+
],
22+
"categories": [
23+
"Report",
24+
"Security"
25+
],
26+
"tags": [
27+
"Connect-ExchangeOnline",
28+
"Get-EXOMailbox",
29+
"Export-Csv",
30+
"ArchiveStatus"
31+
],
32+
"thumbnails": [
33+
{
34+
"type": "image",
35+
"order": 100,
36+
"url": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/exo-mailboxes-with-archive-disabled/assets/preview.png",
37+
"alt": "Preview of the sample Exchange Online Mailboxes with Archive Disabled"
38+
}
39+
],
40+
"authors": [
41+
{
42+
"gitHubAccount": "ojopiyo",
43+
"company": "",
44+
"pictureUrl": "https://github.com/ojopiyo.png",
45+
"name": "Josiah Opiyo"
46+
}
47+
],
48+
"references": [
49+
{
50+
"name": "Exchange Online PowerShell module",
51+
"description": "Learn how to connect to Exchange Online and use Exchange Online PowerShell cmdlets.",
52+
"url": "https://learn.microsoft.com/powershell/exchange/connect-to-exchange-online-powershell"
53+
}
54+
]
55+
}
56+
]

0 commit comments

Comments
 (0)