I created profile.ps1 and placed in directory C:\Users\myuser\Documents\WindowsPowerShell. It gets loaded when i am in
RDP session but not when im in PsRemote Session. I am using same User Credential for RDP session as well for PsRemote Session.
Thank You guys in advance.
Microsoft has a great article on this. Read the whole thing, but your question is answered in the last section on that page