Step 1: Open OneDrive App in your PC.
Step 2: Click on the OneDrive icon in the system tray.
Step 3: In the pop-up, click on Help & Settings and then click on Settings.
Step 4: Switch to Backup tab.
Step 5: Check the Automatically save screenshots I capture to OneDrive checkbox.