Easiest way my be to use meterpreter's priv escalation module.