Hello Ashraf Saeed,
Thank you for posting in Q&A forum.
1.Is your Windows server 2022 in one domain or in the workgroup?
2.If the server is in one domain, can you connect to all the USB port in the past?
3.If you can be able to connect to all the USB port in the past, what change have you made currently then the issue occurs?
If the server in one domain, based on "I disabled any "Deny" policy in the local policies that prevent any removable storage device", please check if you have set any similar setting as "prevent any removable storage device" (including user configurations and computer configurations) via domain GPO.
Here are related settings under Computer Configurations:
For checking Computer Configuration within gpresult, we can follow steps below.
Logon this machine using administrator account.
Open CMD (run as Administrator).
Type gpresult /h C:\gpo.html and click Enter.
Open gpo.html and check gpo setting under "Computer Details".
Here are related settings under User Configurations:
For checking User Configurations within gpresult, we can follow steps below.
Logon the machine using normal domain user account.
Create a folder named F1.
Open CMD (do not run as Administrator).
Type gpresult /h C:\F1\gpo.html and click Enter.
Open gpo.html and check gpo setting under "User Details".
Also, please check if there is any Deny entry permission via Security tab.
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.