This container generates a Microsoft 365 PAC file using the Get-PacFile PowerShell script.
122
This container instantly generates a Microsoft 365 PAC file using the Get-PacFile PowerShell script.
Get-PacFile script.pause — If set (e.g., true), the container pauses after script execution and enters an interactive PowerShell shell.# Run with interactive shell after execution
docker run --rm -it \
-e defaultproxysettings="PROXY 10.10.10.100:8080" \
-e pause=true \
natecbh/m365-pac:alpine-3.20
# Run with lowercase hostnames and PAC type 1, store result in volume
docker run --rm \
-v myvolume:/app/result \
-e type=1 \
-e lowercase=true \
natecbh/m365-pac:alpine-3.20
Generates a PAC file optimized for Microsoft 365 connectivity.
This script accesses up-to-date information to generate a PAC file that prioritizes Microsoft 365 URLs for improved connectivity.
It supports different output formats depending on how traffic should be routed.
| Parameter | Description |
|---|---|
| Instance | Specifies the Microsoft 365 service instance (e.g., Worldwide, China, Germany, etc.). |
| ClientRequestId | A GUID used when querying the Microsoft 365 endpoint web service. |
| DirectProxySettings | Proxy settings for priority (Optimize / Allow) traffic. |
| DefaultProxySettings | Proxy settings for non-priority traffic. |
| Type | Defines routing behavior: • 1: Sends Optimize traffic directly.• 2: Sends Optimize and Allow traffic directly. |
| Lowercase | If set, hostnames in the PAC file are transformed to lowercase for consistent matching. |
| TenantName | Replaces wildcard tenant URLs in the PAC file. |
| ServiceAreas | Filters endpoints based on Microsoft 365 service areas (e.g., SharePoint, Skype, etc.). |
| FilePath | The file path to which the generated PAC content is saved. |
Content type
Image
Digest
sha256:d8612c90d…
Size
83 MB
Last updated
about 1 year ago
docker pull natecbh/m365-pac:alpine-3.20