Information
Windows Server 2022 Autoplay must be turned off for nonvolume devices.
GROUP ID: V-254352
RULE ID: SV-254352r958804
Allowing AutoPlay to execute may introduce malicious code to a system. AutoPlay begins reading from a drive as soon as media is inserted into the drive. As a result, the setup file of programs or music on audio media may start. This setting will disable AutoPlay for nonvolume devices, such as Media Transfer Protocol (MTP) devices.
Solution
Configure the policy value for
Computer Configuration >> Administrative Templates >> Windows Components >> AutoPlay Policies >> Disallow Autoplay for nonvolume devices to 'Enabled'