Not only WMF 5.0 come with no documentation available whatsover for JEA ConstrainedEndpoint (try get-help New-PSSessionConfigurationFile -Parameter RunAsVirtualAccount)
But also none of those settings work!
Example below check endpoint called “jea” and it’s property RunAsVirtualAccount. Then reads config file and checks what actually config file is set to which shows those parameters are not being processed at all. WMF 5.0 RTM is total disaster, half of the stuff does not work (in addition for being pulled for other reasons). I raised bugs in UserVoice but there is no move on those either.
This works on Windows 2012 R2 machine but no on Windows 8.1 machine. Both computers are having PS 5.0 RTM on them.
Also would you mind testing if file created is valid? Shows as invalid for me
PS C:\Windows\system32> Test-PSSessionConfigurationFile .\a.pssc -Verbose
VERBOSE: The member 'RunAsVirtualAccount' is not a valid key. Please change the member to a valid key in the file
C:\Windows\system32\a.pssc.
False
What edition of Windows 8.1 are you running? Virtual accounts may be one of those features only available in Enterprise / Professional / Whatever. Need to track down those details.
I run Win 8.1 Enterprise edition. Also as you can see above Test-PSSessionConfigurationFile even considers RunAsVirtualAccount parameter not valid in configuration file even on Windows 2012.
Hmm, weird. You may get the standard “the X is for Experimental” response for why xJea isn’t quite there yet, but I’ll send a mail to the MVP list with a link to this thread.
This is RTM version of Powershell, I don’t think any of the parts of it are considered to be still Experimental. I deployed it in production and found half of the stuff is not working with Remoting in addition to missing helpfiles etc.
@Dave Get the same with this using Win 10 (11099.rs1_release.160109-1156)
I had a look, at the problem is because there is a validation process done in Test-PSConfigurationFile which is not working as it should.
Test-PSSessionConfiguration file calls a method VerifyConfigTable, which as part of its validation routine checks against a set of constants contained in a collection, ConfigTypeEntry. RunAsVirtualAccount isn’t in this list.
I’ll see if i can get any more information on this.