Hi,
I am trying to run the exact example in the following TechNet article and I am getting error:
http://technet.microsoft.com/en-us/library/ff607629.aspx
Command: (please note that no matter I user correct or wrong Identity name, I get the same error)
Get-SPClaimProvider -Identity "MyClaimProvider" | Set-SPClaimProvider -Enabled $false
Error:
Set-SPClaimProvider : Cannot bind parameter 'Identity'. Cannot convert value "False" to type "Microsoft.SharePoint.PowerShell.SPClaimProviderPipeBind". Error: "Invalid cast from 'System.Boolean' to
'Microsoft.SharePoint.PowerShell.SPClaimProviderPipeBind'."
At C:\ADFS\Untitled1.ps1:4 char:80
+ Get-SPClaimProvider -Identity "MyClaimProvider" | Set-SPClaimProvider -Enabled $ ...
+
~
+ CategoryInfo : InvalidArgument: (:) [Set-SPClaimProvider], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.SharePoint.PowerShell.SPCmdletSetSPClaimProvider
I get the similar type of error with other examples too.
What is the concept that I am missing?
Thank you,