Unable to load Profile Script in PsRemote Session

Welcome Forums General PowerShell Q&A Unable to load Profile Script in PsRemote Session

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
1 month, 3 weeks ago.

  • Author
    Posts
  • #168406

    Participant
    Topics: 2
    Replies: 0
    Points: 29
    Rank: Member

    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.

  • #168451

    Participant
    Topics: 3
    Replies: 7
    Points: 65
    Rank: Member

    Microsoft has a great article on this.  Read the whole thing, but your question is answered in the last section on that page

    https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-6

You must be logged in to reply to this topic.