Export (0) Print
Expand All
Expand Minimize

Get-ASAppServiceBehaviorName

Get-ASAppServiceBehaviorName

Gets the service behavior name from the service configuration. If the service is configured to use the default behavior, i.e., behaviorConfiguration=“”, the cmdlet returns the string “(default behavior)”. This is necessary because PowerShell does not display anything for “”.If the cmdlet does not find a service configuration for the service, i.e., the <service> element does not exist, the service also uses the default behavior. The cmdlet returns “(default behavior)” as when the service is configured to use the default behavior.

Syntax

Parameter Set: SiteNameAndVirtualPath
Get-ASAppServiceBehaviorName [-SiteName] <String> [-VirtualPath] <String> [ <CommonParameters>]


Parameters

-ServiceObject<ServiceInfo>

The name of the ServiceObject, which specifies that the cmdlet will operate on that service. This parameter is typically used to pipe the output of the Get-ASAppService cmdlet to a cmdlet containing the ServiceObject parameter.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

-SiteName<String>

The name of a Web site, as defined in the IIS Connections pane, which specifies that the cmdlet will operate at the scope of a service contained within that site. To the SiteName parameter, you must add the VirtualPath parameter that identifies a service contained within the site. The virtual path must include the name of the application, a forward slash, and the name of the .svc file or .xamlx file for the service. The leading "/" character in the virtual path is optional. If you use the SiteName parameter, do not use the Uri parameter.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-Uri<Uri>

A URI for a service, which specifies that the cmdlet will operate at that scope. If you use the Uri parameter, do not use the SiteName and VirtualPath parameter set.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-VirtualPath<String>

The virtual path for a service, as defined in the IIS Manager Connections pane, which specifies that the cmdlet will operate at the scope of the service. You must add the VirtualPath parameter to the SiteName parameter, using SiteName to identify the site that the service is included in. The leading "/" character in the virtual path is optional. For a service, the virtual path includes the name of the application, a forward slash, and the name of the .svc file or .xamlx file for the service. If you use the SiteName and VirtualName parameter set, do not use the Uri parameter.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • String.


Examples

EXAMPLE 1

Returns the service behavior name for a specific service.


Get-ASAppServiceBehaviorName –SiteName “Default Web Site” –VirtualPath “/myApp/svc1.xamlx

EXAMPLE 2

Returns the service behavior names for all services in an application.


Get-ASApplication –SiteName “Default Web Site” –VirtualPath “/myApp” | Get-ASAppService | Get-ASAppServiceBehaviorName.
Show:
© 2014 Microsoft