Set-AdfsWebTheme

Set-AdfsWebTheme

Modifies properties of a web theme.

구문

Parameter Set: IdentifierName
Set-AdfsWebTheme [-TargetName] <String> [-AdditionalFileResource <Hashtable[]> ] [-Illustration <Hashtable[]> ] [-Logo <Hashtable[]> ] [-PassThru] [-RTLStyleSheetPath <String> ] [-StyleSheet <Hashtable[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: IdentifierObject
Set-AdfsWebTheme [-TargetWebTheme] <AdfsWebTheme> [-AdditionalFileResource <Hashtable[]> ] [-Illustration <Hashtable[]> ] [-Logo <Hashtable[]> ] [-PassThru] [-RTLStyleSheetPath <String> ] [-StyleSheet <Hashtable[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The Set-AdfsWebTheme cmdlet modifies properties of an AdfsWebTheme object. Specify a web theme by name or by using the Get-AdfsWebTheme cmdlet.

매개 변수

-AdditionalFileResource<Hashtable[]>

Specifies an array of Hashtable objects that specify additional file resources by using two string keys: Uri and Path. For more information, type Get-Help about_Hash_Tables. Uri is the relative Uniform Resource Identifier (URI) string for a resource. The URI always begins with /adfs/portal/. Path is the file path of a resource. If you do not specify the path, the cmdlet removes the file resource that corresponds to the specified URI.

Specify this parameter to make resources, such as images, available to cascading style sheets or JavaScript applications.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Illustration<Hashtable[]>

Specifies an array of Hashtable objects that specify illustrations by using two string keys: Locale and Path. Locale is a CultureInfo object. Path is a file path. If you do not specify a locale, Locale refers to the invariant locale.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Logo<Hashtable[]>

Specifies an array of Hashtable objects that specify logos by using two string keys: Locale and Path. Locale is a CultureInfo object. Path is a file path. If you do not specify a locale, Locale refers to the invariant locale. If you do not specify a path, the cmdlet removes the file content that corresponds to the specified locale.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-PassThru

작업하고 있는 항목을 나타내는 개체를 반환합니다. 기본적으로 이 cmdlet은 출력을 생성하지 않습니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-RTLStyleSheetPath<String>

Specifies a file path to a run-time library (RTL) style sheet.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-StyleSheet<Hashtable[]>

Specifies an array of Hashtable objects that specify style sheets by using two string keys: Locale and Path. Locale is a CultureInfo object for a style sheet. Path is a file path of the style sheet. If you do not specify a locale, Locale refers to the invariant locale. If you do not specify a path, the cmdlet removes the file content that corresponds to the specified locale.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-TargetName<String>

Specifies a name. The cmdlet modifies the theme that you specify by name.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

-TargetWebTheme<AdfsWebTheme>

Specifies an AdfsWebTheme object. The cmdlet modifies the theme that you specify. To obtain an AdfsWebTheme object, use the Get-AdfsWebTheme cmdlet.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • System.IdentityServer.Management.Resources.AdfsWebTheme

    This cmdlet generates a web customization object, System.IdentityServer.Management.Resources.AdfsWebTheme. This object includes the following properties:

    Name: System.String
    IsBuiltinTheme System.Boolean
    StyleSheet: IDictionary<string, byte[]>
    Logo: IDictionary<string, byte[]>
    Illustration: IDictionary<string, byte[]>
    RTLStyleSheet: byte[]
    AdditionalFileResources: IDictionary<string, byte[]>

예제

Example 1: Modify a web named theme

This command modifies a web theme named Theme01. The command uses standard Windows PowerShell® syntax to create hash tables. For more information, type Get-Help about_Hash_Tables. The command specifies an illustration image, a logo image, an RTL style sheet, and a cascading style sheet for Theme01. The command specifies no value for Locale for any of these parameters, and, therefore, the illustration, logo, and style sheet all use the invariant locale.

PS C:\> Set-AdfsWebTheme -TargetName "Theme01" -Illustration @{Locale="";Path="c:\illustration.png"} -Logo @{Locale="";Path="c:\logo.png"} -RTLStyleSheetPath "C:\StyleSheet.css" -StyleSheet @{Locale="";Path="c:\stylesheet.css"}

Example 2: Specify an additional resource

This command specifies an additional file resource for the web theme named Theme02. The command makes a resource, in this case, BackGround.png, available to cascading style sheets or JavaScript applications.

PS C:\> Set-AdfsWebTheme -TargetName "Theme02" -AdditionalFileResource @{Uri="/adfs/portal/Background.png";Path="Background.png"}

Example 3: Modify a web theme by using a variable

The first command uses the Get-AdfsWebTheme cmdlet to get the web theme named Theme03, and then stores it in the $Theme variable.

The second command modifies the web theme stored in the $Theme. The command specifies an illustration image, a logo image, an RTL style sheet, and a cascading style sheet for that theme.

PS C:\> $Theme = Get-AdfsWebTheme -Name "Theme03"
PS C:\> Set-AdfsWebTheme -TargetWebTheme $Theme -Illustration @{Locale="";Path="C:\Illustration.png"} -Logo @{Locale="";Path="C:\Logo.png"} -RTLStyleSheetPath "C:\StyleSheet.css" -StyleSheet @{Locale="";Path="C:\StyleSheet.css"}

관련 항목

Export-AdfsWebTheme

Get-AdfsWebTheme

New-AdfsWebTheme

Remove-AdfsWebTheme