PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Set-ADResourceProperty', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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.


Modifies a resource property in Active Directory.


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

Search powershellhelp.space


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



Online Version: http://go.microsoft.com/fwlink/p/?linkid=291129




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

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

This example sets 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 --------------------------

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

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