Windows servers 2012 RDP session will disconnect immediately after login, this will solve after restarting the server.
if we access the shared folder by ip address it will show the error "there is not enough free memory to run this program " and if we use system name for accessing shared folder it will work fine
Server 2012 is newly configured as Additional domain controller to server 2008 and also it is file server.