PowerShell Web Access Profiles

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Mike Bennett Mike Bennett 1 year, 6 months ago.

  • Author
  • #24820
    Profile photo of Mike Bennett
    Mike Bennett

    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?


  • #24822
    Profile photo of Don Jones
    Don Jones

    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
    Profile photo of Mike Bennett
    Mike Bennett

    Thanks, Don!

You must be logged in to reply to this topic.