Lexmark MS310
Check if the printer software is already installed.
Use the search command on the Start menu to locate Printer Home.
Open Printer Home, and then click Settings > Wireless Setup Utility.
Follow the steps on the computer screen.
Video: Printer driver installation using a script in Windows 10
Video: WSD Installation Using a Downloaded Lexmark Driver in Windows 10