Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Where is "UseLocalScope" set by PSRemote endpoint

$
0
0

According to the help pages, using the SessionConfigurationFile parameter set for Register-PSSessionConfiguration allows me to specify a .pssc file created by New-PSSessionConfigurationFile and a StartupScript (but no SessionType as I just noticed that it is only in the NameParameterSet parameter set). New-PSSessionConfigurationFile does allow SessionType to be set (even to RestrictedRemoteServer which is what I want). Between those two I get the combination I need.
I am looking for a restricted environment AFTER it is setup for the user. My script that tailors that environment to the user needs to be able to do whatever I tell it. It sounds like the restricted environment is being setup first and the script is supposed to try to work in that environment—even one that is too restrictive for it to run. That makes sense if the script needs to set up restrictions for otherwise wide-open environment . With RestrictedRemoteServer however, that limits my ability to make “session creation time” decisions like make generated PS functions available that I take responsibility for securing—and have an otherwise “safely restricted” environment configured the best the PowerShell team knows how (that is what I assume I am asking for when I use the RestrictedRemoteServer setting).
Steve


Viewing all articles
Browse latest Browse all 13067

Trending Articles