This is what you're looking for:
deSolve(y''-2y'+5y=17cos(2t)+5,t,y)
deSolve solves ODEs up to order two, with or without initial values / boundary conditions. The argument list is equation,indep-var,dep-var and derivatives are specified using the apostrophe (under the ?! menu, next to the G key).
The solution will have two constants from c1 to c99 (the numbering is continuous, so the first time you solve the equation you get constants c1 and c2, the second time you get c2 and c4, etc.).
If you know initial values or boundary conditions you may solve the equation directly:
deSolve(y''-2*y'+5*y=17*cos(2*t)+5 and y(0)=1 and y'(0)=0,t,y)
or
deSolve(y''-2*y'+5*y=17*cos(2*t)+5 and y(0)=1 and y(2)=1,t,y)
Cheers,
Nelson