To Save Screenshots Automatically to OneDrive in Windows 10, right click the OneDrive tray icon to open its menu.
You need to turn on the required option in its settings. The ability to save screenshots to OneDrive automatically is provided by the built-in OneDrive app.