Link to home
Start Free TrialLog in
Avatar of Adam Wolf
Adam Wolf

asked on

Set-MsolDirSyncFeature - Invalid value for Parameter - Parameter Name: Feature

Hi!

I have a client using an Office 365 DirSync environment that is requesting the Duplicate Attribute Resiliency feature be enabled on their tenancy.  Following https://docs.microsoft.com/en-us/azure/active-directory/active-directory-aadconnectsyncservice-duplicate-attribute-resiliency - I used the following Syntax in PowerShell:

Set-MsolDirSyncFeature -Feature DuplicateUPNResiliency -Enable $true
Set-MsolDirSyncFeature -Feature DuplicateProxyAddressResiliency -Enable $true

Running either command outputs the following error message:

Set-MsolDirSyncFeature : Invalid value for parameter.  Parameter Name: Feature.
At line:1  char: 1
+ Set-MsolDirSyncFeature -Feature DuplicateUPNResiliency -Enable $true
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Category Into            :  OperationStopped:  (:)  [Set-MsolDirSyncFeature],
MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.InvalidParameterException,Microsoft.Online.Administration.SetDirSyncFeature



Running Get-MsolDirSyncFeatures generates the following:

ExtensionData                                    DirSyncFeature                
-------------                                    --------------                
System.Runtime.Serialization.ExtensionDataObject DeviceWriteback              
System.Runtime.Serialization.ExtensionDataObject DirectoryExtensions          
System.Runtime.Serialization.ExtensionDataObject DuplicateProxyAddressResili...
System.Runtime.Serialization.ExtensionDataObject DuplicateUPNResiliency        
System.Runtime.Serialization.ExtensionDataObject EnableSoftMatchOnUpn          
System.Runtime.Serialization.ExtensionDataObject PasswordSync                  
System.Runtime.Serialization.ExtensionDataObject SynchronizeUpnForManagedUsers
System.Runtime.Serialization.ExtensionDataObject UnifiedGroupWriteback        
System.Runtime.Serialization.ExtensionDataObject UserWriteback    




Running Get-MsolDirSyncFeatures -Feature DuplicateUPNResiliency generates the following:


ExtensionData                                    DirSyncFeature         Enabled
-------------                                    --------------         -------
System.Runtime.Serialization.ExtensionDataObject DuplicateUPNResiliency   False






So I honestly do not know what the problem is and why I cannot enable these features, but I admittedly do not have much experience with PowerShell Administration.  Thank you for your help in advance!
Avatar of becraig
becraig
Flag of United States of America image

My first bet would be encoding and something got passed with the command.

Did you copy and paste the commands  ?


Try:
Get-MsolDirSyncFeatures -Feature DuplicateUPNResiliency | select -expa feature | % { Set-MsolDirSyncFeatures -Feature $_  -Enable $true}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Adam Wolf
Adam Wolf

ASKER

Hi becraig, thank you for the reply, I copied and pasted first and then typed it out, and both generated the same error.  I also tried your suggestion and it failed with:

select : Property "Feature" cannot be found.
I did not see the comments Vasil, thanks for bringing that to my attention.  I guess we'll have to wait for Microsoft to address.