Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 12 additions & 12 deletions scripts/Preflight-OneDrive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,27 @@ title: Preflight-OneDrive
type: script
category: PowerShell
summary: >-
Scan a local or network folder for potential OneDrive for Business sync issues and optionally
generate an HTML report.
Archived OneDrive preflight scanner retained for reference. Use current OneDrive limits and Migration Manager assessment instead.
author: Alejandro Lopez
version: 1.0.0
version: 1.0.1
published: "2019-08-02"
updated: "2019-08-02"
updated: "2026-11-04"
tags:
- onedrive
- migration
format: ps1
status: archived
whatItIs: >-
A PowerShell preflight scanner that checks a local folder or UNC path for potential OneDrive for
Business synchronization issues.
An archived PowerShell preflight scanner retained for historical reference. Its embedded checker
defaults to a 15 GB file-size limit that no longer reflects current OneDrive limits.
whyUseIt:
- Find problematic paths before deploying the OneDrive sync client.
- Review results in the console or an optional HTML report.
howToUse: |-
Install the external dependencies, then run:

```powershell
.\Preflight-OneDrive.ps1 -Path "\\dc.contoso.com\smb" -GenerateHTMLReport
```
Do not use this archived scanner for current readiness decisions. Review the
[current OneDrive and SharePoint limits](https://learn.microsoft.com/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits#service-limits-for-all-plans).
For file-share migration assessment, use
[Migration Manager scan and assessment reports](https://learn.microsoft.com/sharepointmigration/mm-fileshare-scan-assess).
prerequisites:
- EnhancedHTML2 module
- Test-OneDrivePath function
Expand All @@ -33,6 +32,8 @@ prerequisites:

# Microsoft FastTrack Open Source - Preflight-OneDrive

> **Archived (2026-11-04):** This script is retained for historical reference. Its embedded checker defaults to a 15 GB file-size limit, while the [current OneDrive and SharePoint individual-file limit is 250 GB](https://learn.microsoft.com/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits#service-limits-for-all-plans). Do not rely on its results for current readiness decisions. For file-share migration assessment, use [Migration Manager scan and assessment reports](https://learn.microsoft.com/sharepointmigration/mm-fileshare-scan-assess). The original script and instructions remain below for reference.

Script to generate a report (within console or HTML report) from a directory (local folder or UNC path) of potential sync issues before deploying the OneDrive for Business sync client.

## Usage
Expand Down Expand Up @@ -103,4 +104,3 @@ Privacy information can be found at https://privacy.microsoft.com/en-us/
Microsoft and any contributors reserve all others rights, whether under their respective copyrights, patents,
or trademarks, whether by implication, estoppel or otherwise.


30 changes: 13 additions & 17 deletions tools/SimpleGraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,32 @@
title: SimpleGraph
type: script
category: PowerShell
summary: A lightweight PowerShell module for calling any Microsoft Graph endpoint with simple GET, POST, PATCH, and DELETE cmdlets.
summary: Archived Graph REST wrapper retained for reference. Use Microsoft Graph PowerShell and Invoke-MgGraphRequest instead.
author: David Whitney
version: 1.0.0
version: 1.0.1
published: "2020-10-15"
updated: "2022-01-20"
updated: "2026-11-04"
tags:
- microsoft-graph
- powershell-module
- graph-api
- authentication
format: ps1
featured: false
status: active
status: archived
whatItIs: >-
A single-file PowerShell module (SimpleGraph.psm1) that makes web calls to the Microsoft Graph REST
API. It provides Connect-SimpleGraph for delegated, client-secret, or client-certificate sign-in
through the MSAL.PS module, plus Get-, New-, Set-, and Remove-SimpleGraphObject, Invoke-SimpleGraphRequest,
and Get-SimpleGraphReport for reading, creating, updating, deleting, sending custom calls, and
pulling usage reports.
An archived single-file PowerShell module (SimpleGraph.psm1) for Microsoft Graph REST calls,
retained for historical reference. It depends on the archived MSAL.PS project. Use the Microsoft
Graph PowerShell SDK and Invoke-MgGraphRequest for new work.
whyUseIt:
- Call any Graph endpoint without waiting for a matching Microsoft Graph PowerShell SDK cmdlet.
- Use the same few cmdlets for reads, creates, updates, deletes, and custom requests, with inline help for each.
- Pull Microsoft 365 usage reports from Graph, such as active user counts by workload for the last 7, 30, 90, or 180 days, as PowerShell objects.
howToUse: |-
1. Install MSAL.PS (`Install-Module MSAL.PS`) and register an Entra application with the redirect URI `https://login.microsoftonline.com/common/oauth2/nativeclient` for delegated sign-in.
2. Download `SimpleGraph.psm1` and import it, then connect with the scopes your calls need:

```powershell
Import-Module "C:\Users\you\Scripts\SimpleGraph.psm1"
Connect-SimpleGraph -ClientId "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" -TenantId "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" -Scopes "User.Read.All", "Group.Read.All"
Get-SimpleGraphObject users/you@domain.com
```
Use the [Microsoft Graph PowerShell SDK](https://learn.microsoft.com/powershell/microsoftgraph/installation)
instead. For endpoints without a dedicated cmdlet, use
[Invoke-MgGraphRequest](https://learn.microsoft.com/powershell/module/microsoft.graph.authentication/invoke-mggraphrequest?view=graph-powershell-1.0).
Existing SimpleGraph scripts need migration; this is not a drop-in replacement.
prerequisites:
- "MSAL.PS PowerShell module"
- "Microsoft Entra application registration (a client secret or certificate plus Graph application permissions for app-only use)"
Expand All @@ -42,6 +36,8 @@ prerequisites:

# Microsoft FastTrack Open Source - SimpleGraph module for generic PowerShell access to MS Graph API

> **Archived (2026-11-04):** This module is retained for historical reference and depends on the [archived MSAL.PS project](https://github.com/AzureAD/MSAL.PS). Use the [Microsoft Graph PowerShell SDK](https://learn.microsoft.com/powershell/microsoftgraph/installation) for new work. Its [Invoke-MgGraphRequest cmdlet](https://learn.microsoft.com/powershell/module/microsoft.graph.authentication/invoke-mggraphrequest?view=graph-powershell-1.0) supports arbitrary Graph REST requests, including endpoints without dedicated cmdlets. Existing SimpleGraph scripts need migration; this is not a drop-in replacement. The original module and instructions remain below for reference.

This PowerShell module provides a generic but simplified way to access Microsoft Graph API resources with PowerShell. It relies on the Graph authentication provided with the [MSAL.PS PowerShell module](https://github.com/AzureAD/MSAL.PS).

Visit the [Microsoft Graph API REST API reference](https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0) for complete details on how to make requests against Graph API with HTTPS, which is what this module uses.
Expand Down
Loading