Set-WFScopeSecurity

Updated: August 29, 2012

Set-WFScopeSecurity

This cmdlet will set the security configuration for the specified scope.

Syntax

Parameter Set: Default
Set-WFScopeSecurity -ScopeUri <Uri> -SecurityConfiguration <ScopeSecurityConfiguration[]> [-Credential <ICredentials> ] [ <CommonParameters>]

Detailed Description

To get the scope security configuration, please use the Get-WFScope cmdlet with the relevant scope URI.

Parameters

-Credential<ICredentials>

Specifies the credential to use when connecting to the Workflow Manager 1.0 service. If not specified, then the currently logged in users Windows credentials are used to connect to the service.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ScopeUri<Uri>

The URI of the Workflows scope.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SecurityConfiguration<ScopeSecurityConfiguration[]>

Specifies the security configuration.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<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.

Outputs

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

Examples

Example 1

Set the security configuration for the specified scope.

PS C:\> $SecurityConfig = New-Object Microsoft.Workflow.Client.Security.OAuthWrapSecurityConfiguration
$SecurityConfig.SigningKey = "SigningKey"

Set-WFSecurity -ScopeUri https://server/scope -Credential Get-WFWindowsCredential -SecurityConfiguration $SecurityConfig