To allow another computer with the same operating system (Windows Server 2022) to log into a folder without entering a login password, you can try the following steps on the server:
Open the Local Group Policy Editor console (gpedit.msc) and navigate to Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options.
Enable the following settings:
Accounts: Guest Account Status: Enabled
Network access: Let Everyone permissions apply to anonymous users: Enabled
Network access: Do not allow anonymous enumeration of SAM accounts and shares: Disabled
Open the Deny log on locally policy under Local Policies -> User Rights Assignment to ensure that the Guest account is specified in the policy settings.
Make sure that Guest or Everyone is also specified in the Access this computer from network policy and the Deny access to this computer from the network policy should not have Guest as the value.
Also, make sure that network folder sharing is enabled under Settings -> Network & Internet -> Ethernet -> Change advanced sharing options. Check that Turn on file and printer sharing, Network Discovery (allows to show computers in the network environment) are enabled, and Turn off password protected sharing option is disabled in all network profile sections (Private, Public, All networks).
Please note that opening anonymous access to shared network folders is not recommended for security reasons. Anonymous access allows any unauthenticated user to read, modify, or delete files in a shared folder. Therefore, it’s recommended for exceptional use in a secure network perimeter.