A method for operating a power take-off shaft of an agricultural tractor with an attachment hoist includes providing a power take-off shaft spatially assigned to the attachment hoist, a hoist controller and a control unit. The method also includes detecting an operating state of the power take-off shaft via a first sensor and an upper operating position of the attachment hoist via a second sensor. The method further includes restricting the upper operating position to a first maximum value by the control unit if the first sensor detects that the power take-off shaft is not operating, and restricting the upper operating position to a second maximum value by the control unit if the first sensor detects that the power take-off shaft is operating, where the second maximum valve is less than the first maximum value.