Hello,
Summary of the issue:
- I have set up JEA in my usual manner on Server 2016, works tried and tried and true on Windows 2019. The .psrc file has visible functions and function definitions.
Root issue is JEA does not connect to the registered endpoint named “solar”, messages is your classic
Enter-PSSession : The term ‘Get-Command’ is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- Enter-PSSession -ComputerName server01 -ConfigurationName solar …
-
+ CategoryInfo : ObjectNotFound: (Get-Command:String) [Enter-PSSession], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
I found this link 'VisibleCmdlets' and 'VisibleFunctions' break internal functions usage · Issue #42 · PowerShell/JEA · GitHub which suggests to add this code to the visble functions @{Name = ‘GetUtilityCommand’; ScriptBlock = { Get-Command | Where-Object { $_.Source -eq ‘Microsoft.PowerShell.Utility’ }}}
This did nothing.
- This is pssessionconfiguration on the target 2016 server, for the solar endpoint.
Name : solar
PSVersion : 5.1
StartupScript :
RunAsUser :
Permission : server01\solarwinds_services_mgmt AccessAllowed
solarwinds_services_mgmt is a local group on the server, where I have populated an AD account.
- Of point #2, I’d like to somehow enable PSversion 7.5 for the solar JEA endpoint, I’m not sure how to do that. Is there a link showing how to register a PS endpoint for a higher level of PowerShell?
Yes, PowerShell 7.5.0 is installed on the 2016 server, and I executed Enable-PSRemoting