none
Remove-SPTrustedRootAuthority not working

    Question

  • Hi,

    I am using the following command to remove a trusted aruthority:

      Remove-SPTrustedRootAuthority -Name "My Token Cert"

    ... but got the following error:

    Remove-SPTrustedRootAuthority : A parameter cannot be found that matches parame
    ter name 'Name'.
    At line:1 char:36
    + Remove-SPTrustedRootAuthority -Name <<<<  "My Token Cert"
        + CategoryInfo          : InvalidArgument: (:) [Remove-SPTrustedRootAuthor
       ity], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.SharePoint.Powe
       rShell.SPCmdletRemoveTrustedRootAuthority

    Any other ways to do this?

    jeudi 21 juin 2012 16:06

Réponses

Toutes les réponses

  • Give a space after the "-"

    Remove – SPTrustedRootAuthority –Name "WFEFarm1"


    MVP Office Development, MCP, MCTS SharePoint 2010 Development

    • Proposé comme réponse sjmondal jeudi 21 juin 2012 16:22
    jeudi 21 juin 2012 16:17
  • I've tried the following and still not luck:

    Remove - SPTrustedRootAuthority -Name "My Token Cert"

    Remove- SPTrustedRootAuthority -Name "My Token Cert"

    Remove -SPTrustedRootAuthority -Name "My Token Cert"

    Remove-SPTrustedRootAuthority - Name "My Token Cert"

    jeudi 21 juin 2012 16:35
  • Hi,

    You can try this:

    Remove-SPTrustedRootAuthority  -Identity "My Token Cert"

    Thanks


    Pengyu Zhao

    TechNet Community Support

    • Marqué comme réponse Ultragc88 vendredi 22 juin 2012 15:13
    vendredi 22 juin 2012 06:41
  • Hi,

    You can try this:

    Remove-SPTrustedRootAuthority  -Identity "My Token Cert"

    Thanks


    Pengyu Zhao

    TechNet Community Support

    That worked!!!  Thanks Pengyu
    vendredi 22 juin 2012 15:13