I am unable to run get-ADPermission when exchange 2016 is invoked

%3CLINGO-SUB%20id%3D%22lingo-sub-1787824%22%20slang%3D%22en-US%22%3EI%20am%20unable%20to%20run%20get-ADPermission%20when%20exchange%202016%20is%20invoked%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1787824%22%20slang%3D%22en-US%22%3EI%20tried%20many%20ways%2C%20but%20%22get-ADpermission%20doesn't%20work%22%20it%20says%20un%20recognized.%20However%20wen%20i%20try%20with%20installing%20(add-snapin%20Microsoft.exchange%20...)%20it%20throws%20error.%20I%20am%20unable%20to%20perform%20any%202016%20related%20task.%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1787824%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1788179%22%20slang%3D%22en-US%22%3ERe%3A%20I%20am%20unable%20to%20run%20get-ADPermission%20when%20exchange%202016%20is%20invoked%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1788179%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F834955%22%20target%3D%22_blank%22%3E%40Harshaacharya08%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20send%20a%20screenshot%20of%20the%20error%20you%20get%20when%20you%20type%20the%20command%20%22Add-PSSnapinMicrosoft.Exchange.Management.PowerShell.SnapIn%22%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1788221%22%20slang%3D%22en-US%22%3ERe%3A%20I%20am%20unable%20to%20run%20get-ADPermission%20when%20exchange%202016%20is%20invoked%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1788221%22%20slang%3D%22en-US%22%3EPlease%20find%20the%20attachment%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1788289%22%20slang%3D%22en-US%22%3ERe%3A%20I%20am%20unable%20to%20run%20get-ADPermission%20when%20exchange%202016%20is%20invoked%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1788289%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F834955%22%20target%3D%22_blank%22%3E%40Harshaacharya08%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20Attachment%3C%2FP%3E%3CP%3EDid%20you%20try%20to%20start%20a%20PSRemote%20session%20which%20should%20be%20working%20fine%20with%20you%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.alitajran.com%2Fload-exchange-management-shell-in-powershell-ise%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.alitajran.com%2Fload-exchange-management-shell-in-powershell-ise%2F%3C%2FA%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%20http%3A%2F%2FYourServer.FQDN%2FPowerShell%2F%20-Credential%20%24UserCredential%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1788353%22%20slang%3D%22en-US%22%3ERe%3A%20I%20am%20unable%20to%20run%20get-ADPermission%20when%20exchange%202016%20is%20invoked%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1788353%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F834955%22%20target%3D%22_blank%22%3E%40Harshaacharya08%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20attachment.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor
I tried many ways, but "get-ADpermission doesn't work" it says un recognized. However wen i try with installing (add-snapin Microsoft.exchange ...) it throws error. I am unable to perform any 2016 related task.
9 Replies
Highlighted

 

Hi @Harshaacharya08,

 

Could you send a screenshot of the error you get when you type the command "Add-PSSnapinMicrosoft.Exchange.Management.PowerShell.SnapIn"?

Highlighted
Please find the attachment

Highlighted

@Harshaacharya08 

Hi, 

There is no Attachment

Did you try to start a PSRemote session which should be working fine with you

https://www.alitajran.com/load-exchange-management-shell-in-powershell-ise/

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://YourServer.FQDN/PowerShell/ -Credential $UserCredential
Highlighted

 

Hi @Harshaacharya08,

 

There is no attachment. 

Highlighted
Attachment
Highlighted
I tried this, but wen I call the session I don't get the get-adpermission,for 2010 session I get the option but for 2016 I don't, that's the reason I tried installing the addsnappin, I get the below error
Highlighted

 

Hi @Harshaacharya08,

 

Can you run the Get-ADPermission command as follows?

 

On a server with Exchange 2016 installed

 

1. Run PowerShell as an administrator.
2. Run the command "Add-PSSnapinMicrosoft.Exchange.Management.PowerShell.SnapIn".
3. Run the Get-ADPermission command.

 

Get-ADPermission On Exchange.PNG

Highlighted

@Harshaacharya08 

Run the following command 

Get-PSSnapin -Registered

are you able to see your exchange snapin, if not then I think it's better to reinstall it (I assume this is a management client PC).

Do you have both management module for both Exchange 2010 and 2016 installed on the same PC ( as I understand ) or not.

Highlighted
Hi, Did any solution work for you?!