How to increaes the battery lifespan with operating system Windwos 10?
As of Windows 10, and the current technical standards for portable computer power-control (i.e. ACPI and more modern UEFI-based specifications), you can't. This is unfortunate because the benefits of limiting battery charge level are well-documented (cynically, keep-in-mind that computer manufacturers have a perverse incentive to sell batteries that wear out such that you'll purchase new batteries - also note that many laptops with 3 or even 5 year warranties will specifically exclude the Lithium-Ion battery pack or give the battery a much shorter warranty, even if it's an non-user-serviceable internal battery.
Do I need to install software or is it possible with Windows 10 Settings to change the behavior. e.g. stop charching after a specific percentage / Do not charge to 100%
It isn't possible from within Windows simply because the computer's battery charger controller hardware operates entirely independently from the operating-system - it's often a simple electronic connection from the DC jack on your laptop directly to the internal Lithium-Ion - protected only by commodity overcharge (i.e. beyond 100%) and overheating protection circuits - and these are not necessarily configurable by the OS or EFI firmware. Remember that your laptop will charge its battery to 100% when it's plugged-in, even when it's turned-off (so the OS has literally no way of limiting the battery's charge).
That said, some laptop makers do provide tools that do let you configure your battery charging hardware - both my old Toshiba Tecra laptop from 2006 and my Sony Vaio laptop from 2010 both had "battery health" / "battery care" utility programs that would configure the charge-limiter, which was nice.
Until Microsoft or another OS vendor - or civic-minded member of the EFI forum decides to champion a proposal for limiting battery charge, the best we can do is manually monitor battery charge and to physically unplug or switch-off the charger/docking-station if it exceeds some sensible limit. It's frustrating that it can't be easily automated.