This is how I solved the issue:
1. Ran this command to get logged on users and respective session IDs
2. Ran this command to log off my session:
LOGOFF SESSIONID /server:SERVERNAME
I reconnected through RDP and command prompt was there, so I could perform my maintenance tasks.