Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
'Add-ADPermission' is not recognized as the name of a cmdlet...........Error

Answered 'Add-ADPermission' is not recognized as the name of a cmdlet...........Error

  • Saturday, April 09, 2011 1:25 PM
     
     

    [PS] C:\Windows\system32>Add-ADPermission "OU=Information Technology,OU=Admin Services,DC=test,DC=lo
    cal" -User test\CAdmin -ExtendedRights Send-As -InheritanceType Descendents -InheritedObjectType User
    The term 'Add-ADPermission' is not recognized as the name of a cmdlet, function, script file, or operable program. Chec
    k the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:17
    + Add-ADPermission <<<<  "OU=Information Technology,OU=Admin Services,DC=test,DC=local" -User test\
    CAdmin -ExtendedRights Send-As -InheritanceType Descendents -InheritedObjectType User
        + CategoryInfo          : ObjectNotFound: (Add-ADPermission:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    [PS] C:\Windows\system32>



    • Edited by supportsib Sunday, April 10, 2011 5:26 AM
    •  

All Replies

  • Saturday, April 09, 2011 2:31 PM
    Moderator
     
     

    Get-ADPermission requires the Microsoft.Exchange.Management.PowerShell snapins, available with Exchange Server 2007 or above. You can use the Add-PSSnapin cmdlet to add them.

    Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin

    Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Support

     


    Richard Mueller - MVP Directory Services
  • Sunday, April 10, 2011 7:15 AM
     
     

    [PS] C:\Windows\system32>Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin
    Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.Admin' is not installed on this
     machine.
    At line:1 char:13
    + Add-PSSnapin <<<<  Microsoft.Exchange.Management.PowerShell.Admin
        + CategoryInfo          : InvalidArgument: (Microsoft.Excha...owerShell.Admin:String) [Add-PSSnapin], PSArgumentEx
       ception
        + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

     

  • Sunday, April 10, 2011 9:46 AM
    Moderator
     
     Answered
    It seems that you don't have Exchange admin tools installed on this machine. Install the tools and then try to import the snap-in.
    Shay Levy [MVP]
    PowerShay.com
    PowerShell Toolbar
  • Tuesday, December 13, 2011 5:12 PM
     
     
    Is this not related to role delegation? I thought that adding permissions through roles caused this
  • Friday, March 16, 2012 7:51 AM
     
     

    Hello,

    I had similar problem, get same messages when I use "Add-ADpermission" and "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin". I dno't know how to verify if the exchange admin tools had installed or not, but I can use "Get-ADPermission".

    PS, the exchange management shell wes running as administrator.

    thanks.

  • Friday, March 16, 2012 12:07 PM
     
     

    Hello,

    I had similar problem, get same messages when I use "Add-ADpermission" and "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin". I dno't know how to verify if the exchange admin tools had installed or not, but I can use "Get-ADPermission".

    PS, the exchange management shell wes running as administrator.

    thanks.

    This topic has been closed for more than a year.  You will need to open a new topic with your question.

    Please see: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/a0def745-4831-4de0-a040-63b63e7be7ae


    ¯\_(ツ)_/¯