Forum Discussion
I am unable to run get-ADPermission when exchange 2016 is invoked
- hasanemresatilmisIron Contributor
Hi Harshaacharya08,
Could you send a screenshot of the error you get when you type the command "Add-PSSnapinMicrosoft.Exchange.Management.PowerShell.SnapIn"?
- Harshaacharya08Copper ContributorPlease find the attachment
- hasanemresatilmisIron Contributor
- Harshaacharya08Copper Contributor
- hasanemresatilmisIron Contributor
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.
- farismalaebSteel Contributor
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
- Harshaacharya08Copper ContributorI 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
- farismalaebSteel Contributor
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.
- farismalaebSteel ContributorHi, Did any solution work for you?!