I have configured a JEA endpoint with these settings only:
ModulesToImport = 'WebAdministration'
SessionType = 'RestrictedRemoteServer'
RunAsVirtualAccount = $true
Some cmdlets work as expected, but some, like 'Stop-Website' and 'Start-Website' return the follwing error:
Cannot find a provider with the name 'Variable'.
+ CategoryInfo : ObjectNotFound: (Variable:String) [Stop-Website], ProviderNotFoundException
+ FullyQualifiedErrorId : ProviderNotFound,Microsoft.IIs.PowerShell.Provider.StopWebsiteCommand
I have tried all the combinations of SessionType and LanguageMode, the only way it works is with a 'Default' SessionType, regardless of the LanguageMode. I have also checked the PSProviders and PSDrives and it seems they are all loaded.
I don't want to use the Default SessionType because it misses the whole point..