-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGetWellKnownEndpoint.ps1
29 lines (29 loc) · 1.13 KB
/
GetWellKnownEndpoint.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function GetWellKnownEndpoint
{
[cmdletbinding()]
param
(
$ServiceObject
)
$ServiceTypeDefinition = Get-OneShellServiceTypeDefinition -ServiceType $ServiceObject.ServiceType
@(
[PSCustomObject]@{
Identity = $ServiceObject.ServiceType + '-WellKnownEndpoint'
AddressType = 'URL'
Address = $ServiceTypeDefinition.WellKnownEndpointURI
ServicePort = $null
UseTLS = $false
ProxyEnabled = $ServiceObject.Defaults.ProxyEnabled
CommandPrefix = $ServiceObject.Defaults.CommandPrefix
AuthenticationRequired = $true
AuthMethod = $ServiceTypeDefinition.WellKnownEndpointAuthMethod
EndpointGroup = $null
EndpointType = 'Admin'
ServiceTypeAttributes = $null
ServiceType = $ServiceObject.ServiceType
Precedence = -1
PSRemoting = $true
}
) | Group-Object
}
#end function Geg-WellKnownEndpoint