I'm not sure about mapping a printer, but to map drives create a .bat file and the line to map a drive is:
net use <drive letter:> "\\servername\directory" > nul
example:
net use R: "\\192.168.0.2\example" > nul
Do that for however many drives you need mapped (obviously change the drive letter, and make sure the letter's not in use already!) Put the .bat file somewhere and make it so it runs on startup.