GitHub - Viend1211/RevitServer-MaxBytesPerRead-Fix: Interactive PowerShell tool for Autodesk Revit Server to manage maxBytesPerRead values across all installed Revit Server versions. Supports backup creation, service restart, restore to default values, logging, and EXE deployment. · GitHub
Skip to content

Viend1211/RevitServer-MaxBytesPerRead-Fix

Folders and files

Repository files navigation

RevitServer-MaxBytesPerRead-Fix

Interactive configuration tool for Autodesk Revit Server.

This utility automatically detects installed Revit Server versions, allows selecting specific versions or all installations, and updates the maxBytesPerRead value inside Revit Server web.config files.

The tool can also restore the default Autodesk value.


Revit Server MaxBytesPerRead Fix

PowerShell-скрипт для автоматического исправления параметра MaxBytesPerRead в настройках Revit Server.

Быстрый запуск

Запустить напрямую из GitHub:

irm https://raw.githubusercontent.com/Viend1211/RevitServer-MaxBytesPerRead-Fix/main/Fix-RevitServer.ps1 | iex

или

Invoke-RestMethod https://raw.githubusercontent.com/Viend1211/RevitServer-MaxBytesPerRead-Fix/main/Fix-RevitServer.ps1 | Invoke-Expression

Скачать и запустить локально

$Script = "$env:TEMP\Fix-RevitServer.ps1"

Invoke-WebRequest `
    -Uri "https://raw.githubusercontent.com/Viend1211/RevitServer-MaxBytesPerRead-Fix/main/Fix-RevitServer.ps1" `
    -OutFile $Script

powershell.exe -ExecutionPolicy Bypass -File $Script

Однострочный запуск

$F="$env:TEMP\Fix-RevitServer.ps1";iwr "https://raw.githubusercontent.com/Viend1211/RevitServer-MaxBytesPerRead-Fix/main/Fix-RevitServer.ps1" -OutFile $F;powershell -ExecutionPolicy Bypass -File $F

Требования

  • Windows
  • PowerShell 5.1+
  • Права администратора (рекомендуется)

Что делает скрипт

  • Проверяет настройки Revit Server.
  • Изменяет параметр MaxBytesPerRead на рекомендуемое значение.
  • Применяет необходимые изменения автоматически.
  • Выводит результат выполнения в консоль.

Why?

This tool is designed to improve Autodesk Revit Server performance by optimizing network read operations.

Increasing maxBytesPerRead can help:

  • Faster model loading and synchronization
  • Improved performance with large BIM files
  • More stable work with heavy central models
  • Reduced network overhead during data transfer
  • Better responsiveness in multi-user environments

It is especially useful in environments with:

  • Large Revit models
  • WAN / remote office connections
  • High collaboration load on Revit Server

Features

  • Detects all installed Revit Server versions
  • Interactive version selection
  • Supports:
    • Custom optimized value (102400)
    • Restore default value (4096)
  • Automatically stops and restarts Revit Server services
  • Creates .bak backup files
  • Generates detailed logs
  • Supports PowerShell and EXE deployment
  • UTF-8 console support

Supported Versions

Tested with:

  • Revit Server 2020
  • Revit Server 2021
  • Revit Server 2022
  • Revit Server 2023
  • Revit Server 2024

What Does It Change?

The tool modifies:

maxBytesPerRead="4096"

to:

maxBytesPerRead="102400"

inside:

Services\ModelService\web.config
Services\LocalService\web.config

Why?

Increasing maxBytesPerRead may improve:

  • Revit Server synchronization performance
  • Large model transfer stability
  • WAN replication behavior
  • Read throughput for large BIM projects

Usage

Run as Administrator.

PowerShell

.\Fix-RevitServer.ps1

EXE

Fix-RevitServer.exe

Interactive Menu

Example:

[1] Revit Server 2022
[2] Revit Server 2024

[A] All versions

Select versions:

Then:

[1] Set optimized value (102400)
[2] Restore Autodesk default (4096)

Logs

The tool generates:

RevitServerFix.log

Example:

2026-05-16 15:44:11 - Processing:
C:\Program Files\Autodesk\Revit Server 2022\Services\ModelService\web.config

SUCCESS

Backup Files

Automatic backups are created:

web.config.bak


Disclaimer

Use at your own risk.

Always test configuration changes in a staging environment before production deployment.

This project is not affiliated with Autodesk.

About

Interactive PowerShell tool for Autodesk Revit Server to manage maxBytesPerRead values across all installed Revit Server versions. Supports backup creation, service restart, restore to default values, logging, and EXE deployment.

Resources

Stars

Watchers

Forks

Packages

Contributors