PowerShell Logo Small

Set-ADResourceProperty



This is the built-in help made by Microsoft for the command 'Set-ADResourceProperty', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Modifies a resource property in Active Directory.

SYNTAX


Set-ADResourceProperty [-Identity] <ADResourceProperty> [-Add <Hashtable>] [-AppliesToResourceTypes <Hashtable>] [-AuthType <ADAuthType>]
[-Clear <String[]>] [-Credential <PSCredential>] [-Description <String>] [-DisplayName <String>] [-Enabled <Boolean>] [-PassThru
[<SwitchParameter>]] [-ProtectedFromAccidentalDeletion <Boolean>] [-Remove <Hashtable>] [-Replace <Hashtable>] [-Server <String>]
[-SharesValuesWith <ADClaimType>] [-SuggestedValues <ADSuggestedValueEntry[]>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
[<CommonParameters>]
Set-ADResourceProperty [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-PassThru [<SwitchParameter>]] [-Server <String>] -Instance
<ADResourceProperty> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-ADResourceProperty cmdlet can be used to modify a resource property in Active Directory.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkId=216418

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

C:\PS>$us = New-Object Microsoft.ActiveDirectory.Management.ADSuggestedValueEntry("US", "United States of America", "United States of
America");
$jp = New-Object Microsoft.ActiveDirectory.Management.ADSuggestedValueEntry("JP", "Japan", "Japan");
Set-ADResourceProperty Country -SuggestedValues $us,$jp



Description

-----------

Set the suggested values of the resource property with display name 'Country' to 'US' and 'JP'. Applications using this resource property
would allow their users to specify one of the suggested values as this resource property's value.




-------------------------- EXAMPLE 2 --------------------------

C:\PS>Set-ADResourceProperty Country -SharesValuesWith Country



Description

-----------

Sets the resource property with display name 'Country' to reference an existing claim type named 'Country' for its suggested values. This
enables the resource property to be always valid for comparisons with the referenced claim type in a central access rule.