diff --git a/scripts/intune-export-powershell-scripts/README.md b/scripts/intune-export-powershell-scripts/README.md
new file mode 100644
index 000000000..5baf0fff2
--- /dev/null
+++ b/scripts/intune-export-powershell-scripts/README.md
@@ -0,0 +1,247 @@
+
+
+# Export Intune PowerShell scripts to local storage.
+
+## Summary
+
+Retrieves all or specific PowerShell scripts from Microsoft Intune via Graph API and saves them locally.
+Designed for automation workflows, script auditing, and compliance tracking. The script connects with "DeviceManagementConfiguration.Read.All" and "DeviceManagementScripts.Read.All" permissions
+
+
+By default, the script has only registered Microsoft Graph and SharePoint Online Microsoft AAD apps (with their respective appId property). Feel free to add any other API listed [here](https://learn.microsoft.com/troubleshoot/azure/active-directory/verify-first-party-apps-sign-in#application-ids-for-commonly-used-microsoft-applications) in the `AadApis` class!
+
+
+# [CLI for Microsoft 365 using PowerShell](#tab/cli-m365-ps)
+
+```powershell
+
+# User Input
+$api = "Microsoft Graph" # Or "SharePoint"
+$permission = "Sites.Read.All" # Can be "Read" if seeking more permissions
+
+# Connect to Microsoft 365
+if ($(m365 status) -match "Logged Out") {
+ m365 login
+}
+
+# Configure the CLI to output as JSON on each execution
+$m365output = m365 cli config get --key output
+if ($m365output -notmatch "json") {
+ m365 cli config set --key output --value json
+}
+
+# Get CLI commands JSON output converted as objects
+function Get-CLIValue {
+ [cmdletbinding()]
+ param(
+ [parameter(Mandatory = $true, ValueFromPipeline = $true)]
+ $input
+ )
+
+ $output = $input | ConvertFrom-Json
+ if ($null -ne $output.error) {
+ throw $output.error
+ }
+ return $output
+}
+
+# Dedicated class to store Azure AD (AAD) Enterprise Microsoft Apps as valid param inputs
+class AadApis : System.Management.Automation.IValidateSetValuesGenerator {
+ [String[]] GetValidValues() {
+ $Global:aadApis = @{
+ "SharePoint" = "00000003-0000-0ff1-ce00-000000000000"
+ "Microsoft Graph" = "00000003-0000-0000-c000-000000000000"
+ }
+
+ return ($Global:aadApis).Keys
+ }
+}
+
+# Method to get delegated or application permissions from a registered AAD MS App, based on name
+function Get-AADPermission {
+ [cmdletbinding()]
+ param(
+ [parameter(Mandatory)]
+ [ValidateSet([AadApis], IgnoreCase = $false)]
+ $ApiName,
+ [parameter(Mandatory)]
+ $PermissionName,
+ [parameter(Mandatory = $false)]
+ [Switch]$Delegated,
+ [parameter(Mandatory = $false)]
+ [Switch]$Application
+ )
+
+ try {
+ $sp = m365 aad sp get --appId ($Global:aadApis)[$ApiName] | Get-CLIValue
+
+ if ($Delegated) {
+ $permissionsInfo = $sp.oauth2PermissionScopes | Where-Object { $_.value -match $PermissionName }
+ }
+ elseif ($Application) {
+ $permissionsInfo = $sp.appRoles | Where-Object { $_.value -match $PermissionName }
+ }
+ else {
+ throw "Please define if seeked permission is a delegated (-Scope) or an application (-Role) one"
+ }
+
+ if ($permissionsInfo) {
+ Write-Host "AAD app info:"
+ Write-Host ($sp | Select-Object id, appId, displayName | Format-List | Out-String)
+ Write-Host "-----------"
+ Write-Host "Permissions info:"
+
+ foreach ($perm in $permissionsInfo) {
+ Write-Host ($perm | Format-List | Out-String)
+ }
+ }
+ else {
+ $permissionType = (&{If($Delegated -eq $true) {"Delegated"} Else {"Application"}})
+
+ Write-Warning "No $($permissionType) permission named [$($PermissionName)] found for $($ApiName) App"
+ }
+ }
+ catch {
+ Write-Error $_.Exception
+ }
+}
+
+# Run the command
+Get-AADPermission -ApiName $api -PermissionName $permission -Application
+
+```
+[!INCLUDE [More about CLI for Microsoft 365](../../docfx/includes/MORE-CLIM365.md)]
+
+
+# [Microsoft Graph PowerShell](#tab/graphps)
+
+```powershell
+
+<#
+.SYNOPSIS
+Export Intune PowerShell scripts to local storage.
+
+.DESCRIPTION
+Retrieves all or specific PowerShell scripts from Microsoft Intune via Graph API and saves them locally.
+Designed for automation workflows, script auditing, and compliance tracking.
+
+.AUTHOR
+Sujin Nelladath — Microsoft Graph MVP
+
+.PARAMETER FolderPath
+Destination folder for exported scripts.
+
+.PARAMETER FileName
+Optional: Specific script filename to export.
+
+.EXAMPLE
+Export all scripts:
+.\Export-IntuneScripts.ps1 -FolderPath "C:\Intune\Scripts"
+
+.EXAMPLE
+Export a single script:
+.\Export-IntuneScripts.ps1 -FolderPath "C:\Intune\Scripts" -FileName "IntuneScript.ps1"
+#>
+
+Param(
+ [Parameter(Mandatory)] [string]$FolderPath,
+ [Parameter()] [string]$FileName
+)
+
+#Connect to Microsoft Graph
+Write-Host "Connecting to Microsoft Graph..." -ForegroundColor Cyan
+
+try
+
+{
+ Connect-MgGraph -Scopes "DeviceManagementConfiguration.Read.All","DeviceManagementScripts.Read.All"
+
+ Write-Host "Connected successfully." -ForegroundColor Green
+}
+
+catch
+
+{
+ Write-Error "Connection failed: $_"
+ exit
+}
+
+
+#Check Destination Folder
+
+if (!(Test-Path $FolderPath))
+
+{
+ New-Item -Path $FolderPath -ItemType Directory -Force | Out-Null
+ Write-Host "Created folder: $FolderPath" -ForegroundColor Yellow
+}
+
+
+
+#Export Function
+function Export-IntuneScript
+
+{
+ param (
+ [Parameter(Mandatory)] $ScriptObject,
+ [Parameter(Mandatory)] $DestinationFolder
+ )
+
+ $apiVersion = "beta"
+ $baseUri = "https://graph.microsoft.com/$apiVersion"
+ $scriptDetails = Invoke-MgGraphRequest -Uri "$baseUri/deviceManagement/deviceManagementScripts/$($ScriptObject.id)" -Method GET
+ $decodedContent = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($scriptDetails.scriptContent))
+ $outputPath = Join-Path $DestinationFolder $ScriptObject.fileName
+
+ $decodedContent | Out-File -Encoding ASCII -FilePath $outputPath
+ Add-Content -Path $outputPath -Value "`n# Exported by Sujin Nelladath — Microsoft Graph MVP"
+}
+
+#Retrieve and Export Scripts
+$graphApiVersion = "beta"
+$baseUri = "https://graph.microsoft.com/$graphApiVersion"
+$scriptList = (Invoke-MgGraphRequest -Uri "$baseUri/deviceManagement/deviceManagementScripts" -Method GET).value
+$totalScripts = $scriptList.Count
+Write-Host "Found $totalScripts scripts." -ForegroundColor Cyan
+
+$counter = 1
+foreach ($script in $scriptList)
+
+ {
+ $progress = ($counter * 100 / $totalScripts)
+ Write-Progress -Activity "Exporting $($script.fileName)" -Status "$counter of $totalScripts" -PercentComplete $progress
+
+ if ($FileName)
+ {
+ if ($script.fileName -eq $FileName)
+
+ {
+ Export-IntuneScript -ScriptObject $script -DestinationFolder $FolderPath
+ }
+ }
+
+ else
+
+ {
+ Export-IntuneScript -ScriptObject $script -DestinationFolder $FolderPath
+ }
+
+ $counter++
+}
+Write-Host "Export complete." -ForegroundColor Green
+#endregion
+
+```
+[!INCLUDE [More about Microsoft Graph PowerShell SDK](../../docfx/includes/MORE-GRAPHSDK.md)]
+***
+
+
+## Contributors
+
+| Author(s) |
+|------------------------------------------------------|
+| [Sujin Nelladath](https://github.com/nelladath) | (https://www.linkedin.com/in/sujin-nelladath-8911968a/)
+
+
+[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
+
\ No newline at end of file
diff --git a/scripts/intune-export-powershell-scripts/assets/example.png b/scripts/intune-export-powershell-scripts/assets/example.png
new file mode 100644
index 000000000..f96ae0413
Binary files /dev/null and b/scripts/intune-export-powershell-scripts/assets/example.png differ
diff --git a/scripts/intune-export-powershell-scripts/assets/preview.png b/scripts/intune-export-powershell-scripts/assets/preview.png
new file mode 100644
index 000000000..f96ae0413
Binary files /dev/null and b/scripts/intune-export-powershell-scripts/assets/preview.png differ
diff --git a/scripts/intune-export-powershell-scripts/assets/sample.json b/scripts/intune-export-powershell-scripts/assets/sample.json
new file mode 100644
index 000000000..7305873c7
--- /dev/null
+++ b/scripts/intune-export-powershell-scripts/assets/sample.json
@@ -0,0 +1,79 @@
+[
+ {
+ "name": "intune-export-powershell-scripts",
+ "source": "pnp",
+ "title": "Export Intune PowerShell scripts to local storage",
+ "shortDescription": "Exports Intune PowerShell scripts to local storage.",
+ "url": "https://pnp.github.io/script-samples/intune-export-powershell-scripts/README.html",
+ "longDescription": [
+ ""
+ ],
+ "creationDateTime": "2026-11-13",
+ "updateDateTime": "2026-11-13",
+ "products": [
+ "Graph",
+ "Entra ID",
+ "Microsoft 365"
+ ],
+ "metadata": [
+ {
+ "key": "CLI-FOR-MICROSOFT365",
+ "value": "5.5.0"
+ },
+ {
+ "key": "GRAPH-POWERSHELL",
+ "value": "1.11.0"
+ },
+ {
+ "key": "POWERSHELL",
+ "value": "7.2.1"
+ }
+ ],
+ "categories": [
+ "Configure",
+ "Security"
+ ],
+ "tags": [
+ "Connect-MgGraph",
+ "Invoke-MgGraphRequest",
+ "DeviceManagementScripts.Read.All",
+ "DeviceManagementConfiguration.Read.All",
+ "app registration",
+ "delegated permission",
+ "application permission"
+ ],
+ "thumbnails": [
+ {
+ "type": "image",
+ "order": 100,
+ "url": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/intune-export-powershell-scripts/assets/preview.png",
+ "alt": "Preview of the sample Export Intune PowerShell scripts to local storage"
+ }
+ ],
+ "authors": [
+ {
+ "gitHubAccount": "nelladath",
+ "company": "",
+ "pictureUrl": "https://github.com/nelladath.png",
+ "name": "Sujin Nelladath"
+ }
+ ],
+ "references": [
+ {
+ "name": "Want to learn more about PnP PowerShell and the cmdlets",
+ "description": "Check out the PnP PowerShell site to get started and for the reference to the cmdlets.",
+ "url": "https://aka.ms/pnp/powershell"
+ },
+ {
+ "name": "Want to learn more about CLI for Microsoft 365 and the commands",
+ "description": "Check out the CLI for Microsoft 365 site to get started and for the reference to the commands.",
+ "url": "https://aka.ms/cli-m365"
+ },
+ {
+ "name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
+ "description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
+ "url": "https://learn.microsoft.com/graph/powershell/get-started"
+ }
+ ]
+ }
+]
diff --git a/scripts/m365-set-out-of-office/README.md b/scripts/m365-set-out-of-office/README.md
new file mode 100644
index 000000000..1ffee9b62
--- /dev/null
+++ b/scripts/m365-set-out-of-office/README.md
@@ -0,0 +1,218 @@
+
+
+# Set Out of Office for a user's mailbox using the Microsoft Graph API
+
+## Summary
+
+Admins often need to configure Out of Office for users who are on leave, leaving the organisation, or unavailable (for example, during offboarding). This script lets an admin set it without logging in to the user's mailbox. The script connects with "MailboxSettings.ReadWrite" and "User.Read.All" permission
+
+
+
+By default, the script has only registered Microsoft Graph and SharePoint Online Microsoft AAD apps (with their respective appId property). Feel free to add any other API listed [here](https://learn.microsoft.com/troubleshoot/azure/active-directory/verify-first-party-apps-sign-in#application-ids-for-commonly-used-microsoft-applications) in the `AadApis` class!
+
+
+# [CLI for Microsoft 365 using PowerShell](#tab/cli-m365-ps)
+
+```powershell
+
+# User Input
+$api = "Microsoft Graph" # Or "SharePoint"
+$permission = "Sites.Read.All" # Can be "Read" if seeking more permissions
+
+# Connect to Microsoft 365
+if ($(m365 status) -match "Logged Out") {
+ m365 login
+}
+
+# Configure the CLI to output as JSON on each execution
+$m365output = m365 cli config get --key output
+if ($m365output -notmatch "json") {
+ m365 cli config set --key output --value json
+}
+
+# Get CLI commands JSON output converted as objects
+function Get-CLIValue {
+ [cmdletbinding()]
+ param(
+ [parameter(Mandatory = $true, ValueFromPipeline = $true)]
+ $input
+ )
+
+ $output = $input | ConvertFrom-Json
+ if ($null -ne $output.error) {
+ throw $output.error
+ }
+ return $output
+}
+
+# Dedicated class to store Azure AD (AAD) Enterprise Microsoft Apps as valid param inputs
+class AadApis : System.Management.Automation.IValidateSetValuesGenerator {
+ [String[]] GetValidValues() {
+ $Global:aadApis = @{
+ "SharePoint" = "00000003-0000-0ff1-ce00-000000000000"
+ "Microsoft Graph" = "00000003-0000-0000-c000-000000000000"
+ }
+
+ return ($Global:aadApis).Keys
+ }
+}
+
+# Method to get delegated or application permissions from a registered AAD MS App, based on name
+function Get-AADPermission {
+ [cmdletbinding()]
+ param(
+ [parameter(Mandatory)]
+ [ValidateSet([AadApis], IgnoreCase = $false)]
+ $ApiName,
+ [parameter(Mandatory)]
+ $PermissionName,
+ [parameter(Mandatory = $false)]
+ [Switch]$Delegated,
+ [parameter(Mandatory = $false)]
+ [Switch]$Application
+ )
+
+ try {
+ $sp = m365 aad sp get --appId ($Global:aadApis)[$ApiName] | Get-CLIValue
+
+ if ($Delegated) {
+ $permissionsInfo = $sp.oauth2PermissionScopes | Where-Object { $_.value -match $PermissionName }
+ }
+ elseif ($Application) {
+ $permissionsInfo = $sp.appRoles | Where-Object { $_.value -match $PermissionName }
+ }
+ else {
+ throw "Please define if seeked permission is a delegated (-Scope) or an application (-Role) one"
+ }
+
+ if ($permissionsInfo) {
+ Write-Host "AAD app info:"
+ Write-Host ($sp | Select-Object id, appId, displayName | Format-List | Out-String)
+ Write-Host "-----------"
+ Write-Host "Permissions info:"
+
+ foreach ($perm in $permissionsInfo) {
+ Write-Host ($perm | Format-List | Out-String)
+ }
+ }
+ else {
+ $permissionType = (&{If($Delegated -eq $true) {"Delegated"} Else {"Application"}})
+
+ Write-Warning "No $($permissionType) permission named [$($PermissionName)] found for $($ApiName) App"
+ }
+ }
+ catch {
+ Write-Error $_.Exception
+ }
+}
+
+# Run the command
+Get-AADPermission -ApiName $api -PermissionName $permission -Application
+
+```
+[!INCLUDE [More about CLI for Microsoft 365](../../docfx/includes/MORE-CLIM365.md)]
+
+
+# [Microsoft Graph PowerShell](#tab/graphps)
+
+```powershell
+
+# Connect to Microsoft Graph (used only for authentication)
+Connect-MgGraph -Scopes "MailboxSettings.ReadWrite", "User.Read.All"
+
+# Collect user input
+$userPrincipalName = Read-Host "Enter the user's email address"
+
+# Look up the user via REST API
+try
+{
+ $user = Invoke-MgGraphRequest -Method GET `
+ -Uri "https://graph.microsoft.com/v1.0/users/$($userPrincipalName)?`$select=id,displayName,userPrincipalName"
+}
+catch
+
+{
+ Write-Host "USER NOT FOUND!" -ForegroundColor Red
+ return
+}
+$userID = $user.id
+
+# Out of Office time inputs
+$startTime = Read-Host "Enter OOO start date and time (yyyy-MM-dd HH:mm, e.g. 2026-11-21 09:00)"
+$endTime = Read-Host "Enter OOO end date and time (yyyy-MM-dd HH:mm, e.g. 2026-11-21 20:00)"
+
+$format = "yyyy-MM-dd HH:mm"
+$culture = [System.Globalization.CultureInfo]::InvariantCulture
+$start = [datetime]::MinValue
+$end = [datetime]::MinValue
+
+if (-not ([datetime]::TryParseExact($startTime, $format, $culture, 'None', [ref]$start) -and
+ [datetime]::TryParseExact($endTime, $format, $culture, 'None', [ref]$end))) {
+ Write-Host "Invalid date format. Use $format." -ForegroundColor Red
+ return
+}
+if ($end -le $start)
+{
+ Write-Host "End time must be after start time." -ForegroundColor Red
+ return
+}
+if ($end -le (Get-Date))
+
+{
+ Write-Host "End time must be in the future." -ForegroundColor Red
+ return
+}
+
+$startTimeInIso = $start.ToString("yyyy-MM-ddTHH:mm:ss")
+$endTimeInIso = $end.ToString("yyyy-MM-ddTHH:mm:ss")
+
+# Out of Office messages
+$internalMsg = Read-Host "Enter internal reply message"
+$setExternal = Read-Host "Do you want to set an external reply message? (Yes/No)"
+
+$externalMsg = ""
+$externalAudience = "none"
+if ($setExternal -eq "Yes")
+{
+ $externalMsg = Read-Host "Enter external reply message"
+ $externalAudience = "all"
+}
+
+# Body
+$body = @{
+ automaticRepliesSetting = @{
+ status = "scheduled"
+ externalAudience = $externalAudience
+ scheduledStartDateTime = @{
+ dateTime = $startTimeInIso
+ timeZone = "India Standard Time"
+ }
+ scheduledEndDateTime = @{
+ dateTime = $endTimeInIso
+ timeZone = "India Standard Time"
+ }
+ internalReplyMessage = $internalMsg
+ externalReplyMessage = $externalMsg
+ }
+} | ConvertTo-Json -Depth 5
+
+# Set the OOO via REST API
+$URI = "https://graph.microsoft.com/v1.0/users/$userID/mailboxSettings"
+Invoke-MgGraphRequest -Uri $URI -Method PATCH -Body $body -ContentType "application/json"
+
+Write-Host "Automatic reply settings successfully applied for $userPrincipalName." -ForegroundColor Green
+
+```
+[!INCLUDE [More about Microsoft Graph PowerShell SDK](../../docfx/includes/MORE-GRAPHSDK.md)]
+***
+
+
+## Contributors
+
+| Author(s) |
+|------------------------------------------------------|
+| [Sujin Nelladath](https://github.com/nelladath) | (https://www.linkedin.com/in/sujin-nelladath-8911968a/)
+
+
+[!INCLUDE [DISCLAIMER](../../docfx/includes/DISCLAIMER.md)]
+
\ No newline at end of file
diff --git a/scripts/m365-set-out-of-office/assets/example.png b/scripts/m365-set-out-of-office/assets/example.png
new file mode 100644
index 000000000..0ce695624
Binary files /dev/null and b/scripts/m365-set-out-of-office/assets/example.png differ
diff --git a/scripts/m365-set-out-of-office/assets/preview.png b/scripts/m365-set-out-of-office/assets/preview.png
new file mode 100644
index 000000000..0ce695624
Binary files /dev/null and b/scripts/m365-set-out-of-office/assets/preview.png differ
diff --git a/scripts/m365-set-out-of-office/assets/sample.json b/scripts/m365-set-out-of-office/assets/sample.json
new file mode 100644
index 000000000..88f0e7eb5
--- /dev/null
+++ b/scripts/m365-set-out-of-office/assets/sample.json
@@ -0,0 +1,80 @@
+[
+ {
+ "name": "m365-set-out-of-office",
+ "source": "pnp",
+ "title": "Set Out of Office for a user's mailbox using the Microsoft Graph API",
+ "shortDescription": "Sets the Out of Office status for a user's mailbox using the Microsoft Graph.",
+ "url": "https://pnp.github.io/script-samples/m365-set-out-of-office/README.html",
+ "longDescription": [
+ ""
+ ],
+ "creationDateTime": "2026-11-21",
+ "updateDateTime": "2026-11-21",
+ "products": [
+ "Graph",
+ "Exchange",
+ "Entra ID"
+ ],
+ "metadata": [
+ {
+ "key": "CLI-FOR-MICROSOFT365",
+ "value": "5.5.0"
+ },
+ {
+ "key": "GRAPH-POWERSHELL",
+ "value": "1.11.0"
+ },
+ {
+ "key": "POWERSHELL",
+ "value": "7.2.1"
+ }
+ ],
+ "categories": [
+ "Configure",
+ "Security"
+ ],
+ "tags": [
+ "Connect-MgGraph",
+ "Invoke-MgGraphRequest",
+ "User.Read.All",
+ "MailboxSettings.ReadWrite",
+ "requiredResourceAccess",
+ "app registration",
+ "delegated permission",
+ "application permission"
+ ],
+ "thumbnails": [
+ {
+ "type": "image",
+ "order": 100,
+ "url": "https://raw.githubusercontent.com/pnp/script-samples/main/scripts/m365-set-out-of-office/assets/preview.png",
+ "alt": "Preview of the sample Set Out of Office for a user's mailbox"
+ }
+ ],
+ "authors": [
+ {
+ "gitHubAccount": "nelladath",
+ "company": "",
+ "pictureUrl": "https://github.com/nelladath.png",
+ "name": "Sujin Nelladath"
+ }
+ ],
+ "references": [
+ {
+ "name": "Want to learn more about PnP PowerShell and the cmdlets",
+ "description": "Check out the PnP PowerShell site to get started and for the reference to the cmdlets.",
+ "url": "https://aka.ms/pnp/powershell"
+ },
+ {
+ "name": "Want to learn more about CLI for Microsoft 365 and the commands",
+ "description": "Check out the CLI for Microsoft 365 site to get started and for the reference to the commands.",
+ "url": "https://aka.ms/cli-m365"
+ },
+ {
+ "name": "Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets",
+ "description": "Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.",
+ "url": "https://learn.microsoft.com/graph/powershell/get-started"
+ }
+ ]
+ }
+]