Hi LinhNguyen,
It is my happiness to reply to your case here.
I'd like to re-confirm whether you have performed all the mentioned steps in https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/delegate-ad-fs-pshell-access and
just got the error while performing the last step (determine if the correct users have access to the JEA endpoint).
If yes, please try (you may need to replace the items, especially those bold ones with your own)
Create the folder and empty files needed to create a PowerShell Module
$modulePath = Join-Path $env:ProgramFiles "WindowsPowerShell\Modules\ADFSActivity"
New-Item -ItemType Directory -Path $modulePath
New-Item -ItemType File -Path (Join-Path $modulePath "ADFSActivityFunctions.psm1")
New-ModuleManifest -Path (Join-Path $modulePath "ADFSActivity.psd1") -RootModule
"ADFSActivityFunctions.psm1"
$rcFolder = Join-Path $modulePath "RoleCapabilities"
New-Item -ItemType Directory $rcFolder
Create the PowerShell Roll Configuration File and place it into the $rcFolder path above
@{
GUID = '752d9f89-5dc8-4720-9baf-a9ea2749ab5b'
ModulesToImport = 'ADFS'
VisibleCmdlets = 'Reset-AdfsAccountLockout', 'Get-ADFSAccountActivity', 'Set-ADFSAccountActivity'
}
Create the PowerShell Session File
@{
SchemaVersion = '2.0.0.0'
GUID = 'ffb4c0b2-f161-4ddc-a769-d2419b489170'
SessionType = 'RestrictedRemoteServer'
ModulesToImport = 'ADFSAtivity'
GroupManagedServiceAccount = 'INTERNAL\msvc_ADFSMgmt'
RoleDefinitions = @{ 'INTERNAL\ADFSAccountActivity' = @{ RoleCapabilities = 'ADFSActivity' } }
}
Register-PSSessionConfiguration -Name 'ADFSActivity' -Path .\ADFSActivity.pssc -Force
Enter-PSSession -ComputerName ADFSServer -ConfigurationName ADFSActivity
If the issue persists, I'd like to collect the complete steps output of both from the article and my suggested one (screenshots would be better). For protecting your privacy, you can provide the 2 outputs' screenshots of the steps in the
Private Message (PM).
Regards,
Alan