Windows Server 2022 insecure logons to an SMB server must be disabled. GROUP ID: V-254339 RULE ID: SV-254339r991589 Insecure guest logons allow unauthenticated access to shared folders. Shared resources on a system must require authentication to establish proper access.
Solution
Configure the policy value for Computer Configuration >> Administrative Templates >> Network >> Lanman Workstation >> Enable insecure guest logons to 'Disabled' .