PowerShell Web Access Profiles

This topic contains 2 replies, has 2 voices, and was last updated by  Mike Bennett 2 years, 5 months ago.

  • Author
    Posts
  • #24820

    Mike Bennett
    Participant

    I successfully setup and configured PSWA but I'm having trouble figuring out where to place the profile.ps1 file so that it is loaded when I login to PS.

    Any help?

    When I check $Profile, it lists that the path is C:/users/myusername/documents. I placed the profile.ps1 file there, but no dice. I also checked $Profile.AllUsersAllHosts and moved the file to this location and same. How do I setup a profile for PSWA?

    Thanks!

  • #24822

    Don Jones
    Keymaster

    You cant.

    PWA uses Remoting to connect to computers. That means you're not in PowerShell.exe, you're in wsmprovhost.exe, which doesn't load profiles. Profiles aren't part of the shell engine, they're implemented by host applications, and the Remoting host application doesn't support them.

  • #24823

    Mike Bennett
    Participant

    Thanks, Don!

You must be logged in to reply to this topic.